Mailinglist Archive: opensuse-bugs (19584 mails)

< Previous Next >
[Bug 388265] New: zypper --root writes solv files and package cache to the outer system.
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 8 May 2008 09:14:14 -0600 (MDT)
  • Message-id: <bug-388265-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=388265


Summary: zypper --root writes solv files and package cache to the
outer system.
Product: openSUSE 11.0
Version: Factory
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: libzypp
AssignedTo: zypp-maintainers@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: ma@xxxxxxxxxx
QAContact: dmacvicar@xxxxxxxxxx
Found By: ---


Try this test case:

rm -rf /tmp/rr;
zypper --root /tmp/rr sa
http://download.opensuse.org/distribution/SL-OSS-factory/inst-source TTTTT;
zypper --root /tmp/rr --no-gpg-checks --non-interactive in glibc

and check /var/cache/zypp/*/TTTTT vs. /tmp/rr/var/cache/zypp/*/TTTTT.


Looks like RepoManagerOptions repoSolvCachePath and repoPackagesCachePath
are not initialaized correctly.


To ease fixing this, I addded an optional root_r argument to the
zypp::RepoManagerOptions ctor (SVN rev 9992):

/** Default ctor following \ref ZConfig global settings.
* If an optional \c root_r directory is given, all paths will
* be prefixed accordingly.
* \code
* root_r\repoCachePath
* \repoRawCachePath
* \repoSolvCachePath
* \repoPackagesCachePath
* \knownReposPath
* \endcode
*/

RepoManagerOptions( const Pathname & root_r = Pathname() );


With this, zypper should not need to change it's initialisation code, if new
repo paths are added in libzypp:

RepoManagerOptions rm_opts( root );


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >