Skip to content

Commit

Permalink
make-debs.sh: remove lsb_release
Browse files Browse the repository at this point in the history
The lsb_release utility brings in a lot of other dependencies. Remove
it from the make-debs script.

Signed-off-by: Ken Dreyer <[email protected]>
  • Loading branch information
ktdreyer committed Aug 18, 2021
1 parent 24af043 commit 92f73a2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions make-debs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#
set -xe

. /etc/os-release
base=${1:-/tmp/release}
codename=$(lsb_release -sc)
releasedir=$base/$(lsb_release -si)/WORKDIR
releasedir=$base/$NAME/WORKDIR
rm -fr $(dirname $releasedir)
mkdir -p $releasedir
#
Expand Down Expand Up @@ -60,7 +60,7 @@ dvers="$vers-1"
cd ceph-$vers
chvers=$(head -1 debian/changelog | perl -ne 's/.*\(//; s/\).*//; print')
if [ "$chvers" != "$dvers" ]; then
DEBEMAIL="[email protected]" dch -D $codename --force-distribution -b -v "$dvers" "new version"
DEBEMAIL="[email protected]" dch -D $VERSION_CODENAME --force-distribution -b -v "$dvers" "new version"
fi
#
# create the packages
Expand All @@ -74,18 +74,18 @@ if test $NPROC -gt 1 ; then
fi
PATH=/usr/lib/ccache:$PATH dpkg-buildpackage $j -uc -us
cd ../..
mkdir -p $codename/conf
cat > $codename/conf/distributions <<EOF
Codename: $codename
mkdir -p $VERSION_CODENAME/conf
cat > $VERSION_CODENAME/conf/distributions <<EOF
Codename: $VERSION_CODENAME
Suite: stable
Components: main
Architectures: $(dpkg --print-architecture) source
EOF
if [ ! -e conf ]; then
ln -s $codename/conf conf
ln -s $VERSION_CODENAME/conf conf
fi
reprepro --basedir $(pwd) include $codename WORKDIR/*.changes
reprepro --basedir $(pwd) include $VERSION_CODENAME WORKDIR/*.changes
#
# teuthology needs the version in the version file
#
echo $dvers > $codename/version
echo $dvers > $VERSION_CODENAME/version

0 comments on commit 92f73a2

Please sign in to comment.