Date: Fri, 23 Nov 2018 10:16:14 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r485645 - in head/www/google-sitemapgen: . files Message-ID: <201811231016.wANAGEdH031087@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Fri Nov 23 10:16:14 2018 New Revision: 485645 URL: https://svnweb.freebsd.org/changeset/ports/485645 Log: www/google-sitemapgen: Fix obvious typo It causes problems later: 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 PR: 233427 Submitted by: Vladislav Movchan <vladislav.movchan@gmail.com> Added: head/www/google-sitemapgen/files/patch-sitemap__gen.py (contents, props changed) Modified: head/www/google-sitemapgen/Makefile Modified: head/www/google-sitemapgen/Makefile ============================================================================== --- head/www/google-sitemapgen/Makefile Fri Nov 23 09:30:28 2018 (r485644) +++ head/www/google-sitemapgen/Makefile Fri Nov 23 10:16:14 2018 (r485645) @@ -3,7 +3,7 @@ PORTNAME= google-sitemapgen PORTVERSION= 1.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www devel MASTER_SITES= https://fossies.org/linux/www/old/ DISTNAME= sitemap_gen_${PORTVERSION} Added: head/www/google-sitemapgen/files/patch-sitemap__gen.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/google-sitemapgen/files/patch-sitemap__gen.py Fri Nov 23 10:16:14 2018 (r485645) @@ -0,0 +1,11 @@ +--- sitemap_gen.py.orig 2007-07-19 03:33:30 UTC ++++ sitemap_gen.py +@@ -1799,7 +1799,7 @@ class Sitemap(xml.sax.handler.ContentHandler): + if self._sitemap_type == 'news': + sitemap_index_header = NEWS_SITEMAP_HEADER + else: +- sitemap__index_header = GENERAL_SITEMAP_HEADER ++ sitemap_index_header = GENERAL_SITEMAP_HEADER + + # Make a lastmod time + lastmod = TimestampISO8601(time.time())
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811231016.wANAGEdH031087>