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>
next in thread | raw e-mail | index | archive | help
--nextPart10744441.PI9y0DppL9 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, would you mind applying the following patch to 'portsclean' from=20 portupgrade-2.4.6_4,2?=20 It fixes the problem of deleting all distfiles after the MD5/SHA256=20 switch. > diff -u /usr/local/sbin/portsclean.dist /usr/local/sbin/portsclean =2D-- /usr/local/sbin/portsclean.dist 2010-03-12 20:18:28.000000000 +01= 00 +++ /usr/local/sbin/portsclean 2010-10-30 10:15:11.000000000 +0200 @@ -609,7 +609,7 @@ =20 open(file) do |f| f.each do |line| =2D if /^MD5 \((.*)\) =3D / =3D~ line + if /^SHA256 \((.*)\) =3D / =3D~ line distfiles << $1 end end @@ -632,7 +632,7 @@ =20 distfiles else =2D file =3D $portsdb.make_var('MD5_FILE', portdir) + file =3D $portsdb.make_var('DISTINFO_FILE', portdir) =20 parse_distinfo(file) end Thank you very much. Regards, Juergen Galonska =2D-=20 J=FCrgen Galonska --nextPart10744441.PI9y0DppL9--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010301206.40679.caligula>