From e297dfd0180a4b11db83e98a6061988e8a649127 Mon Sep 17 00:00:00 2001 From: Jan Kupec Date: Mon, 17 Nov 2008 12:29:03 +0000 Subject: [PATCH] - avoid removing of installed local rpms (bnc #444897) --- src/Zypper.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Zypper.cc b/src/Zypper.cc index 750e0e0..5d45131 100644 --- a/src/Zypper.cc +++ b/src/Zypper.cc @@ -3092,6 +3092,12 @@ void Zypper::doCommand() repo.setAlias(TMP_RPM_REPO_ALIAS); repo.setName(_("Plain RPM files cache")); repo.setKeepPackages(false); + // empty packages path would cause unwanted removal of installed rpms + // in current working directory (bnc #444897) + // 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"); // shut up zypper Out::Verbosity tmp = out().verbosity(); -- 2.7.4