From fbb44eb66defc286981d5d3d33858bfab74de200 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 5 Jan 2012 16:23:17 +0200 Subject: [PATCH] And finally, permit --hash and --percent cli-switches on erasures too --- rpmqv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpmqv.c b/rpmqv.c index 2b415e6..da5f2ca 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 " -- 2.7.4