mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
ports-mgmt/pkg_cutleaves: Fix creating exclude list for packages with single digit version
PR: 224899 Submitted by: m.ne@gmx.net
This commit is contained in:
parent
7186c3a2c0
commit
5cff5c2c33
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=458380
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= pkg_cutleaves
|
||||
PORTVERSION= 20090810
|
||||
PORTVERSION= 20180108
|
||||
CATEGORIES= ports-mgmt
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
@ -358,10 +358,9 @@ sub create_excludelist {
|
||||
or die "Failed to open exclude list ($excludefile): $!\n";
|
||||
print EXCLFILE '# Auto-generated exclude list ', scalar localtime, "\n";
|
||||
for (sort keys %leavestokeep) {
|
||||
/^(.+)-\d.+$/o
|
||||
/^(.+)-\d.*$/o
|
||||
? print EXCLFILE $1, "\n"
|
||||
: warn 'Unable to extract exclude pattern from ', $_, "\n";
|
||||
}
|
||||
print "New exclude list ($excludefile) generated.\n";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user