1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1695 Ubuntu PPA: check for fakeroot

This commit is contained in:
James Duley 2015-01-31 15:38:12 +13:00
parent 6bfe1e66a7
commit 5f1f156d10
2 changed files with 4 additions and 5 deletions

View File

@ -81,9 +81,11 @@ $(foreach var, $(SANITIZE_DEPRECATED_VARS), $(eval $(call SANITIZE_VAR,$(var),de
# Make sure this isn't being run as root unless installing (no whoami on Windows, but that is ok here) # Make sure this isn't being run as root unless installing (no whoami on Windows, but that is ok here)
ifeq ($(shell whoami 2>/dev/null),root) ifeq ($(shell whoami 2>/dev/null),root)
ifeq ($(filter install all_clean,$(MAKECMDGOALS)),) ifeq ($(filter install,$(MAKECMDGOALS)),)
ifndef FAKEROOTKEY
$(error You should not be running this as root) $(error You should not be running this as root)
endif endif
endif
endif endif
# Decide on a verbosity level based on the V= parameter # Decide on a verbosity level based on the V= parameter

View File

@ -18,8 +18,5 @@ override_dh_auto_clean:
override_dh_auto_build: override_dh_auto_build:
#dh_auto_build -- all #dh_auto_build -- all
override_dh_auto_test:
# Fails non-silently because it is run under fakeroot.
override_dh_auto_install: override_dh_auto_install:
dh_auto_install -- prefix=/usr dh_auto_install -- prefix=/usr