pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/url2pkg/files pkgtools/url2pkg: rewrite regul...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8e683b7f6b41
branches: trunk
changeset: 399921:8e683b7f6b41
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Aug 18 21:04:37 2019 +0000
description:
pkgtools/url2pkg: rewrite regular expression to avoid confusing mcedit
diffstat:
pkgtools/url2pkg/files/url2pkg.pl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 969936f4fcc5 -r 8e683b7f6b41 pkgtools/url2pkg/files/url2pkg.pl
--- a/pkgtools/url2pkg/files/url2pkg.pl Sun Aug 18 21:00:10 2019 +0000
+++ b/pkgtools/url2pkg/files/url2pkg.pl Sun Aug 18 21:04:37 2019 +0000
@@ -1,5 +1,5 @@
#! @PERL5@
-# $NetBSD: url2pkg.pl,v 1.62 2019/08/18 18:02:48 rillig Exp $
+# $NetBSD: url2pkg.pl,v 1.63 2019/08/18 21:04:37 rillig Exp $
#
# Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -426,7 +426,7 @@
while (defined(my $line = <CONF>)) {
# "checksum cargo-package-name cargo-package-version
- if ($line =~ m/("checksum)\s(\S+)\s(\S+)/) {
+ if ($line =~ qr"^\"checksum\s(\S+)\s(\S+)") {
push(@build_vars, var("CARGO_CRATE_DEPENDS", "+=", "$2-$3"));
}
}
Home |
Main Index |
Thread Index |
Old Index