Package: osc Version: 0.148.1-1 Severity: normal Tags: patch Hey,
In some case i get: AttributeError: OscHTTPBasicAuthHandler instance has no attribute 'reset_retry_count when uploading a new package in OBS. Attached is a patch to fix that -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages osc depends on: ii ca-certificates 20140325 ii python 2.7.8-1 ii python-m2crypto 0.21.1-3 ii python-rpm 4.11.3-1 ii python-urlgrabber 3.9.1-4ubuntu2bf1 Versions of packages osc recommends: ii cpio 2.11+dfsg-2 ii python-keyring 4.0-1 ii rpm2cpio 4.11.3-1 ii sensible-utils 0.0.9 Versions of packages osc suggests: ii gnome-keyring 3.14.0-1 ii python-gnomekeyring 2.32.0+dfsg-3 -- no debconf information
--- a/osc/conf.py +++ b/osc/conf.py @@ -450,7 +450,7 @@ # workaround for http://bugs.python.org/issue9639 authhandler_class = HTTPBasicAuthHandler - if sys.version_info >= (2, 6, 6) and sys.version_info < (2, 7, 1) \ + if sys.version_info >= (2, 6, 6) and sys.version_info < (2, 7, 99) \ and not 'reset_retry_count' in dir(HTTPBasicAuthHandler): print('warning: your urllib2 version seems to be broken. ' \ 'Using a workaround for http://bugs.python.org/issue9639', file=sys.stderr)