summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2005-10-13 20:54:21 +0000
committerDaouda Lo <daouda@mandriva.com>2005-10-13 20:54:21 +0000
commitc580f2c3cc215257f25cb6c5cf8856db8d1ae7f3 (patch)
treeace0ba7a08942d1fd559485984e678c646ed367e /mdkupdate
parent47ba2a9ddbdbb8dfde66a0b9bbc6c14e63e29a3c (diff)
downloadmgaonline-c580f2c3cc215257f25cb6c5cf8856db8d1ae7f3.tar
mgaonline-c580f2c3cc215257f25cb6c5cf8856db8d1ae7f3.tar.gz
mgaonline-c580f2c3cc215257f25cb6c5cf8856db8d1ae7f3.tar.bz2
mgaonline-c580f2c3cc215257f25cb6c5cf8856db8d1ae7f3.tar.xz
mgaonline-c580f2c3cc215257f25cb6c5cf8856db8d1ae7f3.zip
- s/MandrakeUpdate/MandrivaUpdate/
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdkupdate b/mdkupdate
index 8e83de52..528c5469 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -83,7 +83,7 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) {
my $MandrakeUpdateURL = $url->{online3_RemoteAction} . '?action=ScheduledRPM' . '&log=' . $o{LOGIN} . '&pass=' . $o{PASS} . '&host=' . $o{MACHINE} . '&key=' . $o{CURRENTKEY};
my $resp = mdkonline::get_from_URL($MandrakeUpdateURL, 'MdkUpdateAgent');
my $contents = $resp->content;
- #print "CONTENTS = $contents \n";
+ print "CONTENTS = $contents \n";
-e $logfile and system "/bin/rm", $logfile;
if ($resp->is_success) {
if ($contents =~ /TRUE/) { $u = 10 } elsif ($contents =~ m/(\d+)/) { $u = sprintf("%d", $1) } else { $u = 83 }
@@ -104,9 +104,9 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) {
-f $currentrpm or rpm_qa($currentrpm);
if ($opt eq '--applet') {
if ($release <= 10.1) {
- system "/usr/bin/MandrakeUpdate", "--no-confirmation", "--media=update_source", "--pkg-sel=$scheduled", "--pkg-nosel=$noscheduled";
+ system "/usr/bin/MandrivaUpdate", "--no-confirmation", "--media=update_source", "--pkg-sel=$scheduled", "--pkg-nosel=$noscheduled";
} else {
- system "/usr/bin/MandrakeUpdate", "--no-confirmation", "--no-media-update", "--media=update_source", "--pkg-sel=$scheduled", "--pkg-nosel=$noscheduled";
+ system "/usr/bin/MandrivaUpdate", "--no-confirmation", "--no-media-update", "--media=update_source", "--pkg-sel=$scheduled", "--pkg-nosel=$noscheduled";
}
} elsif ($opt eq '--noX') {
my $in = interactive->vnew;