Mailinglist Archive: opensuse-buildservice (256 mails)
< Previous | Next > |
[opensuse-buildservice] Exclude param in tar_scm
- From: Carlos Gonçalves <cgoncalves@xxxxxxxxxxxx>
- Date: Thu, 11 Aug 2011 23:45:53 +0100
- Message-id: <ACF1CEB6-AE4F-4AE6-A584-D5974F7060B0@opensuse.org>
Hi,
Can anyone confirm if the 'exclude' parameter in tar_scm source service works
fine?
For what I can tell, it isn't working or I'm missing something.
Example of a generated tar command by tar_scm:
$ tar cf /tmp/tmpARm7Lt/debian-2.6.tar '--exclude='\''docs'\''' debian-2.6
The tarball debian-2.6.tar still includes the unwanted 'docs' file.
Applying this diff:
--- /usr/lib/obs/service/tar_scm.orig 2011-08-11 23:30:47.592347273 +0100
+++ /usr/lib/obs/service/tar_scm 2011-08-11 23:31:07.603889711 +0100
@@ -48 +48 @@
- EXCLUDES="$EXCLUDES --exclude='${2#/}'"
+ EXCLUDES="$EXCLUDES --exclude=${2#/}"
The generated tar command is now
$ tar cf /tmp/tmpNdpxNR/debian-2.6.tar --exclude=docs debian-2.6
And as a result the tarball produced doesn't include the 'docs' file, as
expected.
Cheers,
Carlos Gonçalves
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
Can anyone confirm if the 'exclude' parameter in tar_scm source service works
fine?
For what I can tell, it isn't working or I'm missing something.
Example of a generated tar command by tar_scm:
$ tar cf /tmp/tmpARm7Lt/debian-2.6.tar '--exclude='\''docs'\''' debian-2.6
The tarball debian-2.6.tar still includes the unwanted 'docs' file.
Applying this diff:
--- /usr/lib/obs/service/tar_scm.orig 2011-08-11 23:30:47.592347273 +0100
+++ /usr/lib/obs/service/tar_scm 2011-08-11 23:31:07.603889711 +0100
@@ -48 +48 @@
- EXCLUDES="$EXCLUDES --exclude='${2#/}'"
+ EXCLUDES="$EXCLUDES --exclude=${2#/}"
The generated tar command is now
$ tar cf /tmp/tmpNdpxNR/debian-2.6.tar --exclude=docs debian-2.6
And as a result the tarball produced doesn't include the 'docs' file, as
expected.
Cheers,
Carlos Gonçalves
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
< Previous | Next > |