diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-09-19 13:14:59 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-09-19 13:14:59 +0000 |
commit | 09b99541de8bbacd9f06d759a2e3c384ef4cc100 (patch) | |
tree | ebb3d0fd9ec12aaf42a28752cce256cc752f451f /perl-install/install/pkgs.pm | |
parent | ccab815627e5ad56367a204cc78a7e3ce0b26e37 (diff) | |
download | drakx-09b99541de8bbacd9f06d759a2e3c384ef4cc100.tar drakx-09b99541de8bbacd9f06d759a2e3c384ef4cc100.tar.gz drakx-09b99541de8bbacd9f06d759a2e3c384ef4cc100.tar.bz2 drakx-09b99541de8bbacd9f06d759a2e3c384ef4cc100.tar.xz drakx-09b99541de8bbacd9f06d759a2e3c384ef4cc100.zip |
allow to specify keep_unrequested_dependencies in auto_inst
Diffstat (limited to 'perl-install/install/pkgs.pm')
-rw-r--r-- | perl-install/install/pkgs.pm | 6 |
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; } |