From 40ef1e450ff37ea4d5f19bdb29a7ffed3dbf4a77 Mon Sep 17 00:00:00 2001 From: apb Date: Sat, 16 Feb 2008 22:21:35 +0000 Subject: In both mkpatches.pl and patchdiff.pl, ignore a leading "./" when parsing a file name from the "+++" line in an old patch file. (New patch files created by mkpatches do not have "./" in the file name in the "+++" line, but some old patches currently in pkgsrc do have "./" there.) Bump version to 0.120. --- pkgtools/pkgdiff/files/patchdiff.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgtools/pkgdiff/files/patchdiff.pl') diff --git a/pkgtools/pkgdiff/files/patchdiff.pl b/pkgtools/pkgdiff/files/patchdiff.pl index 31f6c2654f2..2aab500c4fa 100755 --- a/pkgtools/pkgdiff/files/patchdiff.pl +++ b/pkgtools/pkgdiff/files/patchdiff.pl @@ -1,6 +1,6 @@ #!@PERL5@ # -# $NetBSD: patchdiff.pl,v 1.8 2007/07/12 15:35:43 joerg Exp $ +# $NetBSD: patchdiff.pl,v 1.9 2008/02/16 22:21:35 apb Exp $ # # patchdiff: compares a set of patches patch-aa, patch-ab, ... in # $WRKDIR/.newpatches in the with another set in patches. @@ -27,6 +27,7 @@ sub getfilename { close(handle); $_ = $1; chomp(); + s/^\.\///; # ignore leading "./", if any. return $_; } close(handle); -- cgit v1.2.3