[Piuparts-devel] [Git][debian/piuparts][develop] 2 commits: python-debianbts 2.10.0 deprecated some methodcalls

Holger Levsen gitlab at salsa.debian.org
Sun Nov 3 15:05:10 GMT 2019



Holger Levsen pushed to branch develop at Debian / piuparts


Commits:
5583ce64 by Bastian Venthur at 2019-11-02T17:48:54Z
python-debianbts 2.10.0 deprecated some methodcalls

- - - - -
e0924c08 by Holger Levsen at 2019-11-03T15:04:59Z
add changelog entry for Bastian

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


3 changed files:

- debian/changelog
- debian/control
- piuparts-analyze.py


Changes:

=====================================
debian/changelog
=====================================
@@ -44,6 +44,10 @@ piuparts (1.1.0) UNRELEASED; urgency=medium
   [ David Prévot ]
   * Use the same favicon as the one from www.d.o.
 
+  [ Bastian Venthur ]
+  * piuparts-analyze.py: updates for python-debianbts 2.10.0 deprecating
+    some methodcalls, update depends in d/control accordingly.
+
  -- Holger Levsen <holger at debian.org>  Sun, 07 Jul 2019 17:15:41 +0200
 
 piuparts (1.0.1) unstable; urgency=medium


=====================================
debian/control
=====================================
@@ -12,7 +12,7 @@ Build-Depends:
  python3-all,
  python3-apt,
  python3-debian,
- python3-debianbts,
+ python3-debianbts (>= 2.10.0),
  python3-distro-info,
  python3-mox3,
  python3-nose,
@@ -66,7 +66,7 @@ Depends:
 # keep this list in sync with piuparts-master-from-git-deps
  adduser,
  openssh-server,
- python3-debianbts,
+ python3-debianbts (>= 2.10.0),
  python3-setproctitle,
  tango-icon-theme,
  xz-utils,
@@ -99,7 +99,7 @@ Depends:
 # this list is synced from piuparts-master
  adduser,
  openssh-server,
- python3-debianbts,
+ python3-debianbts (>= 2.10.0),
  python3-setproctitle,
  tango-icon-theme,
  xz-utils,


=====================================
piuparts-analyze.py
=====================================
@@ -78,7 +78,7 @@ class PiupartsBTS():
 
     def all_piuparts_bugs(self):
         if self._bugs_usertagged_piuparts is None:
-            self._bugs_usertagged_piuparts = debianbts.get_usertag("debian-qa at lists.debian.org", 'piuparts')['piuparts']
+            self._bugs_usertagged_piuparts = debianbts.get_usertag("debian-qa at lists.debian.org", ['piuparts'])['piuparts']
         return self._bugs_usertagged_piuparts
 
     def bugs_in(self, package):
@@ -86,8 +86,8 @@ class PiupartsBTS():
             self._misses += 1
             signal(SIGALRM, alarm_handler)
             alarm(120)
-            bugs = debianbts.get_bugs('package', package, 'bugs', self.all_piuparts_bugs(), 'archive', 'both')
-            bugs += debianbts.get_bugs('package', 'src:' + package, 'bugs', self.all_piuparts_bugs(), 'archive', 'both')
+            bugs = debianbts.get_bugs(package=package, bugs=self.all_piuparts_bugs(), archive='both')
+            bugs += debianbts.get_bugs(package='src:' + package, bugs=self.all_piuparts_bugs(), archive='both')
             alarm(0)
             self._bugs_in_package[package] = sorted(set(bugs), reverse=True)
         self._queries += 1
@@ -98,8 +98,8 @@ class PiupartsBTS():
             self._misses += 1
             signal(SIGALRM, alarm_handler)
             alarm(120)
-            bugs = debianbts.get_bugs('affects', package, 'bugs', self.all_piuparts_bugs(), 'archive', 'both')
-            bugs += debianbts.get_bugs('affects', 'src:' + package, 'bugs', self.all_piuparts_bugs(), 'archive', 'both')
+            bugs = debianbts.get_bugs(affects=package, bugs=self.all_piuparts_bugs(), archive='both')
+            bugs += debianbts.get_bugs(affects='src:' + package, bugs=self.all_piuparts_bugs(), archive='both')
             alarm(0)
             self._bugs_affecting_package[package] = sorted(set(bugs), reverse=True)
         self._queries += 1
@@ -113,7 +113,7 @@ class PiupartsBTS():
             self._misses += 1
             signal(SIGALRM, alarm_handler)
             alarm(60)
-            found_versions = debianbts.get_status(bug)[0].found_versions
+            found_versions = debianbts.get_status([bug])[0].found_versions
             alarm(0)
             versions = []
             for found_version in found_versions:



View it on GitLab: https://salsa.debian.org/debian/piuparts/compare/25130ee5becb81b855b7a24e629c9a3a5dc5281f...e0924c08f254cf66e72a8f7205883a4e582db911

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/compare/25130ee5becb81b855b7a24e629c9a3a5dc5281f...e0924c08f254cf66e72a8f7205883a4e582db911
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20191103/376f9542/attachment-0001.html>


More information about the Piuparts-devel mailing list