aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-18 17:29:30 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-18 17:29:30 +0000
commit99e11ae4439bb1a5b2d236e4268346b18cc5d8fb (patch)
tree8ba291eb93356729de4b255be59c96384c4dc0c1
parent1ec4287348d95162057a772369fddb2c9047e5e4 (diff)
downloadrpmdrake-99e11ae4439bb1a5b2d236e4268346b18cc5d8fb.tar
rpmdrake-99e11ae4439bb1a5b2d236e4268346b18cc5d8fb.tar.gz
rpmdrake-99e11ae4439bb1a5b2d236e4268346b18cc5d8fb.tar.bz2
rpmdrake-99e11ae4439bb1a5b2d236e4268346b18cc5d8fb.tar.xz
rpmdrake-99e11ae4439bb1a5b2d236e4268346b18cc5d8fb.zip
Small simplification
-rwxr-xr-xrpmdrake6
1 files changed, 4 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index 2169fb1a..e42f6088 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1760,8 +1760,10 @@ sub get_installed_pkgs {
summary => rpm_summary($pkg->summary),
description => rpm_description($pkg->description),
} unless $installed_pkgs{$fullname} && $installed_pkgs{$fullname}{description};
- $base{$fullname} and $installed_pkgs{$fullname}{base} = \${$base{$fullname}};
- if ($base{$fullname} && ${$base{$fullname}} == 1) { $pkg->set_flag_base(1) }
+ if ($base{$fullname}) {
+ $installed_pkgs{$fullname}{base} = \${$base{$fullname}};
+ if (${$base{$fullname}} == 1) { $pkg->set_flag_base(1) }
+ }
$pkg->pack_header;
});
statusbar_msg_remove($wait);