# HG changeset patch # User Han-Wen Nienhuys # Date 1179495222 10800 # Node ID 4286964469fcca0a7af5aae2862df7825f157249 # Parent 3efef1a76441a97b69b019edf5c5eeb8c1e95471 with_template() for gubb.py diff -r 3efef1a76441 -r 4286964469fc gub/gubb.py --- 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