29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
Allow "--ignoresize" for erase operations.
|
|
|
|
Index: lib/rpminstall.c
|
|
===================================================================
|
|
--- lib/rpminstall.c.orig
|
|
+++ lib/rpminstall.c
|
|
@@ -850,7 +850,7 @@ int rpmErase(rpmts ts, struct rpmInstall
|
|
/* 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);
|
|
Index: rpmqv.c
|
|
===================================================================
|
|
--- rpmqv.c.orig
|
|
+++ 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"));
|