[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#359634: Patch to make apt binNMUable



tags 359634 + patch
thanks

I've attached a patch which fixes this bug by dropping anything after a '+' in 
the Debian version, for comparing it to the version in the autoconf files.
-- 
Daniel Schepler
diff -urN apt-0.6.46.old/debian/rules apt-0.6.46/debian/rules
--- apt-0.6.46.old/debian/rules	2006-04-26 10:54:08.000000000 +0000
+++ apt-0.6.46/debian/rules	2006-09-22 02:45:02.000000000 +0000
@@ -38,7 +38,7 @@
 
 PKG=apt
 DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
-APT_DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
+APT_DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p' -e 's/\+.*$$//')
 APT_CONFVER=$(shell sed -n -e 's/^AC_DEFINE_UNQUOTED(VERSION,"\(.*\)")/\1/p' configure.in)
 APT_CVSTAG=$(shell echo "$(APT_DEBVER)" | sed -e 's/^/v/' -e 's/\./_/g')
 

Reply to: