Fix timing issue in create of source tarballs. Patch by Sebastian H <shbugreport@online.de>. (Closes: #499793)
This commit is contained in:
parent
242155f0b7
commit
8d9860284d
|
@ -60,18 +60,20 @@ cp -a config source/debian-live
|
||||||
# Create tarball
|
# Create tarball
|
||||||
cd source
|
cd source
|
||||||
|
|
||||||
|
SUFFIX="$(date +%Y%m%d.%s)"
|
||||||
|
|
||||||
if gzip --help | grep -qs '\-\-rsyncable'
|
if gzip --help | grep -qs '\-\-rsyncable'
|
||||||
then
|
then
|
||||||
tar cf debian-live-config_$(date +%Y%m%d.%s).tar debian-live
|
tar cf debian-live-config_${SUFFIX}.tar debian-live
|
||||||
gzip --rsyncable --best debian-live-config_$(date +%Y%m%d.%s).tar
|
gzip --rsyncable --best debian-live-config_${SUFFIX}.tar
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
cd "${OLDPWD}"
|
cd "${OLDPWD}"
|
||||||
|
|
||||||
rm -rf source/debian-live/config
|
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
|
# Creating stage file
|
||||||
Create_stagefile .stage/source_debian-live
|
Create_stagefile .stage/source_debian-live
|
||||||
|
|
Loading…
Reference in New Issue