From: Enlightenment S. <no-...@en...> - 2009-05-17 16:46:57
|
Log: Added a workaround for ubuntu jaunty into script - cdebootstrap does not install sysv-rc in jaunty by default, propably because of a bug in jaunty dependencies, and chroot creation fails. And also added a condition - if folder pbuilderplace/build/distro-arch exists, it does not create it. Author: quaker Date: 2009-05-17 09:46:52 -0700 (Sun, 17 May 2009) New Revision: 40707 Modified: trunk/packaging/debian/e17builder.sh Modified: trunk/packaging/debian/e17builder.sh =================================================================== --- trunk/packaging/debian/e17builder.sh 2009-05-17 16:01:41 UTC (rev 40706) +++ trunk/packaging/debian/e17builder.sh 2009-05-17 16:46:52 UTC (rev 40707) @@ -215,8 +215,8 @@ echo "CREATING CHROOTS..." for chroots in ${distros[@]}; do echo "Creating chroot: $(echo $chroots | sed 's/#.*//'):$(echo $chroots | sed 's/.*#//')" - sudo mkdir $pbuilderplace/build/$(echo $chroots | sed 's/#.*//')-$(echo $chroots | sed 's/.*#//') - sudo DIST=$(echo $chroots | sed 's/#.*//') ARCH=$(echo $chroots | sed 's/.*#//') PBUILDERPLACE="$pbuilderplace" pbuilder create --basetgz $pbuilderplace/$(echo $chroots | sed 's/#.*//')-$(echo $chroots | sed 's/.*#//')-base.tgz --buildplace $pbuilderplace/build + [ ! -d "$pbuilderplace/build/$(echo $chroots | sed 's/#.*//')-$(echo $chroots | sed 's/.*#//')" ] && sudo mkdir $pbuilderplace/build/$(echo $chroots | sed 's/#.*//')-$(echo $chroots | sed 's/.*#//') + sudo DIST=$(echo $chroots | sed 's/#.*//') ARCH=$(echo $chroots | sed 's/.*#//') PBUILDERPLACE="$pbuilderplace" pbuilder create --basetgz $pbuilderplace/$(echo $chroots | sed 's/#.*//')-$(echo $chroots | sed 's/.*#//')-base.tgz --buildplace $pbuilderplace/build --debootstrapopts --include=sysv-rc if [ "$?" -ge "1" ]; then echo "ERROR, exitting." exit 1 |