chiark / gitweb /
test suite: lib-baredebian: Provide `origbase'
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Jun 2019 11:16:17 +0000 (12:16 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Jun 2019 11:37:50 +0000 (12:37 +0100)
Was just a local variable `orig'.  Make it available.

No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-baredebian

index 676ff21cf9d147e711cadf7981efaf9fdf6dbb84..123ce35a0b3bec7eb6f5548d83e6638e4855c006 100644 (file)
@@ -6,6 +6,7 @@ baredebian-test-vars () {
        suite=sid
        uv=${v%-*}
        uvtag=v$uv
+       origbase=${p}_${uv}.orig
        xorigcomps=''
 }
 
@@ -21,12 +22,11 @@ baredebian-test-core () {
 
        t-dgit -wn --dgit-view-save=split.f1 --$quiltmode quilt-fixup
 
-       local orig=${p}_${uv}.orig
-       tar --strip-components=1 -axf ../$orig.tar.*
+       tar --strip-components=1 -axf ../$origbase.tar.*
        for comp in $xorigcomps; do
                mkdir $comp
                cd $comp
-               tar --strip-components=1 -axf ../../$orig-$comp.tar.*
+               tar --strip-components=1 -axf ../../$origbase-$comp.tar.*
                cd ..
        done