sudo or not sudo shall be the problem of the caller
This commit is contained in:
@@ -18,8 +18,8 @@ if test -n "${SCHROOTNAME}"; then
|
|||||||
schroot -c "${SCHROOTNAME}" -u root -d / -- apt-get install -y dpkg-dev
|
schroot -c "${SCHROOTNAME}" -u root -d / -- apt-get install -y dpkg-dev
|
||||||
DEPS=$(schroot -c "${SCHROOTNAME}" -- dpkg-checkbuilddeps 2>&1 || true)
|
DEPS=$(schroot -c "${SCHROOTNAME}" -- dpkg-checkbuilddeps 2>&1 || true)
|
||||||
else
|
else
|
||||||
sudo apt-get install -y dpkg-dev
|
apt-get install -y dpkg-dev
|
||||||
sudo apt-get update
|
apt-get update
|
||||||
DEPS=$(dpkg-checkbuilddeps 2>&1 || true)
|
DEPS=$(dpkg-checkbuilddeps 2>&1 || true)
|
||||||
fi
|
fi
|
||||||
DEPS=$(echo "$DEPS" | sed -n '/Unmet build dependencies/ { s,.*Unmet build dependencies: ,,g; s, ([^)]*),,g; s, *| *,|,g; p}')
|
DEPS=$(echo "$DEPS" | sed -n '/Unmet build dependencies/ { s,.*Unmet build dependencies: ,,g; s, ([^)]*),,g; s, *| *,|,g; p}')
|
||||||
@@ -33,7 +33,7 @@ for pa in ${DEPS}; do
|
|||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if sudo apt-get -y install ${p}; then
|
if apt-get -y install ${p}; then
|
||||||
success=1
|
success=1
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user