]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-sourceslist-lang-plusminus-options
accept ../ on the cmdline as start for a deb file as well
[apt.git] / test / integration / test-sourceslist-lang-plusminus-options
index 28d5f9e0655ed48ebd7313dad9d161a39a1a7229..6600183588e437451910c71e3571263b8fe818c3 100755 (executable)
@@ -11,7 +11,7 @@ testlangs() {
        local LANGS="$2"
        shift 2
        rm -f gotlangs.list
-       aptget files --no-release-info 'Created-By: Translations' "$@" --format '$(LANGUAGE)' | sort -u > gotlangs.list
+       aptget indextargets --no-release-info 'Created-By: Translations' "$@" --format '$(LANGUAGE)' | sort -u > gotlangs.list
        if [ -z "$LANGS" ]; then
                echo -n | tr ',' '\n' | sort | checkdiff - gotlangs.list && msgpass || msgfail
        else
@@ -44,7 +44,8 @@ testlangs 'lang=de_DE' 'de_DE'
 
 echo 'deb [lang=none] http://example.org/debian stable rocks' > rootdir/etc/apt/sources.list
 testlangs 'lang=none' ''
-testequal 'amd64' aptget files --no-release-info 'Created-By: Packages' --format '$(ARCHITECTURE)'
+testequal 'amd64
+all' aptget indextargets --no-release-info 'Created-By: Packages' --format '$(ARCHITECTURE)'
 
 echo 'deb [lang+=pt] http://example.org/debian stable rocks' > rootdir/etc/apt/sources.list
 testlangs 'lang+=pt' 'en,de,de_DE,pt'