Date: Sat, 30 Oct 2010 12:06:22 +0200 From: =?iso-8859-1?q?J=FCrgen_Galonska?= <caligula@primamail.de> To: ruby@freebsd.org Subject: portupgrade-2.4.6_4,2 (patch for 'portsclean') Message-ID: <201010301206.40679.caligula@primamail.de>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010301206.40679.caligula>
