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: initialize di...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/25b7a00f2274
branches:  trunk
changeset: 338012:25b7a00f2274
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Aug 17 13:23:35 2019 +0000

description:
pkgtools/url2pkg: initialize dist_subdir early

diffstat:

 pkgtools/url2pkg/files/url2pkg.pl |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 3aa8940c720b -r 25b7a00f2274 pkgtools/url2pkg/files/url2pkg.pl
--- a/pkgtools/url2pkg/files/url2pkg.pl Sat Aug 17 13:21:42 2019 +0000
+++ b/pkgtools/url2pkg/files/url2pkg.pl Sat Aug 17 13:23:35 2019 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: url2pkg.pl,v 1.42 2019/08/17 13:21:42 rillig Exp $
+# $NetBSD: url2pkg.pl,v 1.43 2019/08/17 13:23:35 rillig Exp $
 #
 
 # Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -121,7 +121,7 @@
 my (@wrksrc_files, @wrksrc_dirs);
 my (@depends, @build_depends, @includes, @build_vars, @extra_vars, @todo);
 my ($pkgname);
-my ($dist_subdir);
+my $dist_subdir = "";
 
 #
 # And now to the real magic_* subroutines.
@@ -339,7 +339,7 @@
                        print("$0: ERROR: Invalid GitHub URL: ${url}, handling as normal URL\n");
                }
        } else {
-               $gh_project = ""; $gh_release = ""; $dist_subdir = "";
+               $gh_project = ""; $gh_release = "";
        }
 
        if (!$found) {



Home | Main Index | Thread Index | Old Index