Gentoo Archives: gentoo-user

From: Dr Rainer Woitok <rainer.woitok@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Problem understanding "eix"
Date: Mon, 20 Apr 2020 15:02:06
Message-Id: 24221.47458.2222.904415@tux.local
1 Greetings,
2
3 after several days of manpage reading, head scratching, and testing the
4 reactions of "eix" to various input I'm giving up and ask the combined
5 wisdom of the Gentoo list.
6
7 Here's the version of "eix" I'm using, my test script, and its output:
8
9 $ eix --version
10 0.33.9
11 $ cat test-script
12 #! /bin/sh
13 export EIX_LIMIT=0 OVERLAYS_LIST=false PRINT_COUNT_ALWAYS=never
14 export FMT="<category>/<name>\t<version>\t{isstable}1{else}0{} {!isunstable}1{else}0{}\n"
15 echo in:
16 eix --format '<installedversions:FMT>' \
17 --category-name --regex 'app-crypt/tpm2-tss$|acct-group/input'
18 echo av:
19 eix --format '<availableversions:FMT>' \
20 --category-name --regex 'app-crypt/tpm2-tss$|acct-group/input'
21 $ ./test-script
22 in:
23 acct-group/input 0 0 1
24 app-crypt/tpm2-tss 2.3.3 0 1
25 av:
26 acct-group/input 0 1 1
27 app-crypt/tpm2-tss 2.2.3-r2 1 0
28 app-crypt/tpm2-tss 2.3.3 1 0
29 $
30
31 And finally here are my questions:
32
33 1. Why do the package properties "isstable" and "!isunstable" differ
34 from each other in four out of five output lines?
35
36 2. Why does the package property "isstable" return different values, de-
37 pending on whether it is called via the "<installedversions:...>" or
38 "<availableversions:...>" property?
39
40 3. How can I reliably retrieve the correct information whether a package
41 is "stable" or "testing" for both properties, "<installedversions>"
42 and "<availableversions>"?
43
44 Any information appreciated.
45
46 Sincerely,
47 Rainer

Replies

Subject Author
[gentoo-user] Re: Problem understanding "eix" Martin Vaeth <martin@×××××.de>