summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm12
1 files changed, 7 insertions, 5 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index d8854e60d..d844e7ec6 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -1449,15 +1449,17 @@ sub install($$$;$$) {
$retry_package = shift @transToInstall;
$retry_count = 3;
} else {
- if ($retry_count) {
- log::l("retrying installing package $retry_package->[$FILE] alone in a transaction");
- --$retry_count;
- } else {
- if (!packageFlagInstalled($retry_package) && $retry_package->[$MEDIUM]{selected} && !exists($ignoreBadPkg{packageName($retry_package)})) {
+ if (!packageFlagInstalled($retry_package) && $retry_package->[$MEDIUM]{selected} && !exists($ignoreBadPkg{packageName($retry_package)})) {
+ if ($retry_count) {
+ log::l("retrying installing package $retry_package->[$FILE] alone in a transaction");
+ --$retry_count;
+ } else {
log::l("bad package $retry_package->[$FILE] unable to be installed");
packageSetFlagSelected($retry_package, 0);
cdie ("error installing package list: $retry_package->[$FILE]");
}
+ }
+ if (packageFlagInstalled($retry_package) || ! packageFlagSelected($retry_package)) {
packageFreeHeader($retry_package);
$retry_package = shift @transToInstall;
$retry_count = 3;