On Tuesday 24 July 2012 11:50:17 Saurabh Sood wrote:
Hi, I need to get repository metadata and package information without root privileges. When I load the try to refresh repository metadata using RepoManager, I get an error, saying that the 'valid metadata not found at the URL'. I checked the log, which showed that a file in /var/cache could not be written, causing the error. The code works when I run as root. How do I get the required information when I run as a normal user?
You can not refresh the system cache if you are not root. So you have to use either unrefreshed data, or setup your RepoManager class to use a cache dir the user is allowed to write. (e.g. set repoCachePath in RepoManagerOptions passed to RepoManager upon construction) -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org