[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 03/03: t: file(1) needs more than 4 bytes to match zip files



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

nthykier pushed a commit to branch master
in repository lintian.

commit d105a5bc69fb9bfca2126f7bf349bd4f3f590d26
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Feb 22 10:00:47 2014 +0100

    t: file(1) needs more than 4 bytes to match zip files
    
    Just give it a real zip file, since they are trival to create.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/tests/cruft-general-upstream/pre_upstream | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/t/tests/cruft-general-upstream/pre_upstream b/t/tests/cruft-general-upstream/pre_upstream
index 1a112e5..4f99c39 100755
--- a/t/tests/cruft-general-upstream/pre_upstream
+++ b/t/tests/cruft-general-upstream/pre_upstream
@@ -35,13 +35,14 @@ echo 'source-contains-svn-conflict-file' > "${dir}/foo.r1352"
 echo 'configure-generated-file-in-source' > "${dir}/config.cache"
 
 printf "MZ\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x3c" > "${dir}/fake-win32-bin.exe"
-printf "PK\003\004" > "${dir}/fake.jar"
-printf "PK\003\004" > "${dir}/fakesilverlight.XAC"
 printf "CWS\011" > "${dir}/fakeflash.swf"
 echo '//comment' > "${dir}/fake.min.js"
 printf "\154\014\015\012" > "${dir}/fake.pyo"
 printf "\154\014\015\012" > "${dir}/fake.pyc"
 
+zip -q "${dir}/fake.jar" "${dir}/fake.min.js"
+cp "${dir}/fake.jar" "${dir}/fakesilverlight.XAC"
+
 # need to pad
 printf "\320\317\021\340\241\261\032\341" > "${dir}/fakefla.fla"
 dd if=/dev/zero of="${dir}/fakefla.fla" count=1 bs=1 seek=2047 > /dev/null 2> /dev/null

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


Reply to: