Mercurial > gub
changeset 3495:4286964469fc
with_template() for gubb.py
author | Han-Wen Nienhuys <hanwen@lilypond.org> |
---|---|
date | Fri, 18 May 2007 10:33:42 -0300 |
parents | 3efef1a76441 |
children | 5b3bd5e06c63 |
files | gub/gubb.py |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/gubb.py Fri May 18 10:33:26 2007 -0300 +++ b/gub/gubb.py Fri May 18 10:33:42 2007 -0300 @@ -642,13 +642,6 @@ from gub import repository return repository.NewTarBall (self.settings.downloads, mirror, name, version, format, strip_components) - def with (self, - mirror='', - version='', - strip_components=1, - format='', - name=''): - self.with_template (mirror, version, strip_components, format, name) # TODO: junk this, use TarBall ()or Version () def with_template (self, @@ -871,7 +864,7 @@ # test: # bin/gub -p linux-64 ftp://ftp.gnu.org/pub/gnu/bison/bison-2.3.tar.gz if init_vars['version']: - package.with (format=init_vars['format'], + package.with_template (format=init_vars['format'], mirror=init_vars['url'], version=init_vars['version']) return package