summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-11-04 16:55:03 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-11-04 16:55:03 +0000
commit5420171b5ad1783ea6cb8df631486938708e2c04 (patch)
tree1d5f79a1d263e2ea86b8a8ceed051e1adf7c275a
parent5ed8cc71bb4a24dcf6b8f0e1ea2b655c1fc24713 (diff)
downloadurpmi-5420171b5ad1783ea6cb8df631486938708e2c04.tar
urpmi-5420171b5ad1783ea6cb8df631486938708e2c04.tar.gz
urpmi-5420171b5ad1783ea6cb8df631486938708e2c04.tar.bz2
urpmi-5420171b5ad1783ea6cb8df631486938708e2c04.tar.xz
urpmi-5420171b5ad1783ea6cb8df631486938708e2c04.zip
More system() fixes
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 22b12088..d93b90d8 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2178,7 +2178,7 @@ sub resolve_dependencies {
unlink $file;
foreach (@{$urpm->{media}}) {
defined $_->{start} && defined $_->{end} or next;
- system "cat '$urpm->{statedir}/synthesis.$_->{hdlist}' >> $file";
+ system "cat '$urpm->{statedir}/synthesis.$_->{hdlist}' >> '$file'";
}
#- let each node determine what is requested, according to handler given.
$urpm->{parallel_handler}->parallel_resolve_dependencies($file, @_);
@@ -2335,7 +2335,7 @@ sub get_source_packages {
#- clean download directory, do it here even if this is not the best moment.
if ($options{clean_all}) {
- system("rm", "-rf", "$urpm->{cachedir}/partial");
+ MDK::Common::rm_rf("$urpm->{cachedir}/partial");
mkdir "$urpm->{cachedir}/partial";
}