pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/port2pkg Fix Perl error
details: https://anonhg.NetBSD.org/pkgsrc/rev/a36ed216ccfb
branches: trunk
changeset: 380627:a36ed216ccfb
user: hauke <hauke%pkgsrc.org@localhost>
date: Fri May 18 09:42:33 2018 +0000
description:
Fix Perl error
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE PORTNAME}/
diffstat:
pkgtools/port2pkg/Makefile | 4 ++--
pkgtools/port2pkg/files/port2pkg.pl | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 9db6766e39c5 -r a36ed216ccfb pkgtools/port2pkg/Makefile
--- a/pkgtools/port2pkg/Makefile Fri May 18 07:18:12 2018 +0000
+++ b/pkgtools/port2pkg/Makefile Fri May 18 09:42:33 2018 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.46 2016/07/09 06:38:49 wiz Exp $
+# $NetBSD: Makefile,v 1.47 2018/05/18 09:42:33 hauke Exp $
PKGNAME= port2pkg-1.15
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= pkgtools
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
diff -r 9db6766e39c5 -r a36ed216ccfb pkgtools/port2pkg/files/port2pkg.pl
--- a/pkgtools/port2pkg/files/port2pkg.pl Fri May 18 07:18:12 2018 +0000
+++ b/pkgtools/port2pkg/files/port2pkg.pl Fri May 18 09:42:33 2018 +0000
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
#
-# $NetBSD: port2pkg.pl,v 1.22 2014/02/17 10:32:02 wiz Exp $
+# $NetBSD: port2pkg.pl,v 1.23 2018/05/18 09:42:33 hauke Exp $
#
use Getopt::Std;
@@ -126,8 +126,8 @@
}
if (defined($distname)) {
- $distname =~ s/\${PORTNAME}/$portname/;
- $distname =~ s/\${PORTVERSION}/$portversion/;
+ $distname =~ s/\$\{PORTNAME}/$portname/;
+ $distname =~ s/\$\{PORTVERSION}/$portversion/;
if ($distname ne "$portname-$portversion") {
$pkgname = "$portname-$portversion";
Home |
Main Index |
Thread Index |
Old Index