Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2003 23:44:48 +1000 (EST)
From:      Mark Hannon <markhannon@optusnet.com.au>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/50724: [PATCH] pkg_fetch saves full filename
Message-ID:  <200304081344.h38DimBO070095@doorway.home.lan>
Resent-Message-ID: <200304081350.h38Do8Ae000888@freefall.freebsd.org>

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

>Number:         50724
>Category:       ports
>Synopsis:       [PATCH] pkg_fetch saves full filename
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 08 06:50:07 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mark Hannon
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
>Environment:
System: FreeBSD doorway.home.lan 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct 9 15:08:34 GMT 2002 root@builder.freebsdmall.com:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	

I use the following change to pkg_fetch to save the fetched packages with the full
filename, including version information.

--- pkg_fetch   Tue Apr  8 23:38:55 2003
+++ /usr/local/sbin/pkg_fetch   Tue Apr  8 21:16:22 2003
@@ -247,8 +247,7 @@
     raise "corrupt package"
   end
  
-  save_path = File.join($packages_dir, pkgname)
-  save_path.concat(pkgfilename[/\.t.*$/])
+  save_path = File.join($packages_dir, pkgfilename)
  
   begin
     FileUtils.mv(temp_path, save_path)


>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:



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