summaryrefslogtreecommitdiffstats
path: root/perl-install/install/pkgs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install/pkgs.pm')
-rw-r--r--perl-install/install/pkgs.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm
index c67843912..70769dfaa 100644
--- a/perl-install/install/pkgs.pm
+++ b/perl-install/install/pkgs.pm
@@ -316,7 +316,8 @@ sub unselectAllPackages {
resolve_requested_and_check($packages, $packages->{state}, \%keep_selected);
}
-sub empty_packages() {
+sub empty_packages {
+ my ($o_keep_unrequested_dependencies) = @_;
my $packages = new URPM;
#- add additional fields used by DrakX.
@@ -324,7 +325,8 @@ sub empty_packages() {
$packages->{log} = \&log::l;
$packages->{prefer_vendor_list} = '/etc/urpmi/prefer.vendor.list';
- $packages->{keep_unrequested_dependencies} = 1;
+ $packages->{keep_unrequested_dependencies} =
+ defined($o_keep_unrequested_dependencies) ? $o_keep_unrequested_dependencies : 1;
$packages;
}