diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-01-05 16:23:17 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-01-05 16:28:18 +0200 |
commit | fbb44eb66defc286981d5d3d33858bfab74de200 (patch) | |
tree | 3a149eb42b3e947cea666fdd45d84a71cb4c04d3 /rpmqv.c | |
parent | 280ad0796af5e125a4b4e6998c1659f315e5f31d (diff) | |
download | librpm-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 " |