diff options
author | Jonas Smedegaard <dr@jones.dk> | 2006-06-24 10:26:07 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2006-06-24 10:26:07 +0000 |
commit | c658df20f15b36166ecda447e945fecb8b783e71 (patch) | |
tree | 470d9a12ce9b46dd1f811546facde9bc9a53dd11 | |
parent | d5a907e762f92dc4925aba7b54b0b444a91fdd23 (diff) |
Nasty workaround to cowbuilder --update currently broken.
-rwxr-xr-x | localcowbuilder-update | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/localcowbuilder-update b/localcowbuilder-update index 00fcc2a..2aa7943 100755 --- a/localcowbuilder-update +++ b/localcowbuilder-update @@ -6,9 +6,15 @@ if [ $# -eq 0 ]; then echo "Example: $(basename $0) sarge_with_hacks" exit 1 fi - +set -x for pool in $@; do - sudo cowbuilder --update \ - --basepath /var/cache/pbuilder/cow-$pool \ - --aptcache /var/cache/pbuilder/aptcache-$pool/ + 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 |