summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2014-01-05 13:43:03 +0100
committerThomas Backlund <tmb@mageia.org>2014-01-05 13:43:03 +0100
commitaeec7b5a1c6becafa4ea37c47f4cfb1d48ee82b3 (patch)
treedda7ea300a9edca6ccf9a94b25420ee8dd2266d8
parentf400167c93d2e4ec4fc55096cd3056e8a09456d3 (diff)
downloaddraklive-config-aeec7b5a1c6becafa4ea37c47f4cfb1d48ee82b3.tar
draklive-config-aeec7b5a1c6becafa4ea37c47f4cfb1d48ee82b3.tar.gz
draklive-config-aeec7b5a1c6becafa4ea37c47f4cfb1d48ee82b3.tar.bz2
draklive-config-aeec7b5a1c6becafa4ea37c47f4cfb1d48ee82b3.tar.xz
draklive-config-aeec7b5a1c6becafa4ea37c47f4cfb1d48ee82b3.zip
create live media dirs if they dont exist
-rwxr-xr-xfiles/mga_rpms/update_media.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/files/mga_rpms/update_media.sh b/files/mga_rpms/update_media.sh
index ab367a9..fac618c 100755
--- a/files/mga_rpms/update_media.sh
+++ b/files/mga_rpms/update_media.sh
@@ -1,6 +1,10 @@
bcdmedia=/home/bcd/build_bcd/pieces/cauldron
+# create dirs if non-existant
+mkdir -p {i586,x86_64}/mga_rpms/{core,nonfree}/media_info
+
+# clean dirs
rm -f {i586,x86_64}/mga_rpms/{core,nonfree}/*.rpm
rm -f {i586,x86_64}/mga_rpms/{core,nonfree}/media_info/*