--- python-bzutils-0.2.orig/src/bzutils/cgi.py +++ python-bzutils-0.2/src/bzutils/cgi.py @@ -78,13 +78,15 @@ for product in products.findAll("option"): self.products.append((product.string, [], [])) + """The following string sanitizations should probably be offloaded to + another function""" matches = re.findall("cpts\[%d\].=.\[(.*)\];" % i, buffer) for component in matches[0].split(','): - self.products[i][1].append(component.strip("' ")) + self.products[i][1].append(component.strip("' ").replace("\\", "")) matches = re.findall("vers\[%d\].=.\[(.*)\];" % i, buffer) for version in matches[0].split(','): - self.products[i][2].append(version.strip("' ")) + self.products[i][2].append(version.strip("' ").replace("\\", "")) i = i + 1 @@ -119,9 +121,9 @@ type = handle.info()["Content-Type"] - if type.find("text/plain") != -1: + if "text/plain" in type or "text/csv" in type: return self.parse_csv(handle) - elif type.find("text/html") != -1: + elif "text/html" in type: return self.parse_html(handle) else: raise BugListParseError, "Couldn't parse bug list: unknown format" --- python-bzutils-0.2.orig/debian/examples +++ python-bzutils-0.2/debian/examples @@ -0,0 +1,3 @@ +src/bzutils-query +src/bzutils-bchart +src/bzutils-boogle --- python-bzutils-0.2.orig/debian/control +++ python-bzutils-0.2/debian/control @@ -0,0 +1,23 @@ +Source: python-bzutils +Section: python +XS-Python-Version: >= 2.4 +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Gustavo R. Montesino +Uploaders: Loic Minier +Build-Depends: debhelper (>= 5.0.38), + python +Build-Depends-Indep: python-support (>= 0.5.3) +Standards-Version: 3.7.2 + +Package: python-bzutils +Architecture: all +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, + ${python:Depends}, + python-beautifulsoup (>= 3.0) +Provides: ${python:Provides} +Description: Python module to interact with bugzilla servers + Bugzilla is a widely used Bug Tracking System. This module allows to + query and manipulate bug reports on bugzilla servers from Python + scripts. --- python-bzutils-0.2.orig/debian/compat +++ python-bzutils-0.2/debian/compat @@ -0,0 +1 @@ +5 --- python-bzutils-0.2.orig/debian/copyright +++ python-bzutils-0.2/debian/copyright @@ -0,0 +1,26 @@ +This is bzutils, written and maintained by Gustavo R. Montesino +on Sat, 16 Jun 2007 15:35:53 -0300. + +The original source can always be found at: + + +Copyright (C) 2007 Gustavo R. Montesino + +License: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in '/usr/share/common-licenses/GPL'. --- python-bzutils-0.2.orig/debian/changelog +++ python-bzutils-0.2/debian/changelog @@ -0,0 +1,26 @@ +python-bzutils (0.2-1ubuntu0.1) karmic-proposed; urgency=low + + * Fixed text/csv scraping in cgi.py (LP: #389289) + + -- Brad Misik Wed, 04 Nov 2009 20:57:26 -0800 + +python-bzutils (0.2-1) unstable; urgency=low + + [ Loic Minier ] + * Add myself to Uploaders. + + [ Gustavo R. Montesino ] + * New upstream release + + * debian/rules: + + Add -i to debhelper calls in binary-indep + + Remove references to configure and configure-stamp + + Comment cleanup + + -- Gustavo R. Montesino Sat, 18 Aug 2007 13:38:56 -0300 + +python-bzutils (0.1-1) unstable; urgency=low + + * Initial Release. (closes: #429276) + + -- Gustavo R. Montesino Sat, 16 Jun 2007 15:41:34 -0300 --- python-bzutils-0.2.orig/debian/docs +++ python-bzutils-0.2/debian/docs @@ -0,0 +1,3 @@ +README +NEWS +docs/using.txt --- python-bzutils-0.2.orig/debian/watch +++ python-bzutils-0.2/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://alioth.debian.org/frs/?group_id=31114 (?:.*/)?bzutils-(.*)\.tar\.gz --- python-bzutils-0.2.orig/debian/rules +++ python-bzutils-0.2/debian/rules @@ -0,0 +1,53 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PREFIX := $(CURDIR)/debian/python-bzutils/usr + +build: build-stamp + +build-stamp: + dh_testdir + python setup.py build + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + python setup.py clean -a + find -name *.pyc -exec rm \{\} \; + rm -f MANIFEST + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + python setup.py install --no-compile \ + --install-lib=$(PREFIX)/share/python-support/python-bzutils + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs -i ChangeLog + dh_installdocs -i + dh_installexamples -i + dh_pysupport -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary: binary-indep +.PHONY: build clean binary-indep binary-arch binary install --- python-bzutils-0.2.orig/debian/pycompat +++ python-bzutils-0.2/debian/pycompat @@ -0,0 +1 @@ +2