]> git.decadent.org.uk Git - dak.git/commitdiff
Pass absolute path to queue directory to punew_do()
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 25 May 2013 17:26:35 +0000 (19:26 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sat, 25 May 2013 17:26:35 +0000 (19:26 +0200)
The new backports-policy queue exists in a different queue directory.

config/debian/common

index 4469037a71040872d6225fee998694adebda356b..47cc9b47ef618cbee75ec65a78be69e2c1e582f0 100644 (file)
@@ -105,11 +105,11 @@ function punew_do() {
 
     STAMP=${STAMP:-$(date "+%Y%m%d%H%M")}
 
-    local exportdir="${queuedir}${qdir}/tree/${STAMP}"
-    local targetdir="${queuedir}${qdir}/export"
+    local exportdir="${qdir}/tree/${STAMP}"
+    local targetdir="${qdir}/export"
     dak export -q "${queue}" -d "${exportdir}" --all
     ln -sfT ${exportdir} ${targetdir}
-    find ${queuedir}${qdir}/tree -mindepth 1 -maxdepth 1 -not -name "${STAMP}" -type d -print0 | xargs --no-run-if-empty -0 rm -rf
+    find "${qdir}/tree" -mindepth 1 -maxdepth 1 -not -name "${STAMP}" -type d -print0 | xargs --no-run-if-empty -0 rm -rf
 }
 
 # These versions used in dinstall
@@ -118,7 +118,7 @@ function punew() {
         log "Doing automated p-u-new processing"
     fi
     cd "${queuedir}/p-u-new"
-    punew_do "$1" "p-u-new" "debian-release@lists.debian.org"
+    punew_do "$1" "${queuedir}/p-u-new" "debian-release@lists.debian.org"
 }
 
 function opunew() {
@@ -126,7 +126,7 @@ function opunew() {
         log "Doing automated o-p-u-new processing"
     fi
     cd "${queuedir}/o-p-u-new"
-    punew_do "$1" "o-p-u-new" "debian-release@lists.debian.org"
+    punew_do "$1" "${queuedir}/o-p-u-new" "debian-release@lists.debian.org"
 }
 
 function backports_policy() {