[cpl-plugin-fors] 03/08: Remove calibration data, but store the size before, and patch the calib control file with the size
Ole Streicher
olebole-guest at moszumanska.debian.org
Tue Dec 3 21:17:48 UTC 2013
This is an automated email from the git hooks/post-receive script.
olebole-guest pushed a commit to branch debian
in repository cpl-plugin-fors.
commit d2ddf634d6e81e93abd64f6415d0edd8b9424836
Author: Ole Streicher <debian at liska.ath.cx>
Date: Tue Dec 3 14:00:38 2013 +0100
Remove calibration data, but store the size before, and patch the calib control file with the size
---
debian/control | 2 +-
debian/repackage.sh | 19 ++++++++++---------
debian/rules | 6 ++++++
3 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/debian/control b/debian/control
index 15d2392..ed63e22 100644
--- a/debian/control
+++ b/debian/control
@@ -33,7 +33,7 @@ Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, cpl-plugin-template, wget
Section: contrib/science
-Description: ESO data reduction pipeline calibration data downloaded template
+Description: ESO data reduction pipeline calibration data downloader template
This package downloads calibration and other static data of the
data reduction pipeline for the Template instrument of the
Very Large Telescope (VLT) from the European Southern Observatory (ESO).
diff --git a/debian/repackage.sh b/debian/repackage.sh
index 022c3ce..089636a 100755
--- a/debian/repackage.sh
+++ b/debian/repackage.sh
@@ -43,16 +43,17 @@ tar czf ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}+dfsg.orig.tar.gz \
-C ${BASEDIR} ${PIPELINE}-${VERSION}/
rm -rf ${BASEDIR}/${PIPELINE}-${VERSION}/
-if [ $INCLUDE_CALIB = "yes" ] ; then
- mv ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-calib-${VERSION}.tar.gz \
- ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}+dfsg.orig-calib.tar.gz
-else
- tar xf ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-calib-${VERSION}.tar.gz\
- -C ${BASEDIR} --exclude ${PIPELINE}-calib-${VERSION}/cal
- tar czf ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}+dfsg.orig-calib.tar.gz \
- -C ${BASEDIR} ${PIPELINE}-calib-${VERSION}/
- rm -rf ${BASEDIR}/${PIPELINE}-calib-${VERSION}/
+tar xf ${BASEDIR}/${PIPELINE}-kit-${VERSION}/${PIPELINE}-calib-${VERSION}.tar.gz\
+ -C ${BASEDIR}
+if [ $INCLUDE_CALIB = "no" ] ; then
+ du -s ${BASEDIR}/${PIPELINE}-calib-${VERSION}/cal | cut -f1 \
+ > ${BASEDIR}/${PIPELINE}-calib-${VERSION}/cal_size
+ rm -rf ${BASEDIR}/${PIPELINE}-calib-${VERSION}/cal
fi
+tar czf ${BASEDIR}/${DEBIAN_PACKAGE}_${VERSION}+dfsg.orig-calib.tar.gz \
+ -C ${BASEDIR} ${PIPELINE}-calib-${VERSION}/
+rm -rf ${BASEDIR}/${PIPELINE}-calib-${VERSION}/
+
rm -rf ${BASEDIR}/${PIPELINE}-kit-${VERSION}/
exec uupdate --no-symlink "$@"
diff --git a/debian/rules b/debian/rules
index e7c1a75..e2d6181 100755
--- a/debian/rules
+++ b/debian/rules
@@ -65,3 +65,9 @@ override_dh_installchangelogs:
else \
dh_installchangelogs ; \
fi
+
+override_dh_gencontrol-indep:
+ dh_gencontrol
+ if [ ! -d calib/cal ] ; then \
+ sed "s/Installed-Size:.*/Installed-Size: $(shell cat calib/cal_size)/" -i debian/${DEBPKGNAME}-calib/DEBIAN/control ; \
+ fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cpl-plugin-fors.git
More information about the debian-science-commits
mailing list