diff options
author | Christian Heimes <christian@cheimes.de> | 2008-03-24 19:57:42 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-03-24 19:57:42 (GMT) |
commit | 6a453c3750889da2117616f5c90e99538a14a92a (patch) | |
tree | da35008b613c0c95bea8c265d23555dd916e30a4 /Python | |
parent | b74d084da8e52aeb0324649d28241f6ca5b64e67 (diff) | |
download | cpython-6a453c3750889da2117616f5c90e99538a14a92a.zip cpython-6a453c3750889da2117616f5c90e99538a14a92a.tar.gz cpython-6a453c3750889da2117616f5c90e99538a14a92a.tar.bz2 |
Added quick hack for bzr
Diffstat (limited to 'Python')
-rw-r--r-- | Python/sysmodule.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 385969f..94f1525 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1063,8 +1063,15 @@ svnversion_init(void) return; python = strstr(headurl, "/python/"); - if (!python) + if (!python) { + /* XXX quick hack to get bzr working */ + *patchlevel_revision = '\0'; + strcpy(branch, ""); + strcpy(shortbranch, "unknown"); + svn_revision = ""; + return Py_FatalError("subversion keywords missing"); + } br_start = python + 8; br_end = strchr(br_start, '/'); |