Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309685 - [app-portage/eix-0.20.2] eix-remote complains about "$LOCAL_LAYMAN must not be empty"
Summary: [app-portage/eix-0.20.2] eix-remote complains about "$LOCAL_LAYMAN must not b...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
: 311111 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-16 02:06 UTC by darkbasic
Modified: 2010-03-28 03:24 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description darkbasic 2010-03-16 02:06:56 UTC
I have to put at the head of every command LOCAL_LAYMAN=/var/lib/layman.

eix-remote update
 * $LOCAL_LAYMAN must not be empty

Layman version is 1.3.2-r2.
Comment 1 Martin Väth 2010-03-16 22:21:33 UTC
The layman.config module now misinterprets "python -c ..." as "layman -c ..."
A workaround is in eix svn trunk (>=eix-0.20.3).
Comment 2 Sebastian Pipping gentoo-dev 2010-03-16 22:53:44 UTC
(In reply to comment #1)
> The layman.config module now misinterprets "python -c ..." as "layman -c ..."
> A workaround is in eix svn trunk (>=eix-0.20.3).

I don't get a word.  Anything I need to fix in layman?  If so please open a new bug for it.
Comment 3 Martin Väth 2010-03-17 15:16:55 UTC
(In reply to comment #2)
> 
> Anything I need to fix in layman?  If so please open a new bug for it.

I am not sure whether it is a bug in layman or python or just a
(somewhere documented) change in behavior:

eix-remote (and also eix-layman) received layman configuration data
using commands like

python -c "from layman.config import Config
print Config()['storage']"

(or 'make_conf' instead of 'storage').

For some reason, the (python) option -c is now considered by the module
as a passed option which was not the case in earlier python/layman versions.
As a workaround, I avoid now any options, i.e. next version of eix uses
instead

printf '%s\n%s\n' 'from layman.config import Config' \
"print(Config()['storage'])" | python --

I suppose that this will work with all versions of python/layman,
so it is probably not necessary to change something in layman.
Comment 4 Ai Locke Shinseiko (Wizzleby) 2010-03-24 12:40:09 UTC
*** Bug 311111 has been marked as a duplicate of this bug. ***
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-03-28 03:24:23 UTC
0.20.3 is in the tree.