[reproducible-website] 01/01: Reorder tar arguments so --no-recursion takes effect

Mattia Rizzolo mattia at debian.org
Fri Dec 9 23:45:44 UTC 2016


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository reproducible-website.

commit 6f3e2f552606479e7a5764845c276e4c4c877d39
Author: Anders Kaseorg <andersk at mit.edu>
Date:   Wed Dec 7 21:49:25 2016 -0500

    Reorder tar arguments so --no-recursion takes effect
    
    The invocation ‘tar --null -T - --no-recursion -cf archive.tar’
    doesn’t work, because --no-recursion only affects following arguments.
    
    Signed-off-by: Anders Kaseorg <andersk at mit.edu>
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 _docs/archives.md      | 2 +-
 _docs/stable_inputs.md | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/_docs/archives.md b/_docs/archives.md
index 67520b7..e6e26c5 100644
--- a/_docs/archives.md
+++ b/_docs/archives.md
@@ -80,7 +80,7 @@ For older versions or other archive formats, it is possible to use
 
 {% highlight sh %}
 $ find build -print0 | LC_ALL=C sort -z |
-    tar --null -T - --no-recursion -cf product.tar
+    tar --no-recursion --null -T - -cf product.tar
 {% endhighlight %}
 
 Care must be taken to ensure that `sort` is called in the context of the
diff --git a/_docs/stable_inputs.md b/_docs/stable_inputs.md
index 2c0bf69..55aa72e 100644
--- a/_docs/stable_inputs.md
+++ b/_docs/stable_inputs.md
@@ -71,7 +71,7 @@ have differences when run under different locales:
 <div class="wrong">
 {% highlight sh %}
 $ find src -print0 | sort -z |
-    tar --null -T - --no-recursion -cf archive.tar
+    tar --no-recursion --null -T - -cf archive.tar
 {% endhighlight %}
 </div>
 
@@ -80,7 +80,7 @@ The locale used to sort files must be specified to avoid any surprises:
 <div class="correct">
 {% highlight sh %}
 $ find src -print0 | LC_ALL=C sort -z |
-    tar --null -T - --no-recursion -cf archive.tar
+    tar --no-recursion --null -T - -cf archive.tar
 {% endhighlight %}
 </div>
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/reproducible-website.git



More information about the Reproducible-commits mailing list