Skip to content

Commit 9d682c7

Browse files
author
Matthias Koeppe
committed
sage --package update: Display upstream URL and warn if upstream_url pattern does not use the VERSION variable
1 parent 7ce44fb commit 9d682c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build/sage_bootstrap/updater.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,11 @@ def _update_version(self, new_version):
6969
def download_upstream(self, download_url=None):
7070
tarball = self.package.tarball
7171
if download_url is None:
72+
pattern = self.package.tarball_upstream_url_pattern
73+
if pattern and 'VERSION' not in pattern:
74+
print('Warning: upstream_url pattern does not use the VERSION variable')
7275
download_url = self.package.tarball_upstream_url
7376
if download_url is None:
7477
raise ValueError("package has no default upstream_url pattern, download_url needed")
75-
print('Downloading tarball to {0}'.format(tarball.upstream_fqn))
78+
print('Downloading tarball from {0} to {1}'.format(download_url, tarball.upstream_fqn))
7679
Download(download_url, tarball.upstream_fqn).run()

0 commit comments

Comments
 (0)