MT#5709 Do not ignore files without gbp inside the filename

Otherwise files like
ngcp-installer-ce_0.13.0~20140117133338.395+wheezy_all.deb
as being the result of an UNRELEASED entry in the debian/changelog
are ignored.

dpkg-scanpackages is supposed to recognize the
0.10.2+0~1368529812.299+wheezy~1.gbp1691a0 being newer
than 0.10.2 anyway.
ksolomko/vlan
Michael Prokop 12 years ago
parent d14c9c909b
commit b64f8968e4

@ -1050,14 +1050,7 @@ if "$NGCP_INSTALLER" ; then
else else
echo "Found $DEBIAN_RELEASE specific packages, getting rid of all packages without gbp and $DEBIAN_RELEASE in their name." echo "Found $DEBIAN_RELEASE specific packages, getting rid of all packages without gbp and $DEBIAN_RELEASE in their name."
logit "Found $DEBIAN_RELEASE specific packages, getting rid of all packages without gbp and $DEBIAN_RELEASE in their name." logit "Found $DEBIAN_RELEASE specific packages, getting rid of all packages without gbp and $DEBIAN_RELEASE in their name."
# inside the pool there might be versions which have been released inside a # get rid of files not matching the Debian relase we want to install
# maintenance branch but which don't cover recent changes in trunk,
# therefore get rid of every file without "gbp" in the filename, so e.g.
# ngcp-installer-pro_0.10.2+0~1368529812.299+wheezy~1.gbp1691a0_all.deb (trunk version)
# is preferred over
# ngcp-installer-pro_0.10.2_all.deb (release in 2.8 repository)
find ./debs -type f -a ! -name \*gbp\* -exec rm {} +
# same for files not matching the Debian relase we want to install
find ./debs -type f -a ! -name \*\+${DEBIAN_RELEASE}\* -exec rm {} + find ./debs -type f -a ! -name \*\+${DEBIAN_RELEASE}\* -exec rm {} +
fi fi

Loading…
Cancel
Save