Skip to content

Commit b6e3de5

Browse files
committed
backport zesty autofs on xenial
1 parent 8c7489d commit b6e3de5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

ci/cvmfs-autofs/deb.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SCRIPT_LOCATION=$(cd "$(dirname "$0")"; pwd)
1111

1212
usage() {
1313
echo "Build the Debian stretch autofs version for older deb based distros"
14-
echo "Usage: $0 <work dir>"
14+
echo "Usage: $0 <work dir> <result dir>"
1515
exit 1
1616
}
1717

@@ -37,7 +37,15 @@ echo "done"
3737

3838
echo -n "getting autofs source package"
3939
cd ${workdir}/src
40-
apt-get source autofs/stretch
40+
codename=$(lsb_release -sc)
41+
if [ "x$codename" = "xjessie" ]; then
42+
apt-get source autofs/stretch
43+
elif [ "x$codename" = "xxenial" ]; then
44+
apt-get source autofs/zesty
45+
else
46+
echo "Distribution $codename not supported!"
47+
exit 1
48+
fi
4149
srcdir=$(find . -mindepth 1 -maxdepth 1 -type d)
4250
cd $srcdir
4351
dpkg-checkbuilddeps

0 commit comments

Comments
 (0)