From 8203cd8008ffe7f73b4d46658691809d21eb04ee Mon Sep 17 00:00:00 2001 From: mhagger Date: Tue, 24 May 2011 08:39:47 +0000 Subject: [PATCH] rcsparse update: Overwrite cvs2svn_rcsparse.__init__.py with our own version. The original tries to import tparse, which we do not want. git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5355 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn_rcsparse/update | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cvs2svn_rcsparse/update b/cvs2svn_rcsparse/update index 8207e160..2f8cb7ac 100755 --- a/cvs2svn_rcsparse/update +++ b/cvs2svn_rcsparse/update @@ -15,6 +15,13 @@ LICENSE_URL = '/'.join([VIEWVC_REPOS, BRANCH, 'LICENSE.html']) DEST = os.path.dirname(__file__) +INIT_TEXT = """\ +# This file causes Python to treat its containing directory it as a +# package. Please note that the contents of this file differ from +# those of the __init__.py file distributed with ViewVC. + +""" + def get_current_revision(): revision_re = re.compile(r'^Revision\:\s*(?P\d+)$') @@ -51,4 +58,7 @@ open(os.path.join(DEST, 'UPSTREAM_SOURCE'), 'w').write( '%s@%d\n' % (RCSPARSE_URL, revision,) ) +# Replace the upstream __init__.py file, which does some stuff that we +# don't want: +open(os.path.join(DEST, '__init__.py'), 'w').write(INIT_TEXT) -- 2.11.4.GIT