// 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();
#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"
//! \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;