blob: b83fc8a7c10984ad6bf5a601191008ce1e50c945 (
plain)
- #!/bin/sh
- if [ $# -eq 0 ]; then
- echo "Usage: $(basename $0) POOL"
- echo ""
- echo "Example: $(basename $0) sarge_with_hacks"
- exit 1
- fi
- for pool in $@; do
- basepath="/var/cache/pbuilder/cow-$pool"
- aptcache="/var/cache/pbuilder/aptcache-$pool/"
- # sudo cowbuilder --update \
- # --basepath "$basepath" \
- # --aptcache "$aptcache"
- sudo find "$aptcache" -type f -exec cp -a '{}' "$basepath/var/cache/apt/archives/" ';'
- sudo chroot "$basepath" apt-get -y --force-yes update
- sudo chroot "$basepath" apt-get -y --force-yes upgrade
- sudo chroot "$basepath" apt-get -y --force-yes clean
- done
|