svn commit: r485646 - in branches/2018Q4/www/google-sitemapgen: . files

Tobias Kortkamp tobik at FreeBSD.org
Fri Nov 23 10:26:26 UTC 2018


Author: tobik
Date: Fri Nov 23 10:26:24 2018
New Revision: 485646
URL: https://svnweb.freebsd.org/changeset/ports/485646

Log:
  MFH: r485645
  
  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 at gmail.com>
  
  Approved by:	ports-secteam blanket

Added:
  branches/2018Q4/www/google-sitemapgen/files/patch-sitemap__gen.py
     - copied unchanged from r485645, head/www/google-sitemapgen/files/patch-sitemap__gen.py
Modified:
  branches/2018Q4/www/google-sitemapgen/Makefile
Directory Properties:
  branches/2018Q4/   (props changed)

Modified: branches/2018Q4/www/google-sitemapgen/Makefile
==============================================================================
--- branches/2018Q4/www/google-sitemapgen/Makefile	Fri Nov 23 10:16:14 2018	(r485645)
+++ branches/2018Q4/www/google-sitemapgen/Makefile	Fri Nov 23 10:26:24 2018	(r485646)
@@ -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}

Copied: branches/2018Q4/www/google-sitemapgen/files/patch-sitemap__gen.py (from r485645, head/www/google-sitemapgen/files/patch-sitemap__gen.py)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2018Q4/www/google-sitemapgen/files/patch-sitemap__gen.py	Fri Nov 23 10:26:24 2018	(r485646, copy of r485645, head/www/google-sitemapgen/files/patch-sitemap__gen.py)
@@ -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())


More information about the svn-ports-all mailing list