]> git.decadent.org.uk Git - dak.git/commitdiff
config/debian/dinstall.functions: create ${archiveroot}/indices
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 24 Feb 2013 20:04:39 +0000 (21:04 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 24 Feb 2013 20:04:39 +0000 (21:04 +0100)
config/debian/dinstall.functions

index ee1b58e27a87be2d58a3e19d75bca6aa8654b637..21d75e004245e913fee9a72b8374a1e824e49236 100644 (file)
@@ -219,12 +219,17 @@ function mklslar() {
 
 function mkmaintainers() {
     local archiveroot
+    local indices
 
     log 'Creating Maintainers index ... '
 
     for archive in "${public_archives[@]}"; do
         archiveroot="$(get_archiveroot "${archive}")"
-        cd "${archiveroot}/indices"
+       indices="${archiveroot}/indices"
+       if ! [ -d "${indices}" ]; then
+           mkdir "${indices}"
+       fi
+        cd "${indices}"
 
         dak make-maintainers -a "${archive}" ${scriptdir}/masterfiles/pseudo-packages.maintainers
         gzip -9v --rsyncable <Maintainers >Maintainers.gz