summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-09-20 06:38:37 +0000
committerDaouda Lo <daouda@mandriva.com>2004-09-20 06:38:37 +0000
commit9cb611038f9cc0d7031e69267be8321cbf33bf8e (patch)
tree34eaad21939c909fc4709b3e86d16fdda6aeb420 /mdkupdate
parenta3b32f291a93dee60dc29b95fb99db7e59b57010 (diff)
downloadmgaonline-9cb611038f9cc0d7031e69267be8321cbf33bf8e.tar
mgaonline-9cb611038f9cc0d7031e69267be8321cbf33bf8e.tar.gz
mgaonline-9cb611038f9cc0d7031e69267be8321cbf33bf8e.tar.bz2
mgaonline-9cb611038f9cc0d7031e69267be8321cbf33bf8e.tar.xz
mgaonline-9cb611038f9cc0d7031e69267be8321cbf33bf8e.zip
- resend whole conf file every day
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate6
1 files changed, 2 insertions, 4 deletions
diff --git a/mdkupdate b/mdkupdate
index cf336648..8d939e76 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -40,8 +40,6 @@ foreach (qw(online_dif online_update online3_RemoteAction wizard)) {
my $rpms_rep = "/root/tmp/";
my $VERSION = "1.0";
my $YEARS = "2002-2004";
-my $security = find { /^-?-security$/ } @ARGV;
-my $update = find { /^-?-update$/ } @ARGV;
#for compatibilities
mkdir_p($confdir) if !-d $confdir;
@@ -64,7 +62,7 @@ usage:
}
my ($opt) = @ARGV;
-@ARGV == 1 && ($opt eq '--auto' || $opt eq '--security' || $opt eq '--applet') or usage();
+@ARGV == 1 && ($opt eq '--auto' || $opt eq '--applet') or usage();
-s $conffile or die N("No %s file found. Run mdkonline wizard first", $conffile);
@@ -98,7 +96,7 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) {
}
rpm_qa("$confdir/rpm_qa_installed_after");
my %new = getVarsFromSh($conffile);
- if (! -s "$confdir/mdkupdate.rpms" || $update) {
+ if (! -s "$confdir/mdkupdate.rpms" || $opt eq '--auto') {
#- send configuration and get back key to use...
my $r;