summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2005-02-14 17:03:25 +0000
committerDaouda Lo <daouda@mandriva.com>2005-02-14 17:03:25 +0000
commitc2dc441562bbba3a41018c0764aad49c5c5cf30f (patch)
treeb61d97a1e1ec6068a883dae04134a62025128713 /mdkupdate
parentf71304593841b287109192fcfd5693ce475af260 (diff)
downloadmgaonline-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-xmdkupdate5
1 files changed, 1 insertions, 4 deletions
diff --git a/mdkupdate b/mdkupdate
index 7b45d1f2..a1f25c2a 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -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});