|
@@ -25,23 +25,28 @@ cow-dist () {
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
- WRAPPER=
|
|
|
|
- if echo ${DIST} | grep -q \^sid ; then
|
|
|
|
- if [ -x "$(which eatmydata)" ]; then
|
|
|
|
- WRAPPER="eatmydata"
|
|
|
|
- fi
|
|
|
|
- fi
|
|
|
|
- time sudo -E DIST=${DIST} ${WRAPPER} cowbuilder $@ ${OPTS}
|
|
|
|
|
|
+ time sudo -E DIST=${DIST} cowbuilder $@ ${OPTS}
|
|
return $?
|
|
return $?
|
|
}
|
|
}
|
|
|
|
|
|
-alias cow-sid32="cow-dist sid-32"
|
|
|
|
-alias cow-stable32="cow-dist stable-32"
|
|
|
|
-alias cow-exp64="cow-dist experimental-64"
|
|
|
|
-alias cow-sid64="cow-dist sid-64"
|
|
|
|
-alias cow-testing64="cow-dist testing-64"
|
|
|
|
-alias cow-stable64="cow-dist stable-64"
|
|
|
|
-alias cow-stablebpo="cow-dist stable-bpo-64"
|
|
|
|
|
|
+cow-dist-update () {
|
|
|
|
+ for dist in $@ ; do
|
|
|
|
+ cow-dist ${dist} --update
|
|
|
|
+ done
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+PBUILDER_PATH=/var/cache/pbuilder
|
|
|
|
+if [ -d "${PBUILDER_PATH}" ]; then
|
|
|
|
+ PBUILDER_DISTS=
|
|
|
|
+ for dist in ${PBUILDER_PATH}/*-{i386,amd64}.cow ; do
|
|
|
|
+ dist=${dist:t:r}
|
|
|
|
+ PBUILDER_DISTS="${PBUILDER_DISTS} ${dist}"
|
|
|
|
+ alias cow-${dist/-/}="cow-dist ${dist}"
|
|
|
|
+ done
|
|
|
|
+ alias cow-update="cow-dist-update ${PBUILDER_DISTS}"
|
|
|
|
+ unset PBUILDER_DISTS
|
|
|
|
+fi
|
|
|
|
+unset PBUILDER_PATH
|
|
|
|
|
|
# tools
|
|
# tools
|
|
apt-rbdepends () {
|
|
apt-rbdepends () {
|