aboutsummaryrefslogtreecommitdiffstats
path: root/URPM/Build.pm
diff options
context:
space:
mode:
Diffstat (limited to 'URPM/Build.pm')
-rw-r--r--URPM/Build.pm10
1 files changed, 2 insertions, 8 deletions
diff --git a/URPM/Build.pm b/URPM/Build.pm
index e3029f7..2c1a592 100644
--- a/URPM/Build.pm
+++ b/URPM/Build.pm
@@ -75,19 +75,13 @@ sub parse_rpms_build_headers {
@headers;
}
-#- check if rereading of hdlist is neccessary.
+#- allow rereading of hdlist and clean.
sub unresolved_provides_clean {
my ($urpm) = @_;
- my @unresolved = grep { ! defined $urpm->{provides}{$_} } keys %{$urpm->{provides} || {}};
+ my @potentially_unresolved = keys %{$urpm->{provides} || {}};
- #- names can be safely removed in any cases.
- delete $urpm->{names};
-
- #- remove
@{$urpm}{qw(depslist provides)} = ([], {});
@{$urpm->{provides}}{@unresolved} = ();
-
- @unresolved;
}
#- read a list of headers (typically when building an hdlist when provides have