summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-03-24 15:13:13 +0000
committerDaouda Lo <daouda@mandriva.com>2004-03-24 15:13:13 +0000
commit0efa0a6c7a9b3db4b812dfce3aa2a42cc2aa8e27 (patch)
tree717971d8952760b698f06de978466141c74979a2 /mdkupdate
parent64119f650e0619d0551845c5ac0e9cf2a298f48b (diff)
downloadmgaonline-0efa0a6c7a9b3db4b812dfce3aa2a42cc2aa8e27.tar
mgaonline-0efa0a6c7a9b3db4b812dfce3aa2a42cc2aa8e27.tar.gz
mgaonline-0efa0a6c7a9b3db4b812dfce3aa2a42cc2aa8e27.tar.bz2
mgaonline-0efa0a6c7a9b3db4b812dfce3aa2a42cc2aa8e27.tar.xz
mgaonline-0efa0a6c7a9b3db4b812dfce3aa2a42cc2aa8e27.zip
- delete debug
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate8
1 files changed, 4 insertions, 4 deletions
diff --git a/mdkupdate b/mdkupdate
index 62de13bf..8da21b7a 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -42,7 +42,7 @@ foreach (qw(online_dif online_update online3_RemoteAction)) {
$url->{$_} = $onlineUrl . $_ . '.php'
}
my $rpms_rep = "/root/tmp/";
-my $VERSION = "0.17";
+my $VERSION = "1.0";
my $security = grep { /^-?-security$/ } @ARGV;
my $update = grep { /^-?-update$/ } @ARGV;
@@ -73,13 +73,13 @@ 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 = getFromURL($MandrakeUpdateURL);
my $contents = $resp->content;
- print "CONTENTS = $contents \n";
+ #print "CONTENTS = $contents \n";
if ($resp->is_success) {
if ($contents =~ /TRUE/) { $u = 10 } elsif ($contents = m/(\d+)/) { $u = sprintf("%d", $1) } else { $u = 83 } ;
my $action = {
10 => sub {
my $c2h = splitContents($contents);
- printf("\nCONTENTS = $contents \n torf = %s\n OLDKEY = %s = %s \n NEWKEY = %s \n FTP = %s\n", $c2h->{torf}, $c2h->{OLDKEY}, $o{CURRENTKEY}, $c2h->{NEWKEY}, $c2h->{FTP} );
+ #printf("\nCONTENTS = $contents \n torf = %s\n OLDKEY = %s = %s \n NEWKEY = %s \n FTP = %s\n", $c2h->{torf}, $c2h->{OLDKEY}, $o{CURRENTKEY}, $c2h->{NEWKEY}, $c2h->{FTP} );
if ($c2h->{torf} eq "TRUE" && $c2h->{OLDKEY} && $c2h->{NEWKEY}) { updateConf($c2h->{OLDKEY}, $c2h->{NEWKEY}) }
if ($c2h->{FTP}) {
# for debugging purpose
@@ -88,7 +88,7 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) {
}
$scheduled = join(',',@{$c2h->{sched}});
$noscheduled = join(',',@{$c2h->{nosched}}); $noscheduled =~ s/\.rpm//g;
- printf "SCHEDULED = $scheduled\nNOSCHEDULED = $noscheduled\n";
+ #printf "SCHEDULED = $scheduled\nNOSCHEDULED = $noscheduled\n";
if ($opt eq '--applet') {
system "MandrakeUpdate","--media=mdkupdate","--pkg-sel=$scheduled","--pkg-nosel=$noscheduled";
} elsif ($opt eq '--auto') {