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

Bug#24622: dpkg-dev: dpkg-name should ignore epochs



Package: dpkg-dev
Version: 1.4.0.22
Severity: wishlist

The dpkg-name utility should ignore epochs in the names it gives
.deb files, eg it should rename `bison.deb' to `bison_1.25-12.deb',
not `bison_1:1.25-12.deb'. Here is a simple patch which does this:-

--- /usr/bin/dpkg-name	Sun Apr  5 18:01:25 1998
+++ dpkg-name	Wed Jul 15 10:28:57 1998
@@ -66,6 +66,7 @@
 		then
 			v=$v-$r;
 		fi
+		v=`echo $v | sed -e 's/^[0-9]*://'`;
 
 		a=`dpkg-deb -f -- "$1" architecture`;
 		a=`echo $a|sed -e 's/ *//g'`;

-- System Information
Debian Release: 2.0
Kernel Version: Linux lpsg 2.1.101 #19 Fri Jun 5 18:24:04 BST 1998 i686 unknown


--  
To UNSUBSCRIBE, email to debian-dpkg-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: