Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260218 - app-portage/layman-1.2.3: Error message when using layman -L not as root
Summary: app-portage/layman-1.2.3: Error message when using layman -L not as root
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-25 10:07 UTC by Johannes Rauh
Modified: 2010-01-05 15:06 UTC (History)
1 user (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 Johannes Rauh 2009-02-25 10:07:17 UTC
If I run layman -L not as root I get a list of error messages. The reason is that layman needs the right to write to /usr/local/portage/layman in order to update the cache.

In my opinion, if run as a regular user, layman -L should catch this error and only print an adequate short warning (instead of five lines of errors).

The output is as follows:

* Failed to update the overlay list from: http://www.gentoo.org/proj/en/overlays/layman-global.txt
* Error was:                                                                                      
* Failed to temporarily cache overlays list in /usr/local/portage/layman/cache_65bd38402ac8431067b54904bd2ed2d1.xml
* Error was:                                                                                                       
* [Errno 13] Permission denied: '/usr/local/portage/layman/cache_65bd38402ac8431067b54904bd2ed2d1.xml'
Comment 1 Sebastian Pipping gentoo-dev 2010-01-05 15:06:27 UTC
Fix in Git repo, patch by Bjoern Tropf:
http://layman.git.sourceforge.net/git/gitweb.cgi?p=layman/layman;a=commitdiff;h=a977b9542d18da2cde5ce03cb75e403c6630f5e2

You can emerge =app-portage/layman-9999 to give it a spin.