diff options
author | Daouda Lo <daouda@mandriva.com> | 2005-02-14 17:03:25 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2005-02-14 17:03:25 +0000 |
commit | c2dc441562bbba3a41018c0764aad49c5c5cf30f (patch) | |
tree | b61d97a1e1ec6068a883dae04134a62025128713 /mdkupdate | |
parent | f71304593841b287109192fcfd5693ce475af260 (diff) | |
download | mgaonline-c2dc441562bbba3a41018c0764aad49c5c5cf30f.tar mgaonline-c2dc441562bbba3a41018c0764aad49c5c5cf30f.tar.gz mgaonline-c2dc441562bbba3a41018c0764aad49c5c5cf30f.tar.bz2 mgaonline-c2dc441562bbba3a41018c0764aad49c5c5cf30f.tar.xz mgaonline-c2dc441562bbba3a41018c0764aad49c5c5cf30f.zip |
- we need transaction in mnf to access mnf var, let's mv that to
mdkonline-update.pl in mnf backend script.
Diffstat (limited to 'mdkupdate')
-rwxr-xr-x | mdkupdate | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -96,9 +96,6 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) { $noscheduled = join(',', @{$c2h->{nosched}}); $noscheduled =~ s/\.rpm//g; #printf "SCHEDULED = $scheduled\nNOSCHEDULED = $noscheduled\n"; -f $currentrpm or rpm_qa($currentrpm); - if ($opt eq '--mnf') { - install_mnf_pkgs(); - } if ($opt eq '--applet') { system "/usr/bin/MandrakeUpdate", "--no-confirmation", "--media=update_source", "--pkg-sel=$scheduled", "--pkg-nosel=$noscheduled" } elsif ($opt eq '--auto') { @@ -107,7 +104,7 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) { rpm_qa($afterrpm); my %new = getVarsFromSh($conffile); my $need_upload = get_rpm_diff(); - if ($need_upload || $opt eq '--auto') { + if ($need_upload || member($opt, qw(--auto --mnf))) { #- send configuration and get back key to use... my $r; ($r, $new{CURRENTKEY}) = send_conf_update($new{LOGIN}, $new{PASS}, $new{MACHINE}); |