summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2007-04-16 13:15:10 +0100
committerPaul Nasrat <pnasrat@redhat.com>2007-04-16 13:15:10 +0100
commit332cb7d273746dd98fc9cfd12a9ca4475ef7b961 (patch)
tree44a49acc099143e77054d57627cdf4c10d3bba1a /lib
parent5fdd5efb26d67e89c5d1cda51435de2896348102 (diff)
downloadrpm-332cb7d273746dd98fc9cfd12a9ca4475ef7b961.tar.gz
rpm-332cb7d273746dd98fc9cfd12a9ca4475ef7b961.tar.bz2
rpm-332cb7d273746dd98fc9cfd12a9ca4475ef7b961.zip
Allow "--ignoresize" for erase operations.
Patch from OpenSuSE
Diffstat (limited to 'lib')
-rw-r--r--lib/rpminstall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpminstall.c b/lib/rpminstall.c
index 36cd39deb..785b61230 100644
--- a/lib/rpminstall.c
+++ b/lib/rpminstall.c
@@ -850,7 +850,7 @@ int rpmErase(rpmts ts, struct rpmInstallArguments_s * ia,
/* Drop added/available package indices and dependency sets. */
rpmtsClean(ts);
- numPackages = rpmtsRun(ts, NULL, 0);
+ numPackages = rpmtsRun(ts, NULL, ia->probFilter & (RPMPROB_FILTER_DISKSPACE|RPMPROB_FILTER_DISKNODES));
ps = rpmtsProblems(ts);
if (rpmpsNumProblems(ps) > 0)
rpmpsPrint(NULL, ps);