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: remove leftov...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a978f0ea2c2e
branches:  trunk
changeset: 415181:a978f0ea2c2e
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Oct 03 14:48:48 2019 +0000

description:
pkgtools/url2pkg: remove leftover debug print statement

diffstat:

 pkgtools/url2pkg/files/url2pkg.py |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (41 lines):

diff -r 416b9b2b0c3c -r a978f0ea2c2e pkgtools/url2pkg/files/url2pkg.py
--- a/pkgtools/url2pkg/files/url2pkg.py Thu Oct 03 14:43:56 2019 +0000
+++ b/pkgtools/url2pkg/files/url2pkg.py Thu Oct 03 14:48:48 2019 +0000
@@ -1,5 +1,5 @@
 #! @PYTHONBIN@
-# $NetBSD: url2pkg.py,v 1.2 2019/10/03 12:52:54 rillig Exp $
+# $NetBSD: url2pkg.py,v 1.3 2019/10/03 14:48:48 rillig Exp $
 
 # Copyright (c) 2019 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -773,16 +773,16 @@
             lines.add('')
 
         depend_vars = []
-        depend_vars.extend(map(lambda d: Var('BUILD_DEPENDS', '+=', d), self.build_depends))
-        depend_vars.extend(map(lambda d: Var('DEPENDS', '+=', d), self.depends))
-        depend_vars.extend(map(lambda d: Var('TEST_DEPENDS', '+=', d), self.test_depends))
+        depend_vars.extend(Var('BUILD_DEPENDS', '+=', d) for d in self.build_depends)
+        depend_vars.extend(Var('DEPENDS', '+=', d) for d in self.depends)
+        depend_vars.extend(Var('TEST_DEPENDS', '+=', d) for d in self.test_depends)
         lines.add_vars(*depend_vars)
 
         lines.add_vars(*self.build_vars)
         lines.add_vars(*self.extra_vars)
 
         lines.add(*self.bl3_lines)
-        lines.add(*map(lambda include: '.include "%s"' % include, self.includes))
+        lines.add(*(f'.include "{include}"' for include in self.includes))
 
         lines.add(*self.makefile_lines.lines[marker_index + 1:])
 
@@ -833,8 +833,7 @@
 
     try:
         opts, args = getopt.getopt(sys.argv[1:], 'v', ['verbose'])
-        for (opt, optarg) in opts:
-            print('opt', repr(opt))
+        for (opt, _) in opts:
             if opt in ('-v', '--verbose'):
                 config.verbose = True
     except getopt.GetoptError:



Home | Main Index | Thread Index | Old Index