aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-27 13:24:36 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-27 13:24:36 +0000
commitcb82cca6728f773af4e163d14ac1e00e1d22fa3e (patch)
treec829c402867177889f9109f121dceed697012709
parente432b3022b3270dc86df13f5ea8882d7d41bbecd (diff)
downloadrpmdrake-cb82cca6728f773af4e163d14ac1e00e1d22fa3e.tar
rpmdrake-cb82cca6728f773af4e163d14ac1e00e1d22fa3e.tar.gz
rpmdrake-cb82cca6728f773af4e163d14ac1e00e1d22fa3e.tar.bz2
rpmdrake-cb82cca6728f773af4e163d14ac1e00e1d22fa3e.tar.xz
rpmdrake-cb82cca6728f773af4e163d14ac1e00e1d22fa3e.zip
(get_pkgs) simplify
-rwxr-xr-xrpmdrake5
1 files changed, 2 insertions, 3 deletions
diff --git a/rpmdrake b/rpmdrake
index 6cec6ae5..6849d24d 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1613,10 +1613,9 @@ Then, restart %s.", $rpmdrake::myname_update)), myexit(-1);
summary => rpm_summary($pkg->summary),
description => rpm_description($pkg->description),
} if !($installed_pkgs{$fullname} && $installed_pkgs{$fullname}{description});
- if ($base{$fullname}) {
- my $name = $base{$fullname};
+ if (my $name = $base{$fullname}) {
$installed_pkgs{$fullname}{base} = \$name;
- if (${$base{$fullname}} == 1) { $pkg->set_flag_base(1) }
+ $pkg->set_flag_base(1) if $$name == 1;
}
$pkg->pack_header;
});