Julien Lavergne a scris: > forwarded 520997 http://thomas.apestaart.org/moap/trac/ticket/403 > thanks > > Thanks for your bug report. > I forwarded it upstream (see > http://thomas.apestaart.org/moap/trac/ticket/403 ) > Could you please attach also the ChangeLog file ?
I am letting you attach the Changelog to the upstream bug. I've just tested with the Changelog in the HEAD of the master branch of osm-helpers which can be grabbed from: wget 'http://repo.or.cz/w/osm-helpers.git?a=blob_plain;f=ChangeLog;h=b9ed4e67ee24dc5866d466c7ce14f9500caebed5;hb=HEAD' -O ChangeLog For your convenience I have attached it, too. The bug is still easily reproducible with this sequence: 0 e...@heidi /tmp/buggy $ git clone git://repo.or.cz/osm-helpers.git Initialized empty Git repository in /tmp/buggy/osm-helpers/.git/ remote: Counting objects: 363, done. remote: Compressing objects: 100% (139/139), done. remote: Total 363 (delta 217), reused 363 (delta 217) Receiving objects: 100% (363/363), 166.47 KiB | 240 KiB/s, done. Resolving deltas: 100% (217/217), done. 0 e...@heidi /tmp/buggy $ cd osm-helpers/ /tmp/buggy/osm-helpers 0 e...@heidi /tmp/buggy/osm-helpers $ echo >> DataBase.cs 0 e...@heidi /tmp/buggy/osm-helpers $ moap changelog diff Traceback (most recent call last): File "/usr/bin/moap", line 28, in <module> sys.exit(main(sys.argv[1:])) File "/usr/lib/python2.5/site-packages/moap/main.py", line 13, in main ret = c.parse(argv) File "/usr/lib/python2.5/site-packages/moap/extern/command/command.py", line 265, in parse return self.subCommands[command].parse(args[1:]) File "/usr/lib/python2.5/site-packages/moap/extern/command/command.py", line 265, in parse return self.subCommands[command].parse(args[1:]) File "/usr/lib/python2.5/site-packages/moap/extern/command/command.py", line 247, in parse ret = self.do(args) File "/usr/lib/python2.5/site-packages/moap/command/cl.py", line 416, in do cl.parse(False) File "/usr/lib/python2.5/site-packages/moap/command/cl.py", line 223, in parse parseBlock(b) File "/usr/lib/python2.5/site-packages/moap/command/cl.py", line 213, in parseBlock entry.lines = block UnboundLocalError: local variable 'entry' referenced before assignment > Thanks. > > Regards, > Julien Lavergne > > Le mardi 24 mars 2009 à 11:13 +0200, Eddy Petrișor a écrit : >> Package: moap >> Version: 0.2.6-2 >> Severity: serious >> Justification: unusable >> >> --- Please enter the report below this line. --- >> >> 0 e...@heidi ~/usr/src/osm/osm-helpers $ dpkg -l moap | grep moap >> ii moap 0.2.6-2 Swiss army knife for project >> maintainers and developers >> 0 e...@heidi ~/usr/src/osm/osm-helpers $ moap changelog diff >> Traceback (most recent call last): >> File "/usr/bin/moap", line 28, in <module> >> sys.exit(main(sys.argv[1:])) >> File "/usr/lib/python2.5/site-packages/moap/main.py", line 13, in main >> ret = c.parse(argv) >> File "/usr/lib/python2.5/site-packages/moap/extern/command/command.py", >> line 265, in parse >> return self.subCommands[command].parse(args[1:]) >> File "/usr/lib/python2.5/site-packages/moap/extern/command/command.py", >> line 265, in parse >> return self.subCommands[command].parse(args[1:]) >> File "/usr/lib/python2.5/site-packages/moap/extern/command/command.py", >> line 247, in parse >> ret = self.do(args) >> File "/usr/lib/python2.5/site-packages/moap/command/cl.py", line 416, in do >> cl.parse(False) >> File "/usr/lib/python2.5/site-packages/moap/command/cl.py", line 223, in >> parse >> parseBlock(b) >> File "/usr/lib/python2.5/site-packages/moap/command/cl.py", line 213, in >> parseBlock >> entry.lines = block >> UnboundLocalError: local variable 'entry' referenced before assignment >> 1 e...@heidi ~/usr/src/osm/osm-helpers $ git st >> # On branch master >> # Changes to be committed: >> # (use "git reset HEAD <file>..." to unstage) >> # >> # modified: osm-upload-changes.cs >> # >> 0 e...@heidi ~/usr/src/osm/osm-helpers $ git di --cached >> diff --git a/osm-upload-changes.cs b/osm-upload-changes.cs >> index f878af1..83d8285 100644 >> --- a/osm-upload-changes.cs >> +++ b/osm-upload-changes.cs >> @@ -269,7 +269,7 @@ The current check resulted in these changes: >> else >> throw new Exception >> ("Invalid attribute: " + reader.Name); >> } >> - if (last_obj != null && last_obj.ID == id && >> last_obj.ObjectType == name) { >> + if (last_obj != null && last_obj.ID == id) { >> obj = last_obj; >> } else { >> // we didn't upload yet: do it now >> >> >> --- System information. --- >> Architecture: amd64 >> Kernel: Linux 2.6.29-rc7-heidi >> >> Debian Release: 5.0 >> 500 stable snapshot.debian.net >> 500 stable security.debian.org >> 500 stable ftp.ro.debian.org >> 10 unstable ftp.ro.debian.org >> 1 experimental ftp.ro.debian.org >> >> --- Package information. --- >> Depends (Version) | Installed >> =============================-+-=========== >> python (>= 2.4) | 2.5.2-3 >> python-central (>= 0.6.7) | 0.6.8 >> python-librdf | 1.0.7.1-1+b1 >> >> >> > > -- Regards, EddyP ============================================= "Imagination is more important than knowledge" A.Einstein
Tue Mar 17 01:09:23 2009 +2000 Eddy PetriÈor <eddy.petri...@gmail.com> * Clearly separate the policy from the changes themselves Mon Feb 25 19:04:18 2009 +0200 Eddy PetriÈor <eddy.petri...@gmail.com> * add --help to osm-upload-changes, too Mon Feb 23 21:58:32 2009 +0200 Eddy PetriÈor <eddy.petri...@gmail.com> * minimal changes to kill all warnings Mon Feb 23 21:58:32 2009 +0200 Eddy PetriÈor <eddy.petri...@gmail.com> * add --help to osm-history, too Mon Feb 23 19:06:50 2009 +0200 Eddy PetriÈor <eddy.petri...@gmail.com> * add --help as a possible option to osm-check Wed Feb 11 00:09:37 2009 +0200 Eddy PetriÈor <eddy.petri...@gmail.com> * 'make clean' deletes OpenStreetMap.dll, too Tue Feb 10 12:35:39 2009 +0200 Eddy PetriÈor <eddy.petri...@gmail.com> * When the credentials can't be read, tell the user Tue Feb 10 12:08:23 2009 +0200 Eddy PetriÈor <eddy.petri...@gmail.com> * add the possibility to specify what was the target of a batch change in the notification message (--policy=POL) Tue Feb 10 01:08:02 2009 +0200 Eddy PetriÈor <eddy.petri...@gmail.com> * don't generate invalid XML files Tue Feb 10 01:07:36 2009 +0200 Eddy PetriÈor <eddy.petri...@gmail.com> * add some explanations about needed deps on Debian Mon Dec 15 13:27:58 2008 +0200 Eddy PetriÈor <eddy.petri...@gmail.com> * use XDG_CONFIG_HOME directory for the location of the config files See http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html Mon Dec 15 05:51:36 2008 +0200 Eddy PetriÈor <eddy.petri...@gmail.com> * make sure PREFIX/bin is created before copying stuff into it Sun Sep 21 15:22:53 CEST 2008 Paolo Molaro <lu...@ximian.com> * Added web message notification. * Versione 0.3. Mon Sep 7 19:33:18 CEST 2008 Paolo Molaro <lu...@oddwiz.org> * Added osm-history. * Version 0.2. Sat Sep 6 16:53:56 CEST 2008 Paolo Molaro <lu...@oddwiz.org> * Initial release.
signature.asc
Description: OpenPGP digital signature