Skip to content
Snippets Groups Projects
Commit 86a763f2 authored by Pavel Vondruška's avatar Pavel Vondruška
Browse files

Fixed deb9 version

parent 68083554
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,8 @@ pip install python-swiftclient requests-kerberos
curl https://github.com/openstack/python-swiftclient/commit/3e248bc679fa5ec6825d534c1afc9b2966e238f5.patch | patch -f -p1 -d /opt/swiftclient/lib/python2.7/site-packages/
VER=`pip list --format=legacy | grep -Po "python-swiftclient \(\K[\d\.]+"`
PIPVER=`pip list --format=legacy | grep -Po "python-swiftclient \(\K[\d\.]+"`
VER="${PIPVER}-1+deb9+dex1"
SIZE=`du -ks /opt/swiftclient | cut -f1`
WORKDIR=python-swiftclient-kerberos
......@@ -18,7 +19,7 @@ mv /opt $WORKDIR
cat > $WORKDIR/DEBIAN/control <<EOF
Package: python-swiftclient-kerberos
Version: ${VER}-1+deb9+dex1
Version: ${VER}
Architecture: all
Maintainer: Pavel Vondruska <vondruska@cesnet.cz>
Installed-Size: $SIZE
......@@ -70,7 +71,7 @@ EOSWIFT
chmod +x $WORKDIR/usr/bin/swift
dpkg-deb -b $WORKDIR python-swiftclient-kerberos_${VER}-1+dex1.deb
dpkg-deb -b $WORKDIR python-swiftclient-kerberos_${VER}.deb
mkdir build
mv *.deb build/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment