summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES1
-rwxr-xr-xrpm.c2
-rwxr-xr-xrpmqv.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index e9e60ae95..a9d05af55 100644
--- a/CHANGES
+++ b/CHANGES
@@ -108,6 +108,7 @@
- fix: initialize sigs everywhere in python header object.
- translate rpm.8 man page (Peter Ivanyi <ivanyi@internet.sk>).
- popt: support for float/double args.
+ - fix: honor --test when doing --freshen.
3.0.4 -> 3.0.5
- configure.in fiddles for BSD systems (Patrick Schoo).
diff --git a/rpm.c b/rpm.c
index 89165926b..97f94b905 100755
--- a/rpm.c
+++ b/rpm.c
@@ -1120,7 +1120,7 @@ int main(int argc, const char ** argv)
if (noDeps) interfaceFlags |= INSTALL_NODEPS;
if (noOrder) interfaceFlags |= INSTALL_NOORDER;
if (upgrade) interfaceFlags |= INSTALL_UPGRADE;
- if (freshen) interfaceFlags |= INSTALL_FRESHEN;
+ if (freshen) interfaceFlags |= (INSTALL_UPGRADE|INSTALL_FRESHEN);
if (!poptPeekArg(optCon))
argerror(_("no packages given for install"));
diff --git a/rpmqv.c b/rpmqv.c
index fccc2e242..b300abaf7 100755
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -1400,7 +1400,7 @@ int main(int argc, const char ** argv)
if (noDeps) interfaceFlags |= INSTALL_NODEPS;
if (noOrder) interfaceFlags |= INSTALL_NOORDER;
if (upgrade) interfaceFlags |= INSTALL_UPGRADE;
- if (freshen) interfaceFlags |= INSTALL_FRESHEN;
+ if (freshen) interfaceFlags |= (INSTALL_UPGRADE|INSTALL_FRESHEN);
if (!poptPeekArg(optCon))
argerror(_("no packages given for install"));