Mailinglist Archive: zypp-commit (266 mails)

< Previous Next >
[zypp-commit] r11697 - in /trunk/zypper/src: Zypper.cc Zypper.h
  • From: jkupec@xxxxxxxxxxxxxxxx
  • Date: Mon, 17 Nov 2008 16:38:41 -0000
  • Message-id: <20081117163841.D0F9C3728C@xxxxxxxxxxxxxxxx>
Author: jkupec
Date: Mon Nov 17 17:38:41 2008
New Revision: 11697

URL: http://svn.opensuse.org/viewcvs/zypp?rev=11697&view=rev
Log:
- use a random TmpDir for local rpms tmp repo packages path

Modified:
trunk/zypper/src/Zypper.cc
trunk/zypper/src/Zypper.h

Modified: trunk/zypper/src/Zypper.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/Zypper.cc?rev=11697&r1=11696&r2=11697&view=diff
==============================================================================
--- trunk/zypper/src/Zypper.cc (original)
+++ trunk/zypper/src/Zypper.cc Mon Nov 17 17:38:41 2008
@@ -3097,7 +3097,7 @@
// OTOH packages path == ZYPPER_RPM_CACHE_DIR (the same as repo URI)
// causes cp file thesamefile, which fails silently. This may be worth
// fixing in libzypp.
- repo.setPackagesPath("/tmp/zypper");
+ repo.setPackagesPath(runtimeData().tmpdir);

// shut up zypper
Out::Verbosity tmp = out().verbosity();

Modified: trunk/zypper/src/Zypper.h
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/Zypper.h?rev=11697&r1=11696&r2=11697&view=diff
==============================================================================
--- trunk/zypper/src/Zypper.h (original)
+++ trunk/zypper/src/Zypper.h Mon Nov 17 17:38:41 2008
@@ -19,6 +19,7 @@
#include "zypp/RepoInfo.h"
#include "zypp/RepoManager.h" // for RepoManagerOptions
#include "zypp/SrcPackage.h"
+#include "zypp/TmpPath.h"

#include "Command.h"
#include "utils/getopt.h"
@@ -150,6 +151,9 @@

//! \todo move this to a separate Status struct
bool waiting_for_input;
+
+ //! Temporary directory for any use. Used e.g. as packagesPath of
TMP_RPM_REPO_ALIAS repository.
+ zypp::filesystem::TmpDir tmpdir;
};

typedef zypp::shared_ptr<zypp::RepoManager> RepoManager_Ptr;

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages