ports/50724: [PATCH] pkg_fetch saves full filename

Mark Hannon markhannon at optusnet.com.au
Tue Apr 8 13:50:10 UTC 2003


>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 at 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:



More information about the freebsd-ports-bugs mailing list