summaryrefslogtreecommitdiff
path: root/helpers/lh_source_debian-live
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2008-09-22 20:23:43 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:42 +0100
commit8d9860284d666bbacf13e28f8e3bc3c18cf0e42a (patch)
tree35c99d87cfa582012f3d5f06b9809d94ed175796 /helpers/lh_source_debian-live
parent242155f0b7822288a4dd8c18212086058c1a495f (diff)
downloadvyos-live-build-8d9860284d666bbacf13e28f8e3bc3c18cf0e42a.tar.gz
vyos-live-build-8d9860284d666bbacf13e28f8e3bc3c18cf0e42a.zip
Fix timing issue in create of source tarballs. Patch by Sebastian H <shbugreport@online.de>. (Closes: #499793)
Diffstat (limited to 'helpers/lh_source_debian-live')
-rwxr-xr-xhelpers/lh_source_debian-live10
1 files changed, 6 insertions, 4 deletions
diff --git a/helpers/lh_source_debian-live b/helpers/lh_source_debian-live
index cd252ced3..36638f6bd 100755
--- a/helpers/lh_source_debian-live
+++ b/helpers/lh_source_debian-live
@@ -60,18 +60,20 @@ cp -a config source/debian-live
# Create tarball
cd source
+SUFFIX="$(date +%Y%m%d.%s)"
+
if gzip --help | grep -qs '\-\-rsyncable'
then
- tar cf debian-live-config_$(date +%Y%m%d.%s).tar debian-live
- gzip --rsyncable --best debian-live-config_$(date +%Y%m%d.%s).tar
+ tar cf debian-live-config_${SUFFIX}.tar debian-live
+ gzip --rsyncable --best debian-live-config_${SUFFIX}.tar
else
- tar cfz debian-live-config_$(date +%Y%m%d.%s).tar.gz debian-live
+ tar cfz debian-live-config_${SUFFIX}.tar.gz debian-live
fi
cd "${OLDPWD}"
rm -rf source/debian-live/config
-mv source/debian-live-config_*.tar.gz source/debian-live
+mv source/debian-live-config_${SUFFIX}.tar.gz source/debian-live
# Creating stage file
Create_stagefile .stage/source_debian-live