From 7d92690136319012125f0badb2b73309be904e13 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Fri, 11 Nov 2011 00:12:35 -0800 Subject: [PATCH] package version parser now works with native packages --- Makefile.PL | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 683df01..15636e6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,11 +6,11 @@ sub parseversion { # grab the version number from the debian changelog file. I look for lines line # -# libpackage-perl (0.02-1) unstable; urgency=low +# libpackage-perl (0.02) unstable; urgency=low # # I parse out the 0.02 part open DCH, 'debian/changelog' or die "Couldn't open debian/changelog"; - my ($version) = =~ /^\S+ \s* \( ([0-9\.]+) - \w+ \)/x + my ($version) = =~ /^\S+ \s* \( ([0-9\.]+) \)/x or die "Couldn't parse version from debian/changelog"; close DCH;