Formatting changes for flake8.

This commit is contained in:
Kelly (KT) Thompson 2016-08-01 22:54:51 -06:00
parent 17f0eb5148
commit 9433e84776
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,8 @@ class Atk(Package):
def url_for_version(self, version):
"""Handle atk's version-based custom URLs."""
return 'http://ftp.gnome.org/pub/gnome/sources/atk/%s/atk-%s.tar.xz' % (version.up_to(2), version)
url = 'http://ftp.gnome.org/pub/gnome/sources/atk'
return 'url+/%s/atk-%s.tar.xz' % (version.up_to(2), version)
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)

View File

@ -49,7 +49,8 @@ class Glib(Package):
def url_for_version(self, version):
"""Handle glib's version-based custom URLs."""
return 'http://ftp.gnome.org/pub/gnome/sources/glib/%s/glib-%s.tar.xz' % (version.up_to(2), version)
url = 'http://ftp.gnome.org/pub/gnome/sources/glib'
return url+'/%s/glib-%s.tar.xz' % (version.up_to(2), version)
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)