Skip to content

Commit 91b0b83

Browse files
author
Matthias Koeppe
committed
build/bin/sage-spkg: Adjust to spkg-requirements.txt being installed directly
1 parent f8b93c7 commit 91b0b83

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

build/bin/sage-spkg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -704,9 +704,7 @@ unset SAGE_DESTDIR_LOCAL
704704
# removed by sage-spkg-uninstall
705705
INSTALLED_SCRIPTS_DEST="$SAGE_SPKG_SCRIPTS/$PKG_BASE"
706706

707-
if [ -f spkg-requirements.txt ]; then
708-
INSTALLED_SCRIPTS="$INSTALLED_SCRIPTS piprm-requirements.txt"
709-
else
707+
if [ ! -f $INSTALLED_SCRIPTS_DEST/spkg-requirements.txt ]; then
710708
# No packages to uninstall with pip, so remove the prepared uninstall script
711709
rm -f spkg-piprm spkg-piprm.in
712710
fi

0 commit comments

Comments
 (0)