diff options
author | bofh <bofh@FreeBSD.org> | 2018-01-08 04:02:12 +0800 |
---|---|---|
committer | bofh <bofh@FreeBSD.org> | 2018-01-08 04:02:12 +0800 |
commit | d7f31d59e595a489c87a056e2f3280bc46504fa2 (patch) | |
tree | 80f9d2ec7ea7e74f7f0db60b5d38e3d97abb292a /ports-mgmt | |
parent | 791e39c3b0126411b1c3d3806cd1924547ca971b (diff) | |
download | freebsd-ports-gnome-d7f31d59e595a489c87a056e2f3280bc46504fa2.tar.gz freebsd-ports-gnome-d7f31d59e595a489c87a056e2f3280bc46504fa2.tar.zst freebsd-ports-gnome-d7f31d59e595a489c87a056e2f3280bc46504fa2.zip |
ports-mgmt/pkg_cutleaves: Fix creating exclude list for packages with single digit version
PR: 224899
Submitted by: m.ne@gmx.net
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/pkg_cutleaves/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/pkg_cutleaves/files/pkg_cutleaves | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/ports-mgmt/pkg_cutleaves/Makefile b/ports-mgmt/pkg_cutleaves/Makefile index 10ed92bc501b..20a8be9d7a39 100644 --- a/ports-mgmt/pkg_cutleaves/Makefile +++ b/ports-mgmt/pkg_cutleaves/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= pkg_cutleaves -PORTVERSION= 20090810 +PORTVERSION= 20180108 CATEGORIES= ports-mgmt MASTER_SITES= # none DISTFILES= # none diff --git a/ports-mgmt/pkg_cutleaves/files/pkg_cutleaves b/ports-mgmt/pkg_cutleaves/files/pkg_cutleaves index 7e814ee9c2a5..ddae73042340 100644 --- a/ports-mgmt/pkg_cutleaves/files/pkg_cutleaves +++ b/ports-mgmt/pkg_cutleaves/files/pkg_cutleaves @@ -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"; } - |