work around apt urlencoding downloaded packages and save dummypkgname

This commit is contained in:
josch 2014-07-10 15:47:32 +02:00
parent 1285271d7a
commit eae12b8c60

View file

@ -23,7 +23,8 @@ get_metaset() {
if [ $ismeta = "no" ]; then if [ $ismeta = "no" ]; then
apt-get download "${name}=${ver}" > /dev/null apt-get download "${name}=${ver}" > /dev/null
mkdir "$name" mkdir "$name"
dpkg --extract ${name}_${ver}_*.deb $name # we cannot include the version here because apt urlencodes the : character
dpkg --extract ${name}_*.deb $name
if [ -d ${name}/usr/share/doc ]; then if [ -d ${name}/usr/share/doc ]; then
rm -r ${name}/usr/share/doc rm -r ${name}/usr/share/doc
fi fi
@ -110,11 +111,11 @@ elif [ "$#" -eq 2 ]; then
fi fi
done done
# find sbuild dummy package name # find sbuild dummy package name
dpkg --get-selections | awk '{ print $1; }' \ dummypkgname=`dpkg --get-selections | awk '{ print $1; }' \
| grep sbuild-build-depends \ | grep sbuild-build-depends \
| grep -v sbuild-build-depends-core-dummy \ | grep -v sbuild-build-depends-core-dummy \
| grep -v sbuild-build-depends-essential-dummy \ | grep -v sbuild-build-depends-essential-dummy \
| grep -v sbuild-build-depends-lintian-dummy | grep -v sbuild-build-depends-lintian-dummy`
# output the dependencies of the sbuild dummy package # output the dependencies of the sbuild dummy package
# we use apt to show dependencies because we do not want # we use apt to show dependencies because we do not want
# disjunctions or purely virtual packages to be in the output # disjunctions or purely virtual packages to be in the output