From 332cb7d273746dd98fc9cfd12a9ca4475ef7b961 Mon Sep 17 00:00:00 2001 From: Paul Nasrat Date: Mon, 16 Apr 2007 13:15:10 +0100 Subject: [PATCH] Allow "--ignoresize" for erase operations. Patch from OpenSuSE --- lib/rpminstall.c | 2 +- rpmqv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rpminstall.c b/lib/rpminstall.c index 36cd39d..785b612 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); diff --git a/rpmqv.c b/rpmqv.c index d164647..f2068d9 100755 --- a/rpmqv.c +++ b/rpmqv.c @@ -468,7 +468,7 @@ int main(int argc, const char ** argv) argerror(_("--ignoreos may only be specified during package " "installation")); - if (bigMode != MODE_INSTALL && + if (bigMode != MODE_INSTALL && bigMode != MODE_ERASE && (ia->probFilter & (RPMPROB_FILTER_DISKSPACE|RPMPROB_FILTER_DISKNODES))) argerror(_("--ignoresize may only be specified during package " "installation")); -- 2.7.4