pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/url2pkg/files



Module Name:    pkgsrc
Committed By:   rillig
Date:           Sun Aug 18 21:04:37 UTC 2019

Modified Files:
        pkgsrc/pkgtools/url2pkg/files: url2pkg.pl

Log Message:
pkgtools/url2pkg: rewrite regular expression to avoid confusing mcedit


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 pkgsrc/pkgtools/url2pkg/files/url2pkg.pl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/url2pkg/files/url2pkg.pl
diff -u pkgsrc/pkgtools/url2pkg/files/url2pkg.pl:1.62 pkgsrc/pkgtools/url2pkg/files/url2pkg.pl:1.63
--- pkgsrc/pkgtools/url2pkg/files/url2pkg.pl:1.62       Sun Aug 18 18:02:48 2019
+++ pkgsrc/pkgtools/url2pkg/files/url2pkg.pl    Sun Aug 18 21:04:37 2019
@@ -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 @@ sub adjust_cargo() {
 
        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