Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 May 2001 21:47:54 -0400 (EDT)
From:      dannyboy@freebsd.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/27294: pkg_update disregards suffixes (portrevision, portepoch)
Message-ID:  <20010513014754.17AFD5A56B@dannyboy.worksforfood.com>

next in thread | raw e-mail | index | archive | help

>Number:         27294
>Category:       bin
>Synopsis:       pkg_update disregards suffixes (portrevision, portepoch)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 12 18:50:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Harris
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD dannyboy.worksforfood.com 4.3-STABLE FreeBSD 4.3-STABLE #10: Sat Apr 28 02:45:35 EDT 2001 root@dannyboy.worksforfood.com:/usr/obj/usr/src/sys/INDEPENDENCE i386


	
>Description:
	pkg_update does not handle suffixes (portrevision and portepoch)
	correctly.  foo-1.2.3_4 is seen as foo-1.2.3 .
>How-To-Repeat:
	
>Fix:

	I have no idea what I'm doing, much less if this is the correct
	solution.  Please take a look before committing anything.

Index: pkg_update.pl
===================================================================
RCS file: /home/ncvs/src/usr.sbin/pkg_install/update/pkg_update.pl,v
retrieving revision 1.4
diff -u -r1.4 pkg_update.pl
--- pkg_update.pl	2001/01/14 02:05:02	1.4
+++ pkg_update.pl	2001/05/13 00:55:18
@@ -52,7 +52,7 @@
 sub get_version($) {
 	my ($pkg) = @_;
 
-	$pkg =~ /(.+)-([0-9\.]+)/;
+	$pkg =~ /(.+)-([0-9(?\.|_|,)]+)/;
 	if (! $2) {
 		return($pkg, "");
 	} else {
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010513014754.17AFD5A56B>