aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/resolver_TEST_purges_setup.sh
blob: 8fa5ff457bfcb5b1776a6159eba5899a61d4fffc (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
41
42
43
44
45
46
#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :

mkdir resolver_TEST_purges_dir || exit 1
cd resolver_TEST_purges_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

# purges
echo 'purges' >> metadata/categories.conf

mkdir -p 'packages/purges/target'
cat <<END > packages/purges/target/target-1.exheres-0
SUMMARY="target"
PLATFORMS="test"
SLOT="0"
DEPENDENCIES="
    purges/still-used-dep
    purges/new-dep
    "
END

mkdir -p 'packages/purges/new-dep'
cat <<END > packages/purges/new-dep/new-dep-1.exheres-0
SUMMARY="dep"
PLATFORMS="test"
SLOT="0"
END

mkdir -p 'packages/purges/still-used-dep'
cat <<END > packages/purges/still-used-dep/still-used-dep-1.exheres-0
SUMMARY="dep"
PLATFORMS="test"
SLOT="0"
END

cd ..