diff options
author | Jonas Smedegaard <dr@jones.dk> | 2006-06-24 15:59:37 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2006-06-24 15:59:37 +0000 |
commit | 0a0919e5363464ef9728664d27725b5d503ec341 (patch) | |
tree | b41908dd1ded6f13ed91185e23d495792916bf8a /localcowbuilder-create | |
parent | c9bba5d477ff59fbb9e9a04ed1724043e145b8ec (diff) |
Set variables before using them. Correct buildplace in -login.
Diffstat (limited to 'localcowbuilder-create')
-rwxr-xr-x | localcowbuilder-create | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/localcowbuilder-create b/localcowbuilder-create index a5e767a..67ca225 100755 --- a/localcowbuilder-create +++ b/localcowbuilder-create @@ -12,9 +12,14 @@ fi pool=$1 distro=${2:-$pool} +basepath="/var/cache/pbuilder/cow-$pool" +buildplace="/var/cache/pbuilder/build-$pool/" +aptcache="/var/cache/pbuilder/aptcache-$pool/" +buildresult="$HOME/src/pbuild-$pool/" + sudo cowbuilder --create \ - --buildresult $HOME/src/pbuild-$pool/ \ + --buildresult "$buildresult" \ --distribution "$distro" \ - --basepath /var/cache/pbuilder/cow-$pool \ - --aptcache /var/cache/pbuilder/aptcache-$pool/ \ + --basepath "$basepath" \ + --aptcache "$aptcache" \ ${3:+--othermirror "$3"} |