File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 341
341
PKG_BASE_VER=` echo $PKG_VER | sed ' s/\.p[0-9][0-9]*$//' `
342
342
if [ -f " $PKG_SCRIPTS /checksums.ini" ]; then
343
343
# Normal/wheel package
344
- PKG_NAME_UPSTREAM=` lookup_param tarball " $PKG_SCRIPTS /checksums.ini" | sed " s/VERSION/ $PKG_BASE_VER / " `
344
+ PKG_NAME_UPSTREAM=` lookup_param tarball " $PKG_SCRIPTS /checksums.ini" `
345
345
fi
346
346
347
347
# Set the $SAGE_DESTDIR variable to be passed to the spkg-install
@@ -396,11 +396,11 @@ ensure_pkg_src() { ###############################################
396
396
if [ ! -f " $PKG_SRC " ]; then
397
397
if [ -n " $PKG_NAME_UPSTREAM " ]; then
398
398
# Normal or wheel package
399
- if ! sage-download-file $SAGE_DOWNLOAD_FILE_OPTIONS " $PKG_NAME_UPSTREAM " ; then
400
- error_msg " Error downloading $PKG_NAME_UPSTREAM "
399
+ PKG_SRC=$( sage-package download $SAGE_DOWNLOAD_FILE_OPTIONS $PKG_BASE )
400
+ if [ $? != 0 ]; then
401
+ error_msg " Error downloading tarball of $PKG_BASE "
401
402
exit 1
402
403
fi
403
- PKG_SRC=" $SAGE_DISTFILES /$PKG_NAME_UPSTREAM "
404
404
# Do a final check that PKG_SRC is a file with an absolute path
405
405
cd /
406
406
if [ ! -f " $PKG_SRC " ]; then
You can’t perform that action at this time.
0 commit comments