diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-28 21:12:25 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-28 21:12:25 +0000 |
commit | d43b34011a52eab5d9dcdc2301b09ecc09e02c76 (patch) | |
tree | bdccc6b7209f812850b99d79c4a7183e09f2a691 | |
parent | 72ca5262c252acc49674a143808d85a9ffc65275 (diff) | |
download | drakx-d43b34011a52eab5d9dcdc2301b09ecc09e02c76.tar drakx-d43b34011a52eab5d9dcdc2301b09ecc09e02c76.tar.gz drakx-d43b34011a52eab5d9dcdc2301b09ecc09e02c76.tar.bz2 drakx-d43b34011a52eab5d9dcdc2301b09ecc09e02c76.tar.xz drakx-d43b34011a52eab5d9dcdc2301b09ecc09e02c76.zip |
*** empty log message ***
-rw-r--r-- | move/move.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/move/move.pm b/move/move.pm index a31638c68..d959626fe 100644 --- a/move/move.pm +++ b/move/move.pm @@ -37,7 +37,10 @@ sub handle_etcfiles { m|^# (\S+)| and $mode = $1; m|^/| && member($mode, @allowed_modes) and do { $mode eq 'READ' && !-e $_ and symlinkf_short("/image$_", $_); - $mode eq 'OVERWRITE' and system("cp /image$_ $_"); #- need copy contents + if ($mode eq 'OVERWRITE') { + mkdir_p(dirname($_)); + system("cp /image$_ $_"); #- need copy contents + } $mode eq 'DIR' and mkdir_p $_; } } |