|
@@ -38,12 +38,18 @@ cow-dist-update () {
|
|
PBUILDER_PATH=/var/cache/pbuilder
|
|
PBUILDER_PATH=/var/cache/pbuilder
|
|
if [ -d "${PBUILDER_PATH}" ]; then
|
|
if [ -d "${PBUILDER_PATH}" ]; then
|
|
PBUILDER_DISTS=
|
|
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}"
|
|
|
|
|
|
+ for f in ${PBUILDER_PATH}/* ; do
|
|
|
|
+ case "$f" in
|
|
|
|
+ *-i386.cow|*-amd64.cow)
|
|
|
|
+ dist=${f:t:r}
|
|
|
|
+ PBUILDER_DISTS="${PBUILDER_DISTS} ${dist}"
|
|
|
|
+ alias cow-${dist/-/}="cow-dist ${dist}"
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
done
|
|
done
|
|
- alias cow-update="cow-dist-update ${PBUILDER_DISTS}"
|
|
|
|
|
|
+ if [ -n "${PBUILDER_DISTS}" ]; then
|
|
|
|
+ alias cow-update="cow-dist-update ${PBUILDER_DISTS}"
|
|
|
|
+ fi
|
|
unset PBUILDER_DISTS
|
|
unset PBUILDER_DISTS
|
|
fi
|
|
fi
|
|
unset PBUILDER_PATH
|
|
unset PBUILDER_PATH
|