aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Nicolas <ennael@mageia.org>2013-12-27 23:53:53 +0100
committerAnne Nicolas <ennael@mageia.org>2013-12-27 23:53:53 +0100
commit789b34d0a0c11a9332a40d87d80cf168ddcc2680 (patch)
tree8d3860634e41650891ebb1a65acd51d1614e62a9
parent7f26cc70c5676c76f193c1f495b8673a71200f9c (diff)
downloadbcd-789b34d0a0c11a9332a40d87d80cf168ddcc2680.tar
bcd-789b34d0a0c11a9332a40d87d80cf168ddcc2680.tar.gz
bcd-789b34d0a0c11a9332a40d87d80cf168ddcc2680.tar.bz2
bcd-789b34d0a0c11a9332a40d87d80cf168ddcc2680.tar.xz
bcd-789b34d0a0c11a9332a40d87d80cf168ddcc2680.zip
fix mkdir to enable proper permissions on urpmq directory
-rw-r--r--BCD/Media.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/BCD/Media.pm b/BCD/Media.pm
index 333bac8..dfbc5f1 100644
--- a/BCD/Media.pm
+++ b/BCD/Media.pm
@@ -425,7 +425,7 @@ sub create_list {
# my $list_filename_update = "$isoconf->{tocopy_file}_todo_$media->{name}_update";
my $list = "$chroot_path/urpmq/$list_filename";
my $list_update = "$chroot_path/urpmq/$list_filename" . "_update";
- system("sudo chroot $chroot_path mkdir -m 777 -p urpmq");
+ system("mkdir -m 777 -p $chroot_path/urpmq");
# urpmq error file
my $urpmq_error = "$chroot_path/$isoconf->{tocopy_file}_urpmi_error_$media->{name}";
my $urpmq_error_update = "$chroot_path/$isoconf->{tocopy_file}_urpmi_error_update_$media->{name}";