From owner-svn-ports-all@freebsd.org Fri Nov 23 10:16:15 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 85F3711419B1; Fri, 23 Nov 2018 10:16:15 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2775E80738; Fri, 23 Nov 2018 10:16:15 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 090A41D24A; Fri, 23 Nov 2018 10:16:15 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wANAGEnq031089; Fri, 23 Nov 2018 10:16:14 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wANAGEdH031087; Fri, 23 Nov 2018 10:16:14 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201811231016.wANAGEdH031087@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Fri, 23 Nov 2018 10:16:14 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/www/google-sitemapgen: . files X-SVN-Commit-Revision: 485645 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 2775E80738 X-Spamd-Result: default: False [1.62 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_SPAM_LONG(0.40)[0.400,0]; NEURAL_SPAM_MEDIUM(0.72)[0.721,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_SPAM_SHORT(0.50)[0.501,0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2018 10:16:15 -0000 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 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 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())