Bug#774443: unblock: reportbug/6.6.2

2015-01-04 Thread Sandro Tosi
Hi,

On Sat, Jan 3, 2015 at 11:12 AM, Ivo De Decker iv...@debian.org wrote:
 Control: tags -1 moreinfo

 Hi,

 On Fri, Jan 02, 2015 at 08:59:16PM +, Sandro Tosi wrote:
 Please unblock package reportbug

 -if online:
 -if tag == 'wheezy-pu':
 -version = checkversions.get_versions_available(package, 
 timeout, 'wheezy').values()[0]
 -elif tag == 'squeeze-pu':
 -version = checkversions.get_versions_available(package, 
 timeout, 'squeeze').values()[0]
 +if online and tag.endswith('-pu'):
 +version = checkversions.get_versions_available(package, 
 timeout, tag[:-3]).values()[0]

 This doesn't actually seem to be correct. The url that gets checked is this
 one:

you're right! I just uploaded 6.6.3 to fix it.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#774443: unblock: reportbug/6.6.2

2015-01-03 Thread Ivo De Decker
Control: tags -1 moreinfo

Hi,

On Fri, Jan 02, 2015 at 08:59:16PM +, Sandro Tosi wrote:
 Please unblock package reportbug

 -if online:
 -if tag == 'wheezy-pu':
 -version = checkversions.get_versions_available(package, 
 timeout, 'wheezy').values()[0]
 -elif tag == 'squeeze-pu':
 -version = checkversions.get_versions_available(package, 
 timeout, 'squeeze').values()[0]
 +if online and tag.endswith('-pu'):
 +version = checkversions.get_versions_available(package, timeout, 
 tag[:-3]).values()[0]

This doesn't actually seem to be correct. The url that gets checked is this
one:

http://qa.debian.org/madison.php?package=reportbugtext=ons=j,e,s,s,i,ea=source,all,amd64

This return all versions, and a random one is picked.

It seems to work like this:

version = checkversions.get_versions_available(package, timeout, 
(tag[:-3],)).values()[0]

This isn't actually a regression (it doesn't work in the current version), but
it might be nice to fix it.

Cheers,

Ivo


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#774443: unblock: reportbug/6.6.2

2015-01-02 Thread Sandro Tosi
Package: release.debian.org
Severity: normal
User: release.debian@packages.debian.org
Usertags: unblock

Please unblock package reportbug

This upload introduces the jessie-pu tag for release.d.o

unblock reportbug/6.6.2

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 
'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru reportbug-6.6.1/debian/changelog reportbug-6.6.2/debian/changelog
--- reportbug-6.6.1/debian/changelog	2014-12-02 21:53:13.0 +
+++ reportbug-6.6.2/debian/changelog	2015-01-02 20:52:25.0 +
@@ -1,3 +1,11 @@
+reportbug (6.6.2) unstable; urgency=medium
+
+  * reportbug/debbugs.py
+- introduce jessie-pu (removing now EOL squeeze-pu) tag for release.d.o;
+  thanks to Matt Kraai for the report and patch; Closes: #773142
+
+ -- Sandro Tosi mo...@debian.org  Fri, 02 Jan 2015 20:48:12 +
+
 reportbug (6.6.1) unstable; urgency=medium
 
   * reportbug/utils.py
diff -Nru reportbug-6.6.1/reportbug/debbugs.py reportbug-6.6.2/reportbug/debbugs.py
--- reportbug-6.6.1/reportbug/debbugs.py	2014-12-02 21:53:13.0 +
+++ reportbug-6.6.2/reportbug/debbugs.py	2015-01-02 20:52:25.0 +
@@ -399,8 +399,8 @@
 'britney':  testing migration script bugs,
 'transition':   transition tracking,
 'unblock':  unblock requests,
-'squeeze-pu':   squeeze proposed updates requests,
 'wheezy-pu':wheezy proposed updates requests,
+'jessie-pu':jessie proposed updates requests,
 'rm':   Stable/Testing removal requests,
 'other' :   None of the other options,
 }, 'Choose the request type: ', empty_ok=True)
@@ -445,14 +445,11 @@
 else:
 package = info[12] or package
 
-if tag in ('binnmu', 'unblock', 'wheezy-pu', 'squeeze-pu', 'rm'):
+if tag in ('binnmu', 'unblock', 'jessie-pu', 'wheezy-pu', 'rm'):
 # FIXME: pu/rm should lookup the version elsewhere
 version = info and info[0]
-if online:
-if tag == 'wheezy-pu':
-version = checkversions.get_versions_available(package, timeout, 'wheezy').values()[0]
-elif tag == 'squeeze-pu':
-version = checkversions.get_versions_available(package, timeout, 'squeeze').values()[0]
+if online and tag.endswith('-pu'):
+version = checkversions.get_versions_available(package, timeout, tag[:-3]).values()[0]
 if version:
 cont = ui.select_options(
 Latest version seems to be %s, is this the proper one ? % (version),
diff -Nru reportbug-6.6.1/reportbug/__init__.py reportbug-6.6.2/reportbug/__init__.py
--- reportbug-6.6.1/reportbug/__init__.py	2014-12-02 21:53:13.0 +
+++ reportbug-6.6.2/reportbug/__init__.py	2015-01-02 20:52:25.0 +
@@ -25,7 +25,7 @@
 __all__ = ['bugreport', 'utils', 'urlutils', 'checkbuildd', 'checkversions',
'debbugs', 'exceptions', 'submit', 'tempfile']
 
-VERSION_NUMBER = 6.6.1
+VERSION_NUMBER = 6.6.2
 
 VERSION = reportbug +VERSION_NUMBER
 COPYRIGHT = VERSION + '\nCopyright (C) 1999-2008 Chris Lawrence lawre...@debian.org' + \
Binary files /tmp/M2Ea93id_g/reportbug-6.6.1/reportbug/__init__.pyc and /tmp/SozF3ygwqT/reportbug-6.6.2/reportbug/__init__.pyc differ