[sagemath] 02/02: Don't try to rmdir debian/build if it's a mountpoint

Ximin Luo infinity0 at debian.org
Sat Dec 3 01:25:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository sagemath.

commit f237337524fc60432a193cae0b61d39f08881ff3
Author: Ximin Luo <infinity0 at debian.org>
Date:   Sat Dec 3 02:25:15 2016 +0100

    Don't try to rmdir debian/build if it's a mountpoint
    
    Useful for doing builds in /run/shm
---
 debian/rules | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 3509681..0f1aea7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -68,7 +68,8 @@ override_dh_auto_install:
 	find debian/build '(' -name '*.pyc' -o -name '*.pyo' ')' -delete
 	mkdir -p debian/tmp
 	mv debian/build/* debian/tmp
-	rmdir debian/build
+# Don't try to rmdir debian/build if it's a mountpoint, useful for doing builds in /run/shm
+	mountpoint debian/build || rmdir debian/build
 
 # If we see "nodoc", don't clean the docs. This allows us to rebuild just the
 # non-docs without wiping away the docs we previously built, to save time.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list