build fixes
This commit is contained in:
@@ -15,10 +15,16 @@ SCHROOTNAME="$1"
|
||||
sed 's,@[^@]*@, dummytext,g' debian/control.in > debian/control
|
||||
|
||||
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 software-properties-common
|
||||
schroot -c "${SCHROOTNAME}" -u root -d / -- apt-add-repository universe
|
||||
schroot -c "${SCHROOTNAME}" -u root -d / -- apt-add-repository multiverse
|
||||
schroot -c "${SCHROOTNAME}" -u root -d / -- apt-get update
|
||||
DEPS=$(schroot -c "${SCHROOTNAME}" -- dpkg-checkbuilddeps 2>&1 || true)
|
||||
else
|
||||
sudo apt-get install -y dpkg-dev
|
||||
sudo apt-get install -y dpkg-dev software-properties-common
|
||||
sudo apt-add-repository universe
|
||||
sudo apt-add-repository multiverse
|
||||
sudo apt-get update
|
||||
DEPS=$(dpkg-checkbuilddeps 2>&1 || true)
|
||||
fi
|
||||
DEPS=$(echo "$DEPS" | sed -n '/Unmet build dependencies/ { s,.*Unmet build dependencies: ,,g; s, ([^)]*),,g; s, *| *,|,g; p}')
|
||||
|
Reference in New Issue
Block a user