diff --git a/lang/python/python-userpath/Makefile b/lang/python/python-userpath/Makefile index d703e717f0..6502d3a5d7 100644 --- a/lang/python/python-userpath/Makefile +++ b/lang/python/python-userpath/Makefile @@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-userpath -PKG_VERSION:=1.9.1 +PKG_VERSION:=1.9.2 PKG_RELEASE:=1 PYPI_NAME:=userpath -PKG_HASH:=ce8176728d98c914b6401781bf3b23fccd968d1647539c8788c7010375e02796 +PKG_HASH:=6c52288dab069257cc831846d15d48133522455d4677ee69a9781f11dbefd815 PKG_LICENSE:=MIT PKG_LICENSE_FILES:=LICENSE.txt diff --git a/lang/python/python-userpath/test.sh b/lang/python/python-userpath/test.sh index e87d325ba4..a751b7f20e 100644 --- a/lang/python/python-userpath/test.sh +++ b/lang/python/python-userpath/test.sh @@ -2,4 +2,13 @@ [ "$1" = python3-userpath ] || exit 0 +# Test version userpath --version | grep -Fx "userpath, version $PKG_VERSION" + +# Test append and prepend (changes take effect after shell restart, +# so only check that the commands succeed) +TEST_DIR="/tmp/userpath-test-$$" +userpath append "$TEST_DIR" + +TEST_DIR2="/tmp/userpath-test2-$$" +userpath prepend "$TEST_DIR2"