[devscripts] 01/01: cowpoke: Pass --distribution to cowbuilder for --update too

Ron Lee ron at moszumanska.debian.org
Sun Jul 20 21:46:47 UTC 2014


This is an automated email from the git hooks/post-receive script.

ron pushed a commit to branch master
in repository devscripts.

commit 4a6617549ad1801ac81eb11c6f18457a925743ba
Author: Ron <ron at debian.org>
Date:   Mon Jul 21 07:05:20 2014 +0930

    cowpoke: Pass --distribution to cowbuilder for --update too
    
    Because if you pass --override-config in UPDATE_OPTS without it, then
    apparently pbuilder will happily default it to sid for you, whatever
    the chroot was before that.  It just ignores it otherwise though, so
    it should be safe to simply do this all the time.
    
    It shouldn't be often that somebody wants to do that, but it can be
    useful for adding an extra --othermirror or similar to an existing
    chroot without having to completely reinstall it.
---
 scripts/cowpoke.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/cowpoke.sh b/scripts/cowpoke.sh
index 61c5674..4624930 100755
--- a/scripts/cowpoke.sh
+++ b/scripts/cowpoke.sh
@@ -389,7 +389,8 @@ cat > "$REMOTE_SCRIPT" <<-EOF
 	            continue
 	        fi
 	    elif ! [ -e "\$UPDATELOG" ]; then
-	        $BUILDD_ROOTCMD cowbuilder --update --basepath "\$BASE_PATH"    \\
+	        $BUILDD_ROOTCMD cowbuilder --update --distribution \$BASE_DIST  \\
+	                                   --basepath "\$BASE_PATH"             \\
 	                                   --aptcache "$PBUILDER_BASE/aptcache" \\
 	                                   --autocleanaptcache                  \\
 	                                   "\${UPDATE_OPTS[@]}"                 \\

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list