summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-03-13 14:16:26 +0000
committerOlivier Blin <oblin@mandriva.org>2006-03-13 14:16:26 +0000
commit23642ac95f7674c22031cad550f1982ab0a1d189 (patch)
tree7d6963e9def345fe6a5d1eb2b20fc3f90783d90f /tools
parent419dc2a783c6183961bf411cb2fa2869eb11dfed (diff)
downloaddrakx-23642ac95f7674c22031cad550f1982ab0a1d189.tar
drakx-23642ac95f7674c22031cad550f1982ab0a1d189.tar.gz
drakx-23642ac95f7674c22031cad550f1982ab0a1d189.tar.bz2
drakx-23642ac95f7674c22031cad550f1982ab0a1d189.tar.xz
drakx-23642ac95f7674c22031cad550f1982ab0a1d189.zip
change system files option semantics (copy one file only, but allow to set its permissions)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/draklive6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/draklive b/tools/draklive
index 1c7eaf944..4d8e304b3 100755
--- a/tools/draklive
+++ b/tools/draklive
@@ -496,8 +496,10 @@ sub post_install_system {
run_('patch', '-p0', '-s', '-N', '-F', 0, '-d', get_system_root($live), '-r', '/tmp', '-i', $_) foreach @patches;
foreach (@{$live->{system}{files}}) {
- my $dest = pop @$_;
- cp_af(@$_, get_system_root($live) . $dest);
+ my ($source, $dest, $o_perm) = @$_;
+ $dest = get_system_root($live) . $dest;
+ cp_f($source, $dest);
+ chmod $o_perm, $dest if $o_perm;
}
#- make sure harddrake is run: