]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-apt-update-transactions
fix file ownership tests to work on kfreebsd
[apt.git] / test / integration / test-apt-update-transactions
index bf425a22ecfa68b5d694ccd5c40036ae663593ff..b325733ac460d502e182c516aebb142253ef0fa2 100755 (executable)
@@ -48,11 +48,7 @@ testrun() {
 testsetup() {
        msgmsg 'Test with no initial data over' "$1"
        rm -rf rootdir/var/lib/apt/lists
-       mkdir -m 700 -p rootdir/var/lib/apt/lists/partial
-       touch rootdir/var/lib/apt/lists/lock
-       if [ "$(id -u)" = '0' ]; then
-               chown _apt:root rootdir/var/lib/apt/lists/partial
-       fi
+       mkdir -p rootdir/var/lib/apt/lists/partial
        listcurrentlistsdirectory > listsdir.lst
        testrun 'listsdir.lst'