summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-01-05 16:23:17 +0200
committerPanu Matilainen <pmatilai@redhat.com>2012-01-05 16:28:18 +0200
commitfbb44eb66defc286981d5d3d33858bfab74de200 (patch)
tree3a149eb42b3e947cea666fdd45d84a71cb4c04d3 /rpmqv.c
parent280ad0796af5e125a4b4e6998c1659f315e5f31d (diff)
downloadlibrpm-tizen-fbb44eb66defc286981d5d3d33858bfab74de200.tar.gz
librpm-tizen-fbb44eb66defc286981d5d3d33858bfab74de200.tar.bz2
librpm-tizen-fbb44eb66defc286981d5d3d33858bfab74de200.zip
And finally, permit --hash and --percent cli-switches on erasures too
Diffstat (limited to 'rpmqv.c')
-rw-r--r--rpmqv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 2b415e608..da5f2ca13 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -166,13 +166,13 @@ int main(int argc, char *argv[])
if (ia->prefix && ia->prefix[0] != '/')
argerror(_("arguments to --prefix must begin with a /"));
- if (bigMode != MODE_INSTALL && (ia->installInterfaceFlags & INSTALL_HASH))
+ if (!(bigMode & MODES_IE) && (ia->installInterfaceFlags & INSTALL_HASH))
argerror(_("--hash (-h) may only be specified during package "
- "installation"));
+ "installation and erasure"));
- if (bigMode != MODE_INSTALL && (ia->installInterfaceFlags & INSTALL_PERCENT))
+ if (!(bigMode & MODES_IE) && (ia->installInterfaceFlags & INSTALL_PERCENT))
argerror(_("--percent may only be specified during package "
- "installation"));
+ "installation and erasure"));
if (bigMode != MODE_INSTALL && (ia->probFilter & RPMPROB_FILTER_REPLACEPKG))
argerror(_("--replacepkgs may only be specified during package "