[Reportbug-maint] Bug#857013: reportbug: Attaching patch
On 19 April 2017 at 03:07, Sandro Tosiwrote: > On Thu, Apr 13, 2017 at 4:52 AM, Michal Suchanek wrote: >> --- /usr/lib/python3/dist-packages/reportbug/utils.py 2017-04-13 >> 10:49:24.126454516 +0200 >> +++ /usr/lib/python3/dist-packages/reportbug/utils.py~ 2017-04-13 >> 10:49:17.663966502 +0200 .. > is this in reverse order? Yes, you can see that the file marked with +++ is a backup file and has the current code. Thanks Michal ___ Reportbug-maint mailing list Reportbug-maint@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint
[Reportbug-maint] Bug#857013: reportbug: Attaching patch
On Thu, Apr 13, 2017 at 4:52 AM, Michal Suchanekwrote: > --- /usr/lib/python3/dist-packages/reportbug/utils.py 2017-04-13 > 10:49:24.126454516 +0200 > +++ /usr/lib/python3/dist-packages/reportbug/utils.py~ 2017-04-13 > 10:49:17.663966502 +0200 > @@ -369,9 +369,7 @@ > confmode = False > else: > # re is used to identify also conffiles with spaces in the > name > -tmp = re.findall(r' (.+) ([0-9a-f]+).* > , line) > -if len(tmp) > 0: > -conffiles = conffiles + [tmp[0]] > +conffiles = conffiles + [re.findall(r' (.+) ([0-9a-f]+).*, > line)[0]] > > if versionre.match(line): > (crud, pkgversion) = line.split(": ", 1) is this in reverse order? -- Sandro "morph" Tosi My website: http://sandrotosi.me/ Me at Debian: http://wiki.debian.org/SandroTosi G+: https://plus.google.com/u/0/+SandroTosi ___ Reportbug-maint mailing list Reportbug-maint@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint
[Reportbug-maint] Bug#857013: reportbug: Attaching patch
Package: reportbug Version: 7.1.5 Followup-For: Bug #857013 Fix: --- /usr/lib/python3/dist-packages/reportbug/utils.py 2017-04-13 10:49:24.126454516 +0200 +++ /usr/lib/python3/dist-packages/reportbug/utils.py~ 2017-04-13 10:49:17.663966502 +0200 @@ -369,9 +369,7 @@ confmode = False else: # re is used to identify also conffiles with spaces in the name -tmp = re.findall(r' (.+) ([0-9a-f]+).*$', line) -if len(tmp) > 0: -conffiles = conffiles + [tmp[0]] +conffiles = conffiles + [re.findall(r' (.+) ([0-9a-f]+).*$', line)[0]] if versionre.match(line): (crud, pkgversion) = line.split(": ", 1) Versions of packages reportbug depends on: ii apt1.4 ii python3-reportbug 7.1.5 pn python3:any --- /usr/lib/python3/dist-packages/reportbug/utils.py 2017-04-13 10:49:24.126454516 +0200 +++ /usr/lib/python3/dist-packages/reportbug/utils.py~ 2017-04-13 10:49:17.663966502 +0200 @@ -369,9 +369,7 @@ confmode = False else: # re is used to identify also conffiles with spaces in the name -tmp = re.findall(r' (.+) ([0-9a-f]+).*$', line) -if len(tmp) > 0: -conffiles = conffiles + [tmp[0]] +conffiles = conffiles + [re.findall(r' (.+) ([0-9a-f]+).*$', line)[0]] if versionre.match(line): (crud, pkgversion) = line.split(": ", 1) ___ Reportbug-maint mailing list Reportbug-maint@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reportbug-maint