change option name for tarball generation from `tarball' to `allow_tar'.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@158 8cb11bc2-c004-0410-86c3-e597b4017df7remotes/tags/V0_7
parent
f34424ca20
commit
4cb1282b70
|
@ -1340,7 +1340,7 @@ def view_directory(request):
|
||||||
html_option(tag, view_tag)
|
html_option(tag, view_tag)
|
||||||
print '</select><input type=submit value="Go"></form>'
|
print '</select><input type=submit value="Go"></form>'
|
||||||
|
|
||||||
if cfg.options.tarball:
|
if cfg.options.allow_tar:
|
||||||
url = os.path.basename(where) + '.tar.gz?tarball=1'
|
url = os.path.basename(where) + '.tar.gz?tarball=1'
|
||||||
query = sticky_query(query_dict)
|
query = sticky_query(query_dict)
|
||||||
if query:
|
if query:
|
||||||
|
@ -2426,7 +2426,7 @@ def main():
|
||||||
elif full_name[-5:] == '.diff' and os.path.isfile(full_name[:-5] + ',v') \
|
elif full_name[-5:] == '.diff' and os.path.isfile(full_name[:-5] + ',v') \
|
||||||
and query_dict.has_key('r1') and query_dict.has_key('r2'):
|
and query_dict.has_key('r1') and query_dict.has_key('r2'):
|
||||||
view_diff(request, full_name[:-5])
|
view_diff(request, full_name[:-5])
|
||||||
elif cfg.options.tarball \
|
elif cfg.options.allow_tar \
|
||||||
and full_name[-7:] == '.tar.gz' and query_dict.has_key('tarball'):
|
and full_name[-7:] == '.tar.gz' and query_dict.has_key('tarball'):
|
||||||
download_tarball(request)
|
download_tarball(request)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -437,8 +437,8 @@ disable_enscript_lang =
|
||||||
#
|
#
|
||||||
# ViewCVS can generate tarball from a repository on the fly.
|
# ViewCVS can generate tarball from a repository on the fly.
|
||||||
#
|
#
|
||||||
tarball = 0
|
allow_tar = 0
|
||||||
# tarball = 1
|
# allow_tar = 1
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
[vhosts]
|
[vhosts]
|
||||||
|
|
|
@ -189,7 +189,7 @@ class Config:
|
||||||
self.options.use_enscript = 0
|
self.options.use_enscript = 0
|
||||||
self.options.enscript_path = ''
|
self.options.enscript_path = ''
|
||||||
self.options.disable_enscript_lang = ()
|
self.options.disable_enscript_lang = ()
|
||||||
self.options.tarball = 0
|
self.options.allow_tar = 0
|
||||||
|
|
||||||
self.text.long_intro = """\
|
self.text.long_intro = """\
|
||||||
<p>
|
<p>
|
||||||
|
|
Loading…
Reference in New Issue