[Rpm-maint] Fixed 'error handling case' if more then one mode is selected.
Rakesh Pandit
rakesh.pandit at gmail.com
Tue Jun 2 11:19:08 UTC 2009
http://rakesh.fedorapeople.org/rpm/0009-Fixed-error-handling-case-if-more-then-one-mode-is.patch
--
rakesh
>From f6ca371af55a13fe5becf9148fa3b060029708ae Mon Sep 17 00:00:00 2001
From: Rakesh Pandit <rakesh at fedoraproject.org>
Date: Tue, 2 Jun 2009 16:38:44 +0530
Subject: [PATCH] Fixed 'error handling case' if more then one mode is selected.
---
rpmqv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rpmqv.c b/rpmqv.c
index f14b80e..bc1dc60 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -359,7 +359,7 @@ int main(int argc, char *argv[])
(INSTALL_UPGRADE|INSTALL_FRESHEN|INSTALL_INSTALL));
int eflags = (ia->installInterfaceFlags & INSTALL_ERASE);
- if (iflags & eflags)
+ if (iflags && eflags)
argerror(_("only one major mode may be specified"));
else if (iflags)
bigMode = MODE_INSTALL;
--
1.6.0.6
More information about the Rpm-maint
mailing list