diff options
| author | apb <apb@pkgsrc.org> | 2008-02-16 22:21:35 +0000 |
|---|---|---|
| committer | apb <apb@pkgsrc.org> | 2008-02-16 22:21:35 +0000 |
| commit | 40ef1e450ff37ea4d5f19bdb29a7ffed3dbf4a77 (patch) | |
| tree | 1576409560f94d66d63f237bb891d46b56bd4e1f /pkgtools/pkgdiff/files/patchdiff.pl | |
| parent | 5396c32a11367aead74f1cc4930fe1bbe405aafa (diff) | |
| download | pkgsrc-40ef1e450ff37ea4d5f19bdb29a7ffed3dbf4a77.tar.gz | |
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.
Diffstat (limited to 'pkgtools/pkgdiff/files/patchdiff.pl')
| -rwxr-xr-x | pkgtools/pkgdiff/files/patchdiff.pl | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
