]> git.saurik.com Git - apt.git/blobdiff - test/integration/framework
tests: copy 01autoremove from the right place
[apt.git] / test / integration / framework
index 0f442dff43bdf08b25ddc78ed2b9d78012580a84..8a95d79bbe1e013c2e3cec31a71238aa219d39c5 100644 (file)
@@ -332,8 +332,8 @@ setupenvironment() {
        echo "Dir::Bin::Planners \"${TMPWORKINGDIRECTORY}/rootdir/usr/lib/apt/planners\";" >> ../aptconfig.conf
         # use the autoremove from the BUILDDIRECTORY if its there, otherwise
         # system
-        if [ -e "${BUILDDIRECTORY}/../../debian/apt.conf.autoremove" ]; then
-           ln -s "${BUILDDIRECTORY}/../../debian/apt.conf.autoremove" etc/apt/apt.conf.d/01autoremove
+        if [ -z "${APT_INTEGRATION_TESTS_SOURCE_DIR}" ]; then
+           ln -s "${SOURCEDIRECTORY}/debian/apt.conf.autoremove" etc/apt/apt.conf.d/01autoremove
         else
            ln -s /etc/apt/apt.conf.d/01autoremove etc/apt/apt.conf.d/01autoremove
         fi