[pkg-perl-tools] 01/02: dpt-lp-mass-subscribe: port to python3.
gregor herrmann
gregoa at debian.org
Thu Feb 15 16:23:14 UTC 2018
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository pkg-perl-tools.
commit 4f698cfa5374f88f22f04fdc2ed42de0d3f03944
Author: gregor herrmann <gregoa at debian.org>
Date: Thu Feb 15 17:10:43 2018 +0100
dpt-lp-mass-subscribe: port to python3.
---
debian/control | 4 ++--
debian/copyright | 1 +
scripts/lp-mass-subscribe | 9 +++++----
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/debian/control b/debian/control
index 8adc4cb..fb40ce2 100644
--- a/debian/control
+++ b/debian/control
@@ -88,8 +88,8 @@ Suggests: bc,
moreutils,
parallel,
perl-depends,
- python,
- python-launchpadlib
+ python3,
+ python3-launchpadlib
Enhances: lintian
Description: collection of tools to aid packaging Perl modules in Debian
The Debian Perl Group works on packaging Perl modules for Debian. This
diff --git a/debian/copyright b/debian/copyright
index 4cbb5e3..09b06de 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -124,6 +124,7 @@ License: Artistic or GPL-1+
Files: scripts/lp-mass-subscribe
Copyright: 2010, Ansgar Burchardt <ansgar at 43-1.org>
2012, Nathan Handler <nhandler at ubuntu.com>
+ 2018, gregor herrmann <gregoa at debian.org>
License: ISC
Files: scripts/packagecheck
diff --git a/scripts/lp-mass-subscribe b/scripts/lp-mass-subscribe
index 03b194a..2d2c62d 100755
--- a/scripts/lp-mass-subscribe
+++ b/scripts/lp-mass-subscribe
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/python3
"""
=head1 NAME
@@ -20,6 +20,7 @@ L<get-ubuntu-packages(1)>.
Copyright 2010, Ansgar Burchardt L<ansgar at 43-1.org>
Copyright 2012, Nathan Handler L<nhandler at ubuntu.com>
+Copyright 2018, gregor herrmann L<gregoa at debian.org>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -52,14 +53,14 @@ packages = map(lambda x: x.strip(), stdin.readlines())
for package_name in packages:
package = distribution.getSourcePackage(name = package_name)
if not package:
- print "%s: does not exist (yet)" % package_name
+ print("{0:s}: does not exist (yet)".format(package_name))
continue
if package.getSubscription(person = person):
- print "%s: %s is already subscribed" % (package_name, person_name)
+ print("{0:s}: {1:s} is already subscribed".format(package_name, person_name))
continue
package.addBugSubscription(subscriber = person)
- print "%s: subscribed %s" % (package_name, person_name)
+ print("{0:s}: subscribed {1:s}".format(package_name, person_name))
# vim:set et sw=2:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git
More information about the Pkg-perl-cvs-commits
mailing list