2011/3/8 Michal Marek <mmarek@suse.cz>:
On 8.3.2011 15:31, Cristian Morales Vega wrote:
The problem was tar was adding the files in a different order each time. Finally I had to convert
tar cvvzf skins2/default.vlt --exclude .svn -C $(srcdir)/skins2 default/
into
(cd $(srcdir)/skins2; find default -print0 | sort -z | tar cvv --exclude .svn --no-recursion --null -T -) | gzip -n > skins2/default.vlt
Works. But if someone knows of a simpler way...
You should exclude directories in the find command, otherwise their content will be packaged twice. Here is a more complete version that also handles timestamps of files being packaged (in case the files are generated): http://gitorious.org/opensuse/kernel-source/blobs/master/scripts/tar-up.sh, function stable_tar().
tar's "--no-recursion" should handle the directories problem. But that scripts is indeed better, thanks. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org