portupgrade-2.4.6_4,2 (patch for 'portsclean')

Jürgen Galonska caligula at primamail.de
Sat Oct 30 10:06:46 UTC 2010


Hello,


would you mind applying the following patch to 'portsclean' from 
portupgrade-2.4.6_4,2? 
It fixes the problem of deleting all distfiles after the MD5/SHA256 
switch.


> diff -u /usr/local/sbin/portsclean.dist /usr/local/sbin/portsclean
--- /usr/local/sbin/portsclean.dist     2010-03-12 20:18:28.000000000 +0100
+++ /usr/local/sbin/portsclean  2010-10-30 10:15:11.000000000 +0200
@@ -609,7 +609,7 @@
 
   open(file) do |f|
     f.each do |line|
-      if /^MD5 \((.*)\) = / =~ line
+      if /^SHA256 \((.*)\) = / =~ line
        distfiles << $1
       end
     end
@@ -632,7 +632,7 @@
 
     distfiles
   else
-    file = $portsdb.make_var('MD5_FILE', portdir)
+    file = $portsdb.make_var('DISTINFO_FILE', portdir)
 
     parse_distinfo(file)
   end


Thank you very much.

Regards,
Juergen Galonska
-- 
Jürgen Galonska


More information about the freebsd-ruby mailing list