[Bug 233427] www/google-sitemapgen: local variable referenced before assignment
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Nov 23 06:47:45 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233427
Bug ID: 233427
Summary: www/google-sitemapgen: local variable referenced
before assignment
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: vladislav.movchan at gmail.com
Attachment #199471 text/plain
mime type:
Created attachment 199471
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=199471&action=edit
Patch
When www/google-sitemapgen asked to build sitemap_index.xml it throws the
following error:
Writing index file "sitemap_index.xml" with 13 Sitemaps
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sitemap_gen.py", line 2092, in
<module>
sitemap.Generate()
File "/usr/local/lib/python2.7/site-packages/sitemap_gen.py", line 1665, in
Generate
self.WriteIndex()
File "/usr/local/lib/python2.7/site-packages/sitemap_gen.py", line 1810, in
WriteIndex
fd.write(sitemap_index_header)
UnboundLocalError: local variable 'sitemap_index_header' referenced before
assignment
This caused by the typo (sitemap_index_header -> sitemap__index_header) in the
source code of the upstream project. But due to upstream project is not
maintained there is no way to submit this fix to upstream.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list