summaryrefslogtreecommitdiffstats
path: root/mdkonline
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-10-10 14:38:41 +0000
committerFrancois Pons <fpons@mandriva.com>2002-10-10 14:38:41 +0000
commit316eb76720880c2e708440ec8c4697cb94cabd10 (patch)
tree9aee35b5c1754e4d53c686f568a6ba1e129d25b8 /mdkonline
parent8ed91f882afe9a535cca19dbdbcec1e9729648a8 (diff)
downloadmgaonline-316eb76720880c2e708440ec8c4697cb94cabd10.tar
mgaonline-316eb76720880c2e708440ec8c4697cb94cabd10.tar.gz
mgaonline-316eb76720880c2e708440ec8c4697cb94cabd10.tar.bz2
mgaonline-316eb76720880c2e708440ec8c4697cb94cabd10.tar.xz
mgaonline-316eb76720880c2e708440ec8c4697cb94cabd10.zip
finally got the stuff to work.
Diffstat (limited to 'mdkonline')
-rwxr-xr-xmdkonline10
1 files changed, 5 insertions, 5 deletions
diff --git a/mdkonline b/mdkonline
index bf9c21d0..1110d520 100755
--- a/mdkonline
+++ b/mdkonline
@@ -319,11 +319,6 @@ sub send_config {
# print STDERR "Sending config\n";
my $result = -1;
- #- added to allow .mdkupdate.rpms file creation.
- open FILE, ">/root/.mdkupdate.rpms" or die "Couldn't open /root/.mdkupdate.rpms : $!";
- print FILE join ('', sort `rpm -qa`);
- close FILE;
-
report_config("/root/$login.$passwd.$box_name.online.log");
`/usr/bin/bzip2 \\\-9 \\\-f /root/$login.$passwd.$box_name.online.log`;
@@ -360,6 +355,11 @@ sub send_config {
# if informations were sent correctly (exit code: 0 from scp script), go to page 5
if (! $result) {
+ #- added to allow .mdkupdate.rpms file creation.
+ open FILE, ">/root/.mdkupdate.rpms" or die "Couldn't open /root/.mdkupdate.rpms : $!";
+ print FILE join ('', sort `rpm -qa`);
+ close FILE;
+
# go to last page
$notebook_global->set_page(5);
} else {