aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/resolver_TEST_errors_setup.sh
blob: 1fa6c8b4d305dcd42d46c5304879d433db7976fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :

mkdir resolver_TEST_errors_dir || exit 1
cd resolver_TEST_errors_dir || exit 1

mkdir -p build
mkdir -p distdir
mkdir -p installed

mkdir -p repo/{profiles/profile,metadata}

cd repo
echo "repo" > profiles/repo_name
:> metadata/categories.conf

# unable-to-decide-then-more
echo 'unable-to-decide-then-more' >> metadata/categories.conf

mkdir -p 'packages/unable-to-decide-then-more/target'
cat <<END > packages/unable-to-decide-then-more/target/target-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES="
    unable-to-decide-then-more/pkg-a
    unable-to-decide-then-more/pkg-b"
END

mkdir -p 'packages/unable-to-decide-then-more/pkg-b'
cat <<END > packages/unable-to-decide-then-more/pkg-b/pkg-b-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES="
    unable-to-decide-then-more/pkg-a"
END

cd ..