diff options
author | Olivier Blin <oblin@mandriva.org> | 2006-03-13 14:16:26 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2006-03-13 14:16:26 +0000 |
commit | 23642ac95f7674c22031cad550f1982ab0a1d189 (patch) | |
tree | 7d6963e9def345fe6a5d1eb2b20fc3f90783d90f /tools/draklive | |
parent | 419dc2a783c6183961bf411cb2fa2869eb11dfed (diff) | |
download | drakx-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/draklive')
-rwxr-xr-x | tools/draklive | 6 |
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: |