summaryrefslogtreecommitdiffstats
path: root/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'testdata')
-rw-r--r--testdata/history/devel/10.0/amd64/Mandrake/base/hdlists2
-rw-r--r--testdata/history/devel/10.0/i586/Mandrake/base/hdlists6
-rw-r--r--testdata/history/devel/10.1/i586/media/media_info/hdlists3
-rw-r--r--testdata/history/devel/10.1/ppc/media/media_info/hdlists2
-rw-r--r--testdata/history/devel/10.2/i586/media/media_info/hdlists3
-rw-r--r--testdata/history/devel/10.2/i586/media/media_info/media.cfg35
-rw-r--r--testdata/history/devel/10.2/ppc/media/media_info/hdlists2
-rw-r--r--testdata/history/devel/10.2/x86_64/media/media_info/hdlists2
-rw-r--r--testdata/history/devel/2006.0/i586/media/media_info/hdlists6
-rw-r--r--testdata/history/devel/2006.0/i586/media/media_info/media.cfg35
-rw-r--r--testdata/history/devel/2006.0/x86_64/media/media_info/hdlists2
-rw-r--r--testdata/history/devel/2006.0/x86_64/media/media_info/media.cfg14
-rw-r--r--testdata/history/devel/2007.0/i586/media/media_info/hdlists11
-rw-r--r--testdata/history/devel/2007.0/i586/media/media_info/media.cfg71
-rw-r--r--testdata/history/devel/2007.0/x86_64/media/media_info/hdlists7
-rw-r--r--testdata/history/devel/2007.0/x86_64/media/media_info/media.cfg40
-rw-r--r--testdata/history/devel/cooker/i586/media/media_info/hdlists11
-rw-r--r--testdata/history/devel/cooker/i586/media/media_info/media.cfg71
-rw-r--r--testdata/history/devel/cooker/ia64/media/media_info/hdlists4
-rw-r--r--testdata/history/devel/cooker/ppc/media/media_info/hdlists2
-rw-r--r--testdata/history/devel/cooker/ppc/media/media_info/media.cfg15
-rw-r--r--testdata/history/devel/cooker/sparc/media/media_info/hdlists4
-rw-r--r--testdata/history/devel/cooker/sparc/media/media_info/media.cfg23
-rw-r--r--testdata/history/devel/cooker/sparc64/media/media_info/hdlists4
-rw-r--r--testdata/history/devel/cooker/sparc64/media/media_info/media.cfg23
-rw-r--r--testdata/history/devel/cooker/x86_64/media/media_info/hdlists7
-rw-r--r--testdata/history/devel/cooker/x86_64/media/media_info/media.cfg40
-rw-r--r--testdata/history/official/10.0/i586/Mandrake/base/hdlists6
-rw-r--r--testdata/history/official/10.1/i586/media/media_info/hdlists3
-rw-r--r--testdata/history/official/10.1/x86_64/media/media_info/hdlists2
-rw-r--r--testdata/history/official/10.2/i586/media/media_info/hdlists3
-rw-r--r--testdata/history/official/10.2/i586/media/media_info/media.cfg20
-rw-r--r--testdata/history/official/10.2/x86_64/media/media_info/hdlists2
-rw-r--r--testdata/history/official/2006.0/i586/media/media_info/hdlists6
-rw-r--r--testdata/history/official/2006.0/i586/media/media_info/media.cfg36
-rw-r--r--testdata/history/official/2006.0/x86_64/media/media_info/hdlists2
-rw-r--r--testdata/history/official/2006.0/x86_64/media/media_info/media.cfg15
-rw-r--r--testdata/history/official/9.0/x86_64/Mandrake/base/hdlists1
-rw-r--r--testdata/history/official/9.1/i586/Mandrake/base/hdlists2
-rw-r--r--testdata/history/official/9.1/ppc/Mandrake/base/hdlists2
-rw-r--r--testdata/history/official/9.2/i586/Mandrake/base/hdlists6
-rw-r--r--testdata/history/old/7.2/i586/Mandrake/base/hdlists1
-rw-r--r--testdata/history/old/7.2/sparc/Mandrake/base/hdlists1
-rw-r--r--testdata/history/old/8.0/i586/Mandrake/base/hdlists1
-rw-r--r--testdata/history/old/8.1/i586/Mandrake/base/hdlists1
-rw-r--r--testdata/history/old/8.2/i586/Mandrake/base/hdlists2
-rw-r--r--testdata/history/old/8.2/ppc/Mandrake/base/hdlists1
-rw-r--r--testdata/history/old/9.0/i586/Mandrake/base/hdlists2
-rw-r--r--testdata/test/media/media_info/media.cfg42
-rw-r--r--testdata/test2/media/media_info/media.cfg43
-rw-r--r--testdata/test3/media/media_info/media.cfg43
-rw-r--r--testdata/testa/README6
-rw-r--r--testdata/testa/VERSION1
-rw-r--r--testdata/testa/media/first/media_info/MD5SUM2
-rw-r--r--testdata/testa/media/first/media_info/hdlist.czbin0 -> 1729 bytes
-rw-r--r--testdata/testa/media/first/media_info/synthesis.hdlist.czbin0 -> 180 bytes
-rw-r--r--testdata/testa/media/first/test-dep-1.0-1mdk.noarch.rpmbin0 -> 2285 bytes
-rw-r--r--testdata/testa/media/first/test-rpm-1.0-1mdk.noarch.rpmbin0 -> 2036 bytes
-rw-r--r--testdata/testa/media/first_debug/aspell-te-debug-0.60.0-1mdk.i586.rpmbin0 -> 1859 bytes
-rw-r--r--testdata/testa/media/first_src/aspell-sr-0.60.0-1mdk.src.rpmbin0 -> 578416 bytes
-rw-r--r--testdata/testa/media/first_src/aspell-te-0.60.0-1mdk.src.rpmbin0 -> 312718 bytes
-rw-r--r--testdata/testa/media/first_src/media_info/MD5SUM2
-rw-r--r--testdata/testa/media/first_src/media_info/hdlist.czbin0 -> 996 bytes
-rw-r--r--testdata/testa/media/first_src/media_info/synthesis.hdlist.czbin0 -> 113 bytes
-rw-r--r--testdata/testa/media/first_src/test-rpm-1.0-1mdk.src.rpmbin0 -> 2137 bytes
-rw-r--r--testdata/testa/media/media_info/MD5SUM9
-rw-r--r--testdata/testa/media/media_info/compss6
-rw-r--r--testdata/testa/media/media_info/depslist.ordered4
-rw-r--r--testdata/testa/media/media_info/hdlist_first.czbin0 -> 1729 bytes
-rw-r--r--testdata/testa/media/media_info/hdlist_first_src.czbin0 -> 996 bytes
-rw-r--r--testdata/testa/media/media_info/hdlist_second.czbin0 -> 64 bytes
-rw-r--r--testdata/testa/media/media_info/hdlist_second_src.czbin0 -> 1002 bytes
-rw-r--r--testdata/testa/media/media_info/hdlists4
-rw-r--r--testdata/testa/media/media_info/media.cfg30
-rw-r--r--testdata/testa/media/media_info/provides2
-rw-r--r--testdata/testa/media/media_info/synthesis.hdlist_first.czbin0 -> 180 bytes
-rw-r--r--testdata/testa/media/media_info/synthesis.hdlist_first_src.czbin0 -> 113 bytes
-rw-r--r--testdata/testa/media/media_info/synthesis.hdlist_second.czbin0 -> 20 bytes
-rw-r--r--testdata/testa/media/media_info/synthesis.hdlist_second_src.czbin0 -> 122 bytes
-rw-r--r--testdata/testa/media/second/aspell-sr-debug-0.60.0-1mdk.i586.rpmbin0 -> 1859 bytes
-rw-r--r--testdata/testa/media/second/cowsay-3.03-10mdk.noarch.rpmbin0 -> 23726 bytes
-rw-r--r--testdata/testa/media/second/media_info/MD5SUM2
-rw-r--r--testdata/testa/media/second/media_info/hdlist.czbin0 -> 64 bytes
-rw-r--r--testdata/testa/media/second/media_info/synthesis.hdlist.czbin0 -> 20 bytes
-rw-r--r--testdata/testa/media/second_src/media_info/MD5SUM2
-rw-r--r--testdata/testa/media/second_src/media_info/hdlist.czbin0 -> 1002 bytes
-rw-r--r--testdata/testa/media/second_src/media_info/synthesis.hdlist.czbin0 -> 122 bytes
-rw-r--r--testdata/testa/media/second_src/test-dep-1.0-1mdk.src.rpmbin0 -> 2213 bytes
-rw-r--r--testdata/testa/media/specs/test-dep.spec38
-rw-r--r--testdata/testa/media/specs/test-rpm.spec35
-rw-r--r--testdata/testb/README6
-rw-r--r--testdata/testb/VERSION1
-rw-r--r--testdata/testb/media/first/media_info/MD5SUM2
-rw-r--r--testdata/testb/media/first_src/media_info/MD5SUM2
-rw-r--r--testdata/testb/media/media_info/MD5SUM9
-rw-r--r--testdata/testb/media/media_info/compss6
-rw-r--r--testdata/testb/media/media_info/depslist.ordered4
-rw-r--r--testdata/testb/media/media_info/hdlists4
-rw-r--r--testdata/testb/media/media_info/media.cfg30
-rw-r--r--testdata/testb/media/media_info/provides2
-rw-r--r--testdata/testb/media/second/media_info/MD5SUM2
-rw-r--r--testdata/testb/media/second_src/media_info/MD5SUM2
102 files changed, 901 insertions, 0 deletions
diff --git a/testdata/history/devel/10.0/amd64/Mandrake/base/hdlists b/testdata/history/devel/10.0/amd64/Mandrake/base/hdlists
new file mode 100644
index 0000000..ce20d67
--- /dev/null
+++ b/testdata/history/devel/10.0/amd64/Mandrake/base/hdlists
@@ -0,0 +1,2 @@
+hdlist.cz Mandrake/RPMS Installation CD
+hdlist2.cz Mandrake/RPMS2 Contrib CD
diff --git a/testdata/history/devel/10.0/i586/Mandrake/base/hdlists b/testdata/history/devel/10.0/i586/Mandrake/base/hdlists
new file mode 100644
index 0000000..55ec565
--- /dev/null
+++ b/testdata/history/devel/10.0/i586/Mandrake/base/hdlists
@@ -0,0 +1,6 @@
+hdlist.cz Mandrake/RPMS Installation CD
+hdlist.src.cz ../SRPMS Installation sources
+hdlist2.cz Mandrake/RPMS2 Contrib CD
+hdlist2.src.cz ../contrib/SRPMS Contrib sources
+hdlist3.cz Mandrake/RPMS3 Jpackage.org
+hdlist3.src.cz ../contrib/jpackage/SRPMS Jpackage.org sources
diff --git a/testdata/history/devel/10.1/i586/media/media_info/hdlists b/testdata/history/devel/10.1/i586/media/media_info/hdlists
new file mode 100644
index 0000000..0cd4b86
--- /dev/null
+++ b/testdata/history/devel/10.1/i586/media/media_info/hdlists
@@ -0,0 +1,3 @@
+hdlist_main.cz media/main Main
+hdlist_contrib.cz media/contrib Contrib
+hdlist_jpackage.cz media/jpackage Jpackage
diff --git a/testdata/history/devel/10.1/ppc/media/media_info/hdlists b/testdata/history/devel/10.1/ppc/media/media_info/hdlists
new file mode 100644
index 0000000..2506fe9
--- /dev/null
+++ b/testdata/history/devel/10.1/ppc/media/media_info/hdlists
@@ -0,0 +1,2 @@
+hdlist_main.cz media/main Main
+hdlist_contrib.cz media/contrib Contrib
diff --git a/testdata/history/devel/10.2/i586/media/media_info/hdlists b/testdata/history/devel/10.2/i586/media/media_info/hdlists
new file mode 100644
index 0000000..f09b541
--- /dev/null
+++ b/testdata/history/devel/10.2/i586/media/media_info/hdlists
@@ -0,0 +1,3 @@
+hdlist_main.cz media/main Main (3400mm)
+hdlist_contrib.cz media/contrib Contrib (4300mm)
+noauto:hdlist_jpackage.cz media/jpackage Jpackage (360mm)
diff --git a/testdata/history/devel/10.2/i586/media/media_info/media.cfg b/testdata/history/devel/10.2/i586/media/media_info/media.cfg
new file mode 100644
index 0000000..902830e
--- /dev/null
+++ b/testdata/history/devel/10.2/i586/media/media_info/media.cfg
@@ -0,0 +1,35 @@
+[media_info]
+version=10.2
+branch=Cooker
+arch=i586
+
+[main]
+hdlist=hdlist_main.cz
+name=Main
+size=3400m
+
+[../SRPMS/main]
+hdlist=hdlist_main.src.cz
+name=Main Sources
+noauto=1
+
+[contrib]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
+
+[../SRPMS/contrib]
+hdlist=hdlist_contrib.src.cz
+name=Contrib Sources
+noauto=1
+
+[jpackage]
+hdlist=hdlist_jpackage.cz
+name=Jpackage
+size=360m
+noauto=1
+
+[../SRPMS/jpackage]
+hdlist=hdlist_jpackage.src.cz
+name=Jpackage Sources
+noauto=1
diff --git a/testdata/history/devel/10.2/ppc/media/media_info/hdlists b/testdata/history/devel/10.2/ppc/media/media_info/hdlists
new file mode 100644
index 0000000..284614e
--- /dev/null
+++ b/testdata/history/devel/10.2/ppc/media/media_info/hdlists
@@ -0,0 +1,2 @@
+hdlist_main.cz media/main Main
+hdlist_contrib.cz media/contrib Contrib
diff --git a/testdata/history/devel/10.2/x86_64/media/media_info/hdlists b/testdata/history/devel/10.2/x86_64/media/media_info/hdlists
new file mode 100644
index 0000000..284614e
--- /dev/null
+++ b/testdata/history/devel/10.2/x86_64/media/media_info/hdlists
@@ -0,0 +1,2 @@
+hdlist_main.cz media/main Main
+hdlist_contrib.cz media/contrib Contrib
diff --git a/testdata/history/devel/2006.0/i586/media/media_info/hdlists b/testdata/history/devel/2006.0/i586/media/media_info/hdlists
new file mode 100644
index 0000000..73e326f
--- /dev/null
+++ b/testdata/history/devel/2006.0/i586/media/media_info/hdlists
@@ -0,0 +1,6 @@
+hdlist_main.cz media/main Main (3400m)
+noauto:hdlist_main.src.cz ../SRPMS/main Main Sources
+hdlist_contrib.cz media/contrib Contrib (4300m)
+noauto:hdlist_contrib.src.cz ../SRPMS/contrib Contrib Sources
+noauto:hdlist_jpackage.cz media/jpackage Jpackage (360m)
+noauto:hdlist_jpackage.src.cz ../SRPMS/jpackage Jpackage Sources
diff --git a/testdata/history/devel/2006.0/i586/media/media_info/media.cfg b/testdata/history/devel/2006.0/i586/media/media_info/media.cfg
new file mode 100644
index 0000000..4733693
--- /dev/null
+++ b/testdata/history/devel/2006.0/i586/media/media_info/media.cfg
@@ -0,0 +1,35 @@
+[media_info]
+version=2006.0
+branch=Cooker
+arch=i586
+
+[main]
+hdlist=hdlist_main.cz
+name=Main
+size=3400m
+
+[../SRPMS/main]
+hdlist=hdlist_main.src.cz
+name=Main Sources
+noauto=1
+
+[contrib]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
+
+[../SRPMS/contrib]
+hdlist=hdlist_contrib.src.cz
+name=Contrib Sources
+noauto=1
+
+[jpackage]
+hdlist=hdlist_jpackage.cz
+name=Jpackage
+size=360m
+noauto=1
+
+[../SRPMS/jpackage]
+hdlist=hdlist_jpackage.src.cz
+name=Jpackage Sources
+noauto=1
diff --git a/testdata/history/devel/2006.0/x86_64/media/media_info/hdlists b/testdata/history/devel/2006.0/x86_64/media/media_info/hdlists
new file mode 100644
index 0000000..52837da
--- /dev/null
+++ b/testdata/history/devel/2006.0/x86_64/media/media_info/hdlists
@@ -0,0 +1,2 @@
+hdlist_main.cz media/main Main (3400m)
+hdlist_contrib.cz media/contrib Contrib (4300m)
diff --git a/testdata/history/devel/2006.0/x86_64/media/media_info/media.cfg b/testdata/history/devel/2006.0/x86_64/media/media_info/media.cfg
new file mode 100644
index 0000000..b0d7425
--- /dev/null
+++ b/testdata/history/devel/2006.0/x86_64/media/media_info/media.cfg
@@ -0,0 +1,14 @@
+[media_info]
+version=2006.0
+branch=Cooker
+arch=i586
+
+[main]
+hdlist=hdlist_main.cz
+name=Main
+size=3400m
+
+[contrib]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
diff --git a/testdata/history/devel/2007.0/i586/media/media_info/hdlists b/testdata/history/devel/2007.0/i586/media/media_info/hdlists
new file mode 100644
index 0000000..2b81a4c
--- /dev/null
+++ b/testdata/history/devel/2007.0/i586/media/media_info/hdlists
@@ -0,0 +1,11 @@
+hdlist_main.cz media/main/release Main (3400m)
+noauto:hdlist_main_testing.cz media/main/testing Main (3400m)
+noauto:hdlist_debug_main.cz media/debug_main/release debug_main_release
+noauto:hdlist_debug_main_testing.cz media/debug_main/testing debug_main_testing
+noauto:hdlist_main.src.cz media/../../SRPMS/main/release Main Sources
+noauto:hdlist_main.src.cz media/../../SRPMS/main/testing Main Sources
+hdlist_contrib.cz media/contrib/release Contrib (4300m)
+noauto:hdlist_debug_contrib.src.cz media/debug_contrib/release debug_contrib_release
+noauto:hdlist_contrib.src.cz media/../../SRPMS/contrib/release Contrib Sources
+noauto:hdlist_non-free.cz media/non-free/release non-free_release
+noauto:hdlist_non-free.src.cz media/../../SRPMS/non-free/release Non-free Sources
diff --git a/testdata/history/devel/2007.0/i586/media/media_info/media.cfg b/testdata/history/devel/2007.0/i586/media/media_info/media.cfg
new file mode 100644
index 0000000..01aef54
--- /dev/null
+++ b/testdata/history/devel/2007.0/i586/media/media_info/media.cfg
@@ -0,0 +1,71 @@
+[media_info]
+version=2007.0
+mediacfg_version=2
+branch=Cooker
+arch=i586
+
+[main/release]
+hdlist=hdlist_main.cz
+name=Main
+srpms=../SRPMS/main/release
+size=3400m
+
+[main/testing]
+hdlist=hdlist_main_testing.cz
+name=Main
+srpms=../SRPMS/main/testing
+size=3400m
+noauto=1
+
+[debug_main/release]
+hdlist=hdlist_debug_main.cz
+srpms=../../SRPMS/main/release
+debug_for=main
+noauto=1
+
+[debug_main/testing]
+hdlist=hdlist_debug_main_testing.cz
+srpms=../../SRPMS/main/release
+debug_for=main
+noauto=1
+
+[../../SRPMS/main/release]
+hdlist=hdlist_main.src.cz
+name=Main Sources
+rpms=main/release debug_main/release
+noauto=1
+
+[../../SRPMS/main/testing]
+hdlist=hdlist_main.src.cz
+name=Main Sources
+rpms=main/testing debug_main/testing
+noauto=1
+
+[contrib/release]
+hdlist=hdlist_contrib.cz
+name=Contrib
+srpms=../../SRPMS/contrib/release
+size=4300m
+
+[debug_contrib/release]
+hdlist=hdlist_debug_contrib.src.cz
+srpms=../../SRPMS/contrib/release
+debug_for=contrib/release
+noauto=1
+
+[../../SRPMS/contrib/release]
+hdlist=hdlist_contrib.src.cz
+name=Contrib Sources
+noauto=1
+rpms=contrib/release debug_contrib/release
+
+[non-free/release]
+hdlist=hdlist_non-free.cz
+noauto=1
+
+[../../SRPMS/non-free/release]
+hdlist=hdlist_non-free.src.cz
+name=Non-free Sources
+rpms=non-free/release
+noauto=1
+
diff --git a/testdata/history/devel/2007.0/x86_64/media/media_info/hdlists b/testdata/history/devel/2007.0/x86_64/media/media_info/hdlists
new file mode 100644
index 0000000..9791f82
--- /dev/null
+++ b/testdata/history/devel/2007.0/x86_64/media/media_info/hdlists
@@ -0,0 +1,7 @@
+hdlist_main.cz media/main/release Main (3400m)
+noauto:hdlist_main_testing.cz media/main/testing Main (3400m)
+noauto:hdlist_debug_main.cz media/debug_main/release debug_main_release
+noauto:hdlist_debug_main_testing.cz media/debug_main/testing debug_main_testing
+hdlist_contrib.cz media/contrib/release Contrib (4300m)
+noauto:hdlist_debug_contrib.cz media/debug_contrib/release debug_contrib_release
+noauto:hdlist_non-free.cz media/non-free/release non-free_release
diff --git a/testdata/history/devel/2007.0/x86_64/media/media_info/media.cfg b/testdata/history/devel/2007.0/x86_64/media/media_info/media.cfg
new file mode 100644
index 0000000..6bbad83
--- /dev/null
+++ b/testdata/history/devel/2007.0/x86_64/media/media_info/media.cfg
@@ -0,0 +1,40 @@
+[media_info]
+version=2007.0
+mediacfg_version=2
+branch=Cooker
+arch=x86_64
+
+[main/release]
+hdlist=hdlist_main.cz
+name=Main
+size=3400m
+
+[main/testing]
+hdlist=hdlist_main_testing.cz
+name=Main
+size=3400m
+noauto=1
+
+[debug_main/release]
+hdlist=hdlist_debug_main.cz
+debug_for=main/release
+noauto=1
+
+[debug_main/testing]
+hdlist=hdlist_debug_main_testing.cz
+debug_for=main/testing
+noauto=1
+
+[contrib/release]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
+
+[debug_contrib/release]
+hdlist=hdlist_debug_contrib.cz
+debug_for=contrib/release
+noauto=1
+
+[non-free/release]
+hdlist=hdlist_non-free.cz
+noauto=1
diff --git a/testdata/history/devel/cooker/i586/media/media_info/hdlists b/testdata/history/devel/cooker/i586/media/media_info/hdlists
new file mode 100644
index 0000000..2e5ca98
--- /dev/null
+++ b/testdata/history/devel/cooker/i586/media/media_info/hdlists
@@ -0,0 +1,11 @@
+hdlist_main.cz media/main/release Main (3400m)
+noauto:hdlist_main_testing.cz media/main/testing Main (3400m)
+noauto:hdlist_debug_main.cz media/debug_main/release debug_main_release
+noauto:hdlist_debug_main_testing.cz media/debug_main/testing debug_main_testing
+noauto:hdlist_main.src.cz media/../../SRPMS/main/release Main Sources
+noauto:hdlist_main_testing.src.cz media/../../SRPMS/main/testing Main Sources
+hdlist_contrib.cz media/contrib/release Contrib (4300m)
+noauto:hdlist_debug_contrib.src.cz media/debug_contrib/release debug_contrib_release
+noauto:hdlist_contrib.src.cz media/../../SRPMS/contrib/release Contrib Sources
+noauto:hdlist_non-free.cz media/non-free/release non-free_release
+noauto:hdlist_non-free.src.cz media/../../SRPMS/non-free/release Non-free Sources
diff --git a/testdata/history/devel/cooker/i586/media/media_info/media.cfg b/testdata/history/devel/cooker/i586/media/media_info/media.cfg
new file mode 100644
index 0000000..76b7924
--- /dev/null
+++ b/testdata/history/devel/cooker/i586/media/media_info/media.cfg
@@ -0,0 +1,71 @@
+[media_info]
+version=2007.0
+mediacfg_version=2
+branch=Cooker
+arch=i586
+
+[main/release]
+hdlist=hdlist_main.cz
+name=Main
+srpms=../SRPMS/main/release
+size=3400m
+
+[main/testing]
+hdlist=hdlist_main_testing.cz
+name=Main
+srpms=../SRPMS/main/testing
+size=3400m
+noauto=1
+
+[debug_main/release]
+hdlist=hdlist_debug_main.cz
+srpms=../../SRPMS/main/release
+debug_for=main
+noauto=1
+
+[debug_main/testing]
+hdlist=hdlist_debug_main_testing.cz
+srpms=../../SRPMS/main/release
+debug_for=main
+noauto=1
+
+[../../SRPMS/main/release]
+hdlist=hdlist_main.src.cz
+name=Main Sources
+rpms=main/release debug_main/release
+noauto=1
+
+[../../SRPMS/main/testing]
+hdlist=hdlist_main_testing.src.cz
+name=Main Sources
+rpms=main/testing debug_main/testing
+noauto=1
+
+[contrib/release]
+hdlist=hdlist_contrib.cz
+name=Contrib
+srpms=../../SRPMS/contrib/release
+size=4300m
+
+[debug_contrib/release]
+hdlist=hdlist_debug_contrib.src.cz
+srpms=../../SRPMS/contrib/release
+debug_for=contrib/release
+noauto=1
+
+[../../SRPMS/contrib/release]
+hdlist=hdlist_contrib.src.cz
+name=Contrib Sources
+noauto=1
+rpms=contrib/release debug_contrib/release
+
+[non-free/release]
+hdlist=hdlist_non-free.cz
+noauto=1
+
+[../../SRPMS/non-free/release]
+hdlist=hdlist_non-free.src.cz
+name=Non-free Sources
+rpms=non-free/release
+noauto=1
+
diff --git a/testdata/history/devel/cooker/ia64/media/media_info/hdlists b/testdata/history/devel/cooker/ia64/media/media_info/hdlists
new file mode 100644
index 0000000..873b8a5
--- /dev/null
+++ b/testdata/history/devel/cooker/ia64/media/media_info/hdlists
@@ -0,0 +1,4 @@
+hdlist1.cz Mandrake/RPMS/ Installation Beta 2 CD 1 (ia64)
+hdlist2.cz Mandrake/RPMS2/ Installation Beta 2 CD 2 (ia64)
+hdlist3.cz Mandrake/RPMS3/ Installation Beta 2 CD 3 (ia64)
+hdlist4.cz Mandrake/RPMS4/ Installation Beta 2 CD 4 (ia64)
diff --git a/testdata/history/devel/cooker/ppc/media/media_info/hdlists b/testdata/history/devel/cooker/ppc/media/media_info/hdlists
new file mode 100644
index 0000000..7a9a89c
--- /dev/null
+++ b/testdata/history/devel/cooker/ppc/media/media_info/hdlists
@@ -0,0 +1,2 @@
+hdlist_main.cz media/main/release Main (3400m)
+hdlist_contrib.cz media/contrib/release Contrib (4300m)
diff --git a/testdata/history/devel/cooker/ppc/media/media_info/media.cfg b/testdata/history/devel/cooker/ppc/media/media_info/media.cfg
new file mode 100644
index 0000000..0d03d88
--- /dev/null
+++ b/testdata/history/devel/cooker/ppc/media/media_info/media.cfg
@@ -0,0 +1,15 @@
+[media_info]
+version=2007.0
+mediacfg_version=2
+branch=Cooker
+arch=ppc
+
+[main/release]
+hdlist=hdlist_main.cz
+name=Main
+size=3400m
+
+[contrib/release]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
diff --git a/testdata/history/devel/cooker/sparc/media/media_info/hdlists b/testdata/history/devel/cooker/sparc/media/media_info/hdlists
new file mode 100644
index 0000000..df4524a
--- /dev/null
+++ b/testdata/history/devel/cooker/sparc/media/media_info/hdlists
@@ -0,0 +1,4 @@
+hdlist_main.cz media/main/release Main (3400m)
+hdlist_debug_main.cz media/debug_main/release debug_main_release
+hdlist_contrib.cz media/contrib/release Contrib (4300m)
+hdlist_debug_contrib.cz media/debug_contrib/release debug_contrib_release
diff --git a/testdata/history/devel/cooker/sparc/media/media_info/media.cfg b/testdata/history/devel/cooker/sparc/media/media_info/media.cfg
new file mode 100644
index 0000000..6c533f7
--- /dev/null
+++ b/testdata/history/devel/cooker/sparc/media/media_info/media.cfg
@@ -0,0 +1,23 @@
+[media_info]
+version=2007.0
+mediacfg_version=2
+branch=Cooker
+arch=sparc
+
+[main/release]
+hdlist=hdlist_main.cz
+name=Main
+size=3400m
+
+[debug_main/release]
+hdlist=hdlist_debug_main.cz
+debug_for=main/release
+
+[contrib/release]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
+
+[debug_contrib/release]
+hdlist=hdlist_debug_contrib.cz
+debug_for=contrib/release
diff --git a/testdata/history/devel/cooker/sparc64/media/media_info/hdlists b/testdata/history/devel/cooker/sparc64/media/media_info/hdlists
new file mode 100644
index 0000000..df4524a
--- /dev/null
+++ b/testdata/history/devel/cooker/sparc64/media/media_info/hdlists
@@ -0,0 +1,4 @@
+hdlist_main.cz media/main/release Main (3400m)
+hdlist_debug_main.cz media/debug_main/release debug_main_release
+hdlist_contrib.cz media/contrib/release Contrib (4300m)
+hdlist_debug_contrib.cz media/debug_contrib/release debug_contrib_release
diff --git a/testdata/history/devel/cooker/sparc64/media/media_info/media.cfg b/testdata/history/devel/cooker/sparc64/media/media_info/media.cfg
new file mode 100644
index 0000000..53797a3
--- /dev/null
+++ b/testdata/history/devel/cooker/sparc64/media/media_info/media.cfg
@@ -0,0 +1,23 @@
+[media_info]
+mediacfg_version=2
+version=2007.0
+branch=Cooker
+arch=sparc64
+
+[main/release]
+hdlist=hdlist_main.cz
+name=Main
+size=3400m
+
+[debug_main/release]
+hdlist=hdlist_debug_main.cz
+debug_for=main
+
+[contrib/release]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
+
+[debug_contrib/release]
+hdlist=hdlist_debug_contrib.cz
+debug_for=contrib
diff --git a/testdata/history/devel/cooker/x86_64/media/media_info/hdlists b/testdata/history/devel/cooker/x86_64/media/media_info/hdlists
new file mode 100644
index 0000000..9791f82
--- /dev/null
+++ b/testdata/history/devel/cooker/x86_64/media/media_info/hdlists
@@ -0,0 +1,7 @@
+hdlist_main.cz media/main/release Main (3400m)
+noauto:hdlist_main_testing.cz media/main/testing Main (3400m)
+noauto:hdlist_debug_main.cz media/debug_main/release debug_main_release
+noauto:hdlist_debug_main_testing.cz media/debug_main/testing debug_main_testing
+hdlist_contrib.cz media/contrib/release Contrib (4300m)
+noauto:hdlist_debug_contrib.cz media/debug_contrib/release debug_contrib_release
+noauto:hdlist_non-free.cz media/non-free/release non-free_release
diff --git a/testdata/history/devel/cooker/x86_64/media/media_info/media.cfg b/testdata/history/devel/cooker/x86_64/media/media_info/media.cfg
new file mode 100644
index 0000000..6bbad83
--- /dev/null
+++ b/testdata/history/devel/cooker/x86_64/media/media_info/media.cfg
@@ -0,0 +1,40 @@
+[media_info]
+version=2007.0
+mediacfg_version=2
+branch=Cooker
+arch=x86_64
+
+[main/release]
+hdlist=hdlist_main.cz
+name=Main
+size=3400m
+
+[main/testing]
+hdlist=hdlist_main_testing.cz
+name=Main
+size=3400m
+noauto=1
+
+[debug_main/release]
+hdlist=hdlist_debug_main.cz
+debug_for=main/release
+noauto=1
+
+[debug_main/testing]
+hdlist=hdlist_debug_main_testing.cz
+debug_for=main/testing
+noauto=1
+
+[contrib/release]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
+
+[debug_contrib/release]
+hdlist=hdlist_debug_contrib.cz
+debug_for=contrib/release
+noauto=1
+
+[non-free/release]
+hdlist=hdlist_non-free.cz
+noauto=1
diff --git a/testdata/history/official/10.0/i586/Mandrake/base/hdlists b/testdata/history/official/10.0/i586/Mandrake/base/hdlists
new file mode 100644
index 0000000..55ec565
--- /dev/null
+++ b/testdata/history/official/10.0/i586/Mandrake/base/hdlists
@@ -0,0 +1,6 @@
+hdlist.cz Mandrake/RPMS Installation CD
+hdlist.src.cz ../SRPMS Installation sources
+hdlist2.cz Mandrake/RPMS2 Contrib CD
+hdlist2.src.cz ../contrib/SRPMS Contrib sources
+hdlist3.cz Mandrake/RPMS3 Jpackage.org
+hdlist3.src.cz ../contrib/jpackage/SRPMS Jpackage.org sources
diff --git a/testdata/history/official/10.1/i586/media/media_info/hdlists b/testdata/history/official/10.1/i586/media/media_info/hdlists
new file mode 100644
index 0000000..0cd4b86
--- /dev/null
+++ b/testdata/history/official/10.1/i586/media/media_info/hdlists
@@ -0,0 +1,3 @@
+hdlist_main.cz media/main Main
+hdlist_contrib.cz media/contrib Contrib
+hdlist_jpackage.cz media/jpackage Jpackage
diff --git a/testdata/history/official/10.1/x86_64/media/media_info/hdlists b/testdata/history/official/10.1/x86_64/media/media_info/hdlists
new file mode 100644
index 0000000..2506fe9
--- /dev/null
+++ b/testdata/history/official/10.1/x86_64/media/media_info/hdlists
@@ -0,0 +1,2 @@
+hdlist_main.cz media/main Main
+hdlist_contrib.cz media/contrib Contrib
diff --git a/testdata/history/official/10.2/i586/media/media_info/hdlists b/testdata/history/official/10.2/i586/media/media_info/hdlists
new file mode 100644
index 0000000..5831a86
--- /dev/null
+++ b/testdata/history/official/10.2/i586/media/media_info/hdlists
@@ -0,0 +1,3 @@
+hdlist_main.cz media/main Main (3400m)
+hdlist_contrib.cz media/contrib Contrib (4300m)
+hdlist_jpackage.cz media/jpackage Java Contrib
diff --git a/testdata/history/official/10.2/i586/media/media_info/media.cfg b/testdata/history/official/10.2/i586/media/media_info/media.cfg
new file mode 100644
index 0000000..453568d
--- /dev/null
+++ b/testdata/history/official/10.2/i586/media/media_info/media.cfg
@@ -0,0 +1,20 @@
+[media_info]
+version=10.2
+branch=Official
+arch=i586
+
+[main]
+hdlist=hdlist_main.cz
+name=Main
+size=3400m
+
+[contrib]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
+
+[jpackage]
+hdlist=hdlist_jpackage.cz
+name=Jpackage
+size=360m
+noauto=1
diff --git a/testdata/history/official/10.2/x86_64/media/media_info/hdlists b/testdata/history/official/10.2/x86_64/media/media_info/hdlists
new file mode 100644
index 0000000..284614e
--- /dev/null
+++ b/testdata/history/official/10.2/x86_64/media/media_info/hdlists
@@ -0,0 +1,2 @@
+hdlist_main.cz media/main Main
+hdlist_contrib.cz media/contrib Contrib
diff --git a/testdata/history/official/2006.0/i586/media/media_info/hdlists b/testdata/history/official/2006.0/i586/media/media_info/hdlists
new file mode 100644
index 0000000..73e326f
--- /dev/null
+++ b/testdata/history/official/2006.0/i586/media/media_info/hdlists
@@ -0,0 +1,6 @@
+hdlist_main.cz media/main Main (3400m)
+noauto:hdlist_main.src.cz ../SRPMS/main Main Sources
+hdlist_contrib.cz media/contrib Contrib (4300m)
+noauto:hdlist_contrib.src.cz ../SRPMS/contrib Contrib Sources
+noauto:hdlist_jpackage.cz media/jpackage Jpackage (360m)
+noauto:hdlist_jpackage.src.cz ../SRPMS/jpackage Jpackage Sources
diff --git a/testdata/history/official/2006.0/i586/media/media_info/media.cfg b/testdata/history/official/2006.0/i586/media/media_info/media.cfg
new file mode 100644
index 0000000..6a62aab
--- /dev/null
+++ b/testdata/history/official/2006.0/i586/media/media_info/media.cfg
@@ -0,0 +1,36 @@
+[media_info]
+version=2006.0
+branch=Official
+arch=i586
+
+[main]
+hdlist=hdlist_main.cz
+name=Main
+size=3400m
+
+[../SRPMS/main]
+hdlist=hdlist_main.src.cz
+name=Main Sources
+noauto=1
+
+[contrib]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
+
+[../SRPMS/contrib]
+hdlist=hdlist_contrib.src.cz
+name=Contrib Sources
+noauto=1
+
+[jpackage]
+hdlist=hdlist_jpackage.cz
+name=Jpackage
+size=360m
+noauto=1
+
+[../SRPMS/jpackage]
+hdlist=hdlist_jpackage.src.cz
+name=Jpackage Sources
+noauto=1
+
diff --git a/testdata/history/official/2006.0/x86_64/media/media_info/hdlists b/testdata/history/official/2006.0/x86_64/media/media_info/hdlists
new file mode 100644
index 0000000..52837da
--- /dev/null
+++ b/testdata/history/official/2006.0/x86_64/media/media_info/hdlists
@@ -0,0 +1,2 @@
+hdlist_main.cz media/main Main (3400m)
+hdlist_contrib.cz media/contrib Contrib (4300m)
diff --git a/testdata/history/official/2006.0/x86_64/media/media_info/media.cfg b/testdata/history/official/2006.0/x86_64/media/media_info/media.cfg
new file mode 100644
index 0000000..86b33f8
--- /dev/null
+++ b/testdata/history/official/2006.0/x86_64/media/media_info/media.cfg
@@ -0,0 +1,15 @@
+[media_info]
+version=2006.0
+branch=Official
+arch=i586
+
+[main]
+hdlist=hdlist_main.cz
+name=Main
+size=3400m
+
+[contrib]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
+
diff --git a/testdata/history/official/9.0/x86_64/Mandrake/base/hdlists b/testdata/history/official/9.0/x86_64/Mandrake/base/hdlists
new file mode 100644
index 0000000..d0bba10
--- /dev/null
+++ b/testdata/history/official/9.0/x86_64/Mandrake/base/hdlists
@@ -0,0 +1 @@
+hdlist.cz Mandrake/RPMS Installation CD
diff --git a/testdata/history/official/9.1/i586/Mandrake/base/hdlists b/testdata/history/official/9.1/i586/Mandrake/base/hdlists
new file mode 100644
index 0000000..ce20d67
--- /dev/null
+++ b/testdata/history/official/9.1/i586/Mandrake/base/hdlists
@@ -0,0 +1,2 @@
+hdlist.cz Mandrake/RPMS Installation CD
+hdlist2.cz Mandrake/RPMS2 Contrib CD
diff --git a/testdata/history/official/9.1/ppc/Mandrake/base/hdlists b/testdata/history/official/9.1/ppc/Mandrake/base/hdlists
new file mode 100644
index 0000000..190dd72
--- /dev/null
+++ b/testdata/history/official/9.1/ppc/Mandrake/base/hdlists
@@ -0,0 +1,2 @@
+hdlist.cz Mandrake/RPMS CD 1 Installation CD (Mandrake Cooker PPC)
+hdlist2.cz Mandrake/RPMS2 CD 2 Contributions CD (Mandrake Cooker PPC)
diff --git a/testdata/history/official/9.2/i586/Mandrake/base/hdlists b/testdata/history/official/9.2/i586/Mandrake/base/hdlists
new file mode 100644
index 0000000..1bd20e5
--- /dev/null
+++ b/testdata/history/official/9.2/i586/Mandrake/base/hdlists
@@ -0,0 +1,6 @@
+hdlist.cz Mandrake/RPMS Installation CD
+hdlist.src.cz ../SRPMS Installation SRPMS
+hdlist2.cz Mandrake/RPMS2 Contrib
+hdlist2.src.cz ../contrib/SRPMS/ Contrib SRPMS
+hdlist3.cz Mandrake/RPMS3 Jpackage
+hdlist3.src.cz ../contrib/jpackage/SRPMS/ Jpackage SRPMS
diff --git a/testdata/history/old/7.2/i586/Mandrake/base/hdlists b/testdata/history/old/7.2/i586/Mandrake/base/hdlists
new file mode 100644
index 0000000..d0bba10
--- /dev/null
+++ b/testdata/history/old/7.2/i586/Mandrake/base/hdlists
@@ -0,0 +1 @@
+hdlist.cz Mandrake/RPMS Installation CD
diff --git a/testdata/history/old/7.2/sparc/Mandrake/base/hdlists b/testdata/history/old/7.2/sparc/Mandrake/base/hdlists
new file mode 100644
index 0000000..6ef5e8c
--- /dev/null
+++ b/testdata/history/old/7.2/sparc/Mandrake/base/hdlists
@@ -0,0 +1 @@
+hdlist.cz2 Mandrake/RPMS Installation CD
diff --git a/testdata/history/old/8.0/i586/Mandrake/base/hdlists b/testdata/history/old/8.0/i586/Mandrake/base/hdlists
new file mode 100644
index 0000000..d0bba10
--- /dev/null
+++ b/testdata/history/old/8.0/i586/Mandrake/base/hdlists
@@ -0,0 +1 @@
+hdlist.cz Mandrake/RPMS Installation CD
diff --git a/testdata/history/old/8.1/i586/Mandrake/base/hdlists b/testdata/history/old/8.1/i586/Mandrake/base/hdlists
new file mode 100644
index 0000000..d0bba10
--- /dev/null
+++ b/testdata/history/old/8.1/i586/Mandrake/base/hdlists
@@ -0,0 +1 @@
+hdlist.cz Mandrake/RPMS Installation CD
diff --git a/testdata/history/old/8.2/i586/Mandrake/base/hdlists b/testdata/history/old/8.2/i586/Mandrake/base/hdlists
new file mode 100644
index 0000000..ce20d67
--- /dev/null
+++ b/testdata/history/old/8.2/i586/Mandrake/base/hdlists
@@ -0,0 +1,2 @@
+hdlist.cz Mandrake/RPMS Installation CD
+hdlist2.cz Mandrake/RPMS2 Contrib CD
diff --git a/testdata/history/old/8.2/ppc/Mandrake/base/hdlists b/testdata/history/old/8.2/ppc/Mandrake/base/hdlists
new file mode 100644
index 0000000..bbd37f5
--- /dev/null
+++ b/testdata/history/old/8.2/ppc/Mandrake/base/hdlists
@@ -0,0 +1 @@
+hdlist1.cz Mandrake/RPMS CD 1 Installation CD (Mandrake Cooker PPC)
diff --git a/testdata/history/old/9.0/i586/Mandrake/base/hdlists b/testdata/history/old/9.0/i586/Mandrake/base/hdlists
new file mode 100644
index 0000000..ce20d67
--- /dev/null
+++ b/testdata/history/old/9.0/i586/Mandrake/base/hdlists
@@ -0,0 +1,2 @@
+hdlist.cz Mandrake/RPMS Installation CD
+hdlist2.cz Mandrake/RPMS2 Contrib CD
diff --git a/testdata/test/media/media_info/media.cfg b/testdata/test/media/media_info/media.cfg
new file mode 100644
index 0000000..635bb44
--- /dev/null
+++ b/testdata/test/media/media_info/media.cfg
@@ -0,0 +1,42 @@
+# $Id: media.cfg 31934 2005-10-09 22:12:33Z othauvin $
+
+[media_info]
+version=2006.0
+branch=Cooker
+arch=i586
+
+[main]
+hdlist=hdlist_main.cz
+size=3400m
+
+[debug_main]
+debugfor=main
+
+[../SRPMS/main]
+hdlist=hdlist_main.src.cz
+name=Main Sources
+noauto=1
+
+[contrib]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
+
+[debug_contrib]
+debugfor=contrib
+
+[../SRPMS/contrib]
+hdlist=hdlist_contrib.src.cz
+name=Contrib Sources
+noauto=1
+
+[jpackage]
+hdlist=hdlist_jpackage.cz
+name=Jpackage
+size=360m
+noauto=1
+
+[../SRPMS/jpackage]
+hdlist=hdlist_jpackage.src.cz
+name=Jpackage Sources
+noauto=1
diff --git a/testdata/test2/media/media_info/media.cfg b/testdata/test2/media/media_info/media.cfg
new file mode 100644
index 0000000..b8f696c
--- /dev/null
+++ b/testdata/test2/media/media_info/media.cfg
@@ -0,0 +1,43 @@
+# $Id: media.cfg 41762 2006-07-20 19:39:51Z nanardon $
+
+[media_info]
+version=2006.0
+branch=Cooker
+arch=i586
+mediacfg_version=2
+
+[main]
+hdlist=hdlist_main.cz
+size=3400m
+
+[debug_main]
+debugfor=main
+
+[../SRPMS/main]
+hdlist=hdlist_main.src.cz
+name=Main Sources
+noauto=1
+
+[contrib]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
+
+[debug_contrib]
+debugfor=contrib
+
+[../SRPMS/contrib]
+hdlist=hdlist_contrib.src.cz
+name=Contrib Sources
+noauto=1
+
+[jpackage]
+hdlist=hdlist_jpackage.cz
+name=Jpackage
+size=360m
+noauto=1
+
+[../SRPMS/jpackage]
+hdlist=hdlist_jpackage.src.cz
+name=Jpackage Sources
+noauto=1
diff --git a/testdata/test3/media/media_info/media.cfg b/testdata/test3/media/media_info/media.cfg
new file mode 100644
index 0000000..4b1eb73
--- /dev/null
+++ b/testdata/test3/media/media_info/media.cfg
@@ -0,0 +1,43 @@
+# $Id: media.cfg 56863 2006-08-19 00:55:51Z nanardon $
+
+[media_info]
+version=2006.0
+branch=Cooker
+arch=i586
+mediacfg_version=3
+
+[main]
+hdlist=hdlist_main.cz
+size=3400m
+
+[debug_main]
+debugfor=main
+
+[../SRPMS/main]
+hdlist=hdlist_main.src.cz
+name=Main Sources
+noauto=1
+
+[contrib]
+hdlist=hdlist_contrib.cz
+name=Contrib
+size=4300m
+
+[debug_contrib]
+debugfor=contrib
+
+[../SRPMS/contrib]
+hdlist=hdlist_contrib.src.cz
+name=Contrib Sources
+noauto=1
+
+[jpackage]
+hdlist=hdlist_%{name}.cz
+name=jpackage
+size=360m
+noauto=1
+
+[../SRPMS/jpackage]
+hdlist=hdlist_jpackage.src.cz
+name=Jpackage Sources
+noauto=1
diff --git a/testdata/testa/README b/testdata/testa/README
new file mode 100644
index 0000000..d33d4ff
--- /dev/null
+++ b/testdata/testa/README
@@ -0,0 +1,6 @@
+# $Id: README 56863 2006-08-19 00:55:51Z nanardon $
+
+This directory contain a fake of distrib for testing purpose.
+
+It has some problem ! DON'T SOLVE IT !!! Problem are here to check our
+functions works !
diff --git a/testdata/testa/VERSION b/testdata/testa/VERSION
new file mode 100644
index 0000000..af3f6f8
--- /dev/null
+++ b/testdata/testa/VERSION
@@ -0,0 +1 @@
+Mandriva Linux 2006.0 Cooker-i586-Download 20051222 22:54
diff --git a/testdata/testa/media/first/media_info/MD5SUM b/testdata/testa/media/first/media_info/MD5SUM
new file mode 100644
index 0000000..997e82d
--- /dev/null
+++ b/testdata/testa/media/first/media_info/MD5SUM
@@ -0,0 +1,2 @@
+1e705dc97e078a9146e0371932b455d3 hdlist.cz
+4ad1436041ed9f8761d5448a741201ea synthesis.hdlist.cz
diff --git a/testdata/testa/media/first/media_info/hdlist.cz b/testdata/testa/media/first/media_info/hdlist.cz
new file mode 100644
index 0000000..20f37e1
--- /dev/null
+++ b/testdata/testa/media/first/media_info/hdlist.cz
Binary files differ
diff --git a/testdata/testa/media/first/media_info/synthesis.hdlist.cz b/testdata/testa/media/first/media_info/synthesis.hdlist.cz
new file mode 100644
index 0000000..b09c781
--- /dev/null
+++ b/testdata/testa/media/first/media_info/synthesis.hdlist.cz
Binary files differ
diff --git a/testdata/testa/media/first/test-dep-1.0-1mdk.noarch.rpm b/testdata/testa/media/first/test-dep-1.0-1mdk.noarch.rpm
new file mode 100644
index 0000000..1e36db6
--- /dev/null
+++ b/testdata/testa/media/first/test-dep-1.0-1mdk.noarch.rpm
Binary files differ
diff --git a/testdata/testa/media/first/test-rpm-1.0-1mdk.noarch.rpm b/testdata/testa/media/first/test-rpm-1.0-1mdk.noarch.rpm
new file mode 100644
index 0000000..6087dd2
--- /dev/null
+++ b/testdata/testa/media/first/test-rpm-1.0-1mdk.noarch.rpm
Binary files differ
diff --git a/testdata/testa/media/first_debug/aspell-te-debug-0.60.0-1mdk.i586.rpm b/testdata/testa/media/first_debug/aspell-te-debug-0.60.0-1mdk.i586.rpm
new file mode 100644
index 0000000..e9cc786
--- /dev/null
+++ b/testdata/testa/media/first_debug/aspell-te-debug-0.60.0-1mdk.i586.rpm
Binary files differ
diff --git a/testdata/testa/media/first_src/aspell-sr-0.60.0-1mdk.src.rpm b/testdata/testa/media/first_src/aspell-sr-0.60.0-1mdk.src.rpm
new file mode 100644
index 0000000..a8c9d8d
--- /dev/null
+++ b/testdata/testa/media/first_src/aspell-sr-0.60.0-1mdk.src.rpm
Binary files differ
diff --git a/testdata/testa/media/first_src/aspell-te-0.60.0-1mdk.src.rpm b/testdata/testa/media/first_src/aspell-te-0.60.0-1mdk.src.rpm
new file mode 100644
index 0000000..dc379c6
--- /dev/null
+++ b/testdata/testa/media/first_src/aspell-te-0.60.0-1mdk.src.rpm
Binary files differ
diff --git a/testdata/testa/media/first_src/media_info/MD5SUM b/testdata/testa/media/first_src/media_info/MD5SUM
new file mode 100644
index 0000000..7354f81
--- /dev/null
+++ b/testdata/testa/media/first_src/media_info/MD5SUM
@@ -0,0 +1,2 @@
+3e7761b13045a77d450800a1e209e11a hdlist.cz
+2c4193e2be0410d41881faf5a7717606 synthesis.hdlist.cz
diff --git a/testdata/testa/media/first_src/media_info/hdlist.cz b/testdata/testa/media/first_src/media_info/hdlist.cz
new file mode 100644
index 0000000..750fbb6
--- /dev/null
+++ b/testdata/testa/media/first_src/media_info/hdlist.cz
Binary files differ
diff --git a/testdata/testa/media/first_src/media_info/synthesis.hdlist.cz b/testdata/testa/media/first_src/media_info/synthesis.hdlist.cz
new file mode 100644
index 0000000..e818bd2
--- /dev/null
+++ b/testdata/testa/media/first_src/media_info/synthesis.hdlist.cz
Binary files differ
diff --git a/testdata/testa/media/first_src/test-rpm-1.0-1mdk.src.rpm b/testdata/testa/media/first_src/test-rpm-1.0-1mdk.src.rpm
new file mode 100644
index 0000000..8f3730a
--- /dev/null
+++ b/testdata/testa/media/first_src/test-rpm-1.0-1mdk.src.rpm
Binary files differ
diff --git a/testdata/testa/media/media_info/MD5SUM b/testdata/testa/media/media_info/MD5SUM
new file mode 100644
index 0000000..ba96d36
--- /dev/null
+++ b/testdata/testa/media/media_info/MD5SUM
@@ -0,0 +1,9 @@
+1e705dc97e078a9146e0371932b455d3 hdlist_first.cz
+3e7761b13045a77d450800a1e209e11a hdlist_first_src.cz
+9d492ad6ef3149568e7b835a423a7181 hdlists
+84f5daba8171f7a6215287fa7b1bb234 hdlist_second.cz
+1ea71fde296963e01b31ee6cb037f2ac hdlist_second_src.cz
+4ad1436041ed9f8761d5448a741201ea synthesis.hdlist_first.cz
+2c4193e2be0410d41881faf5a7717606 synthesis.hdlist_first_src.cz
+4232ff9fd6dda9adff98457f4dea6b9c synthesis.hdlist_second.cz
+f923d5ff044f52f35c83f9f271584260 synthesis.hdlist_second_src.cz
diff --git a/testdata/testa/media/media_info/compss b/testdata/testa/media/media_info/compss
new file mode 100644
index 0000000..65f0124
--- /dev/null
+++ b/testdata/testa/media/media_info/compss
@@ -0,0 +1,6 @@
+Application/Development
+ test-rpm
+ test-dep
+ test-rpm
+ test-dep
+
diff --git a/testdata/testa/media/media_info/depslist.ordered b/testdata/testa/media/media_info/depslist.ordered
new file mode 100644
index 0000000..c165353
--- /dev/null
+++ b/testdata/testa/media/media_info/depslist.ordered
@@ -0,0 +1,4 @@
+test-rpm-1.0-1mdk.noarch 30
+test-dep-1.0-1mdk.noarch 30 0
+test-rpm-1.0-1mdk.src 594
+test-dep-1.0-1mdk.src 683
diff --git a/testdata/testa/media/media_info/hdlist_first.cz b/testdata/testa/media/media_info/hdlist_first.cz
new file mode 100644
index 0000000..20f37e1
--- /dev/null
+++ b/testdata/testa/media/media_info/hdlist_first.cz
Binary files differ
diff --git a/testdata/testa/media/media_info/hdlist_first_src.cz b/testdata/testa/media/media_info/hdlist_first_src.cz
new file mode 100644
index 0000000..750fbb6
--- /dev/null
+++ b/testdata/testa/media/media_info/hdlist_first_src.cz
Binary files differ
diff --git a/testdata/testa/media/media_info/hdlist_second.cz b/testdata/testa/media/media_info/hdlist_second.cz
new file mode 100644
index 0000000..a534ec3
--- /dev/null
+++ b/testdata/testa/media/media_info/hdlist_second.cz
Binary files differ
diff --git a/testdata/testa/media/media_info/hdlist_second_src.cz b/testdata/testa/media/media_info/hdlist_second_src.cz
new file mode 100644
index 0000000..1540d76
--- /dev/null
+++ b/testdata/testa/media/media_info/hdlist_second_src.cz
Binary files differ
diff --git a/testdata/testa/media/media_info/hdlists b/testdata/testa/media/media_info/hdlists
new file mode 100644
index 0000000..4bcb4a2
--- /dev/null
+++ b/testdata/testa/media/media_info/hdlists
@@ -0,0 +1,4 @@
+hdlist_first.cz media/first first (3400m)
+hdlist_first_src.cz media/first_src first_src
+hdlist_second.cz media/second second
+hdlist_second_src.cz media/second_src second_src (4300m)
diff --git a/testdata/testa/media/media_info/media.cfg b/testdata/testa/media/media_info/media.cfg
new file mode 100644
index 0000000..e75cf7c
--- /dev/null
+++ b/testdata/testa/media/media_info/media.cfg
@@ -0,0 +1,30 @@
+# $Id: media.cfg 56853 2006-08-18 23:01:31Z nanardon $
+
+[media_info]
+version=2006.0
+branch=Cooker
+arch=i586
+
+[first]
+hdlist=hdlist_first.cz
+size=3400m
+srpms=first_src
+
+[first_src]
+hdlist=hdlist_first_src.cz
+rpms=first first_debug
+
+[first_debug]
+hdlist=hdlist_first_debug.cz
+srpms=first_src
+debug_for=first
+
+[second]
+hdlist=hdlist_second.cz
+srpms=second_src
+
+[second_src]
+hdlist=hdlist_second_src.cz
+size=4300m
+rpms=second
+
diff --git a/testdata/testa/media/media_info/provides b/testdata/testa/media/media_info/provides
new file mode 100644
index 0000000..83a8867
--- /dev/null
+++ b/testdata/testa/media/media_info/provides
@@ -0,0 +1,2 @@
+test-rpm@test-rpm-1.0-1mdk.noarch
+test-dep@test-dep-1.0-1mdk.noarch
diff --git a/testdata/testa/media/media_info/synthesis.hdlist_first.cz b/testdata/testa/media/media_info/synthesis.hdlist_first.cz
new file mode 100644
index 0000000..b09c781
--- /dev/null
+++ b/testdata/testa/media/media_info/synthesis.hdlist_first.cz
Binary files differ
diff --git a/testdata/testa/media/media_info/synthesis.hdlist_first_src.cz b/testdata/testa/media/media_info/synthesis.hdlist_first_src.cz
new file mode 100644
index 0000000..e818bd2
--- /dev/null
+++ b/testdata/testa/media/media_info/synthesis.hdlist_first_src.cz
Binary files differ
diff --git a/testdata/testa/media/media_info/synthesis.hdlist_second.cz b/testdata/testa/media/media_info/synthesis.hdlist_second.cz
new file mode 100644
index 0000000..3d19400
--- /dev/null
+++ b/testdata/testa/media/media_info/synthesis.hdlist_second.cz
Binary files differ
diff --git a/testdata/testa/media/media_info/synthesis.hdlist_second_src.cz b/testdata/testa/media/media_info/synthesis.hdlist_second_src.cz
new file mode 100644
index 0000000..0d639d1
--- /dev/null
+++ b/testdata/testa/media/media_info/synthesis.hdlist_second_src.cz
Binary files differ
diff --git a/testdata/testa/media/second/aspell-sr-debug-0.60.0-1mdk.i586.rpm b/testdata/testa/media/second/aspell-sr-debug-0.60.0-1mdk.i586.rpm
new file mode 100644
index 0000000..f329026
--- /dev/null
+++ b/testdata/testa/media/second/aspell-sr-debug-0.60.0-1mdk.i586.rpm
Binary files differ
diff --git a/testdata/testa/media/second/cowsay-3.03-10mdk.noarch.rpm b/testdata/testa/media/second/cowsay-3.03-10mdk.noarch.rpm
new file mode 100644
index 0000000..f61e290
--- /dev/null
+++ b/testdata/testa/media/second/cowsay-3.03-10mdk.noarch.rpm
Binary files differ
diff --git a/testdata/testa/media/second/media_info/MD5SUM b/testdata/testa/media/second/media_info/MD5SUM
new file mode 100644
index 0000000..ad4063d
--- /dev/null
+++ b/testdata/testa/media/second/media_info/MD5SUM
@@ -0,0 +1,2 @@
+84f5daba8171f7a6215287fa7b1bb234 hdlist.cz
+4232ff9fd6dda9adff98457f4dea6b9c synthesis.hdlist.cz
diff --git a/testdata/testa/media/second/media_info/hdlist.cz b/testdata/testa/media/second/media_info/hdlist.cz
new file mode 100644
index 0000000..a534ec3
--- /dev/null
+++ b/testdata/testa/media/second/media_info/hdlist.cz
Binary files differ
diff --git a/testdata/testa/media/second/media_info/synthesis.hdlist.cz b/testdata/testa/media/second/media_info/synthesis.hdlist.cz
new file mode 100644
index 0000000..3d19400
--- /dev/null
+++ b/testdata/testa/media/second/media_info/synthesis.hdlist.cz
Binary files differ
diff --git a/testdata/testa/media/second_src/media_info/MD5SUM b/testdata/testa/media/second_src/media_info/MD5SUM
new file mode 100644
index 0000000..342d2a0
--- /dev/null
+++ b/testdata/testa/media/second_src/media_info/MD5SUM
@@ -0,0 +1,2 @@
+1ea71fde296963e01b31ee6cb0123456 hdlist.cz
+f923d5ff044f52f35c83f9f271584260 synthesis.hdlist.cz
diff --git a/testdata/testa/media/second_src/media_info/hdlist.cz b/testdata/testa/media/second_src/media_info/hdlist.cz
new file mode 100644
index 0000000..1540d76
--- /dev/null
+++ b/testdata/testa/media/second_src/media_info/hdlist.cz
Binary files differ
diff --git a/testdata/testa/media/second_src/media_info/synthesis.hdlist.cz b/testdata/testa/media/second_src/media_info/synthesis.hdlist.cz
new file mode 100644
index 0000000..0d639d1
--- /dev/null
+++ b/testdata/testa/media/second_src/media_info/synthesis.hdlist.cz
Binary files differ
diff --git a/testdata/testa/media/second_src/test-dep-1.0-1mdk.src.rpm b/testdata/testa/media/second_src/test-dep-1.0-1mdk.src.rpm
new file mode 100644
index 0000000..8b09d78
--- /dev/null
+++ b/testdata/testa/media/second_src/test-dep-1.0-1mdk.src.rpm
Binary files differ
diff --git a/testdata/testa/media/specs/test-dep.spec b/testdata/testa/media/specs/test-dep.spec
new file mode 100644
index 0000000..c56756e
--- /dev/null
+++ b/testdata/testa/media/specs/test-dep.spec
@@ -0,0 +1,38 @@
+# $Id: test-dep.spec 31957 2005-12-23 00:01:00Z othauvin $
+Summary: test rpm dependencies for perl-URPM test suite
+BuildArch: noarch
+Name: test-dep
+Version: 1.0
+Release: 1mdk
+License: GPL
+Group: Application/Development
+BuildRoot: %{_tmppath}/%{name}-root
+Requires: test-rpm
+Conflicts: test-rpm
+Obsoletes: test-rpm
+
+%description
+test rpm for dependencies
+
+%prep
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%_sysconfdir
+
+date >> $RPM_BUILD_ROOT%_sysconfdir/%name
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%config(noreplace) %_sysconfdir/%name
+
+%changelog
+* Thu Apr 22 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1-1mdk
+- initial build
+
+
diff --git a/testdata/testa/media/specs/test-rpm.spec b/testdata/testa/media/specs/test-rpm.spec
new file mode 100644
index 0000000..3f26913
--- /dev/null
+++ b/testdata/testa/media/specs/test-rpm.spec
@@ -0,0 +1,35 @@
+# $Id: test-rpm.spec 31957 2005-12-23 00:01:00Z othauvin $
+Summary: test rpm for perl-URPM test suite
+BuildArch: noarch
+Name: test-rpm
+Version: 1.0
+Release: 1mdk
+License: GPL
+Group: Application/Development
+BuildRoot: %{_tmppath}/%{name}-root
+
+%description
+test rpm
+
+%prep
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%_sysconfdir
+
+date >> $RPM_BUILD_ROOT%_sysconfdir/%name
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%config(noreplace) %_sysconfdir/%name
+
+%changelog
+* Thu Apr 22 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1-1mdk
+- initial build
+
+
diff --git a/testdata/testb/README b/testdata/testb/README
new file mode 100644
index 0000000..b62fbbc
--- /dev/null
+++ b/testdata/testb/README
@@ -0,0 +1,6 @@
+# $Id: README 38877 2006-07-12 12:16:51Z nanardon $
+
+This directory contain a fake of distrib for testing purpose.
+
+It has some problem ! DON'T SOLVE IT !!! Problem are here to check our
+functions works !
diff --git a/testdata/testb/VERSION b/testdata/testb/VERSION
new file mode 100644
index 0000000..af3f6f8
--- /dev/null
+++ b/testdata/testb/VERSION
@@ -0,0 +1 @@
+Mandriva Linux 2006.0 Cooker-i586-Download 20051222 22:54
diff --git a/testdata/testb/media/first/media_info/MD5SUM b/testdata/testb/media/first/media_info/MD5SUM
new file mode 100644
index 0000000..997e82d
--- /dev/null
+++ b/testdata/testb/media/first/media_info/MD5SUM
@@ -0,0 +1,2 @@
+1e705dc97e078a9146e0371932b455d3 hdlist.cz
+4ad1436041ed9f8761d5448a741201ea synthesis.hdlist.cz
diff --git a/testdata/testb/media/first_src/media_info/MD5SUM b/testdata/testb/media/first_src/media_info/MD5SUM
new file mode 100644
index 0000000..7354f81
--- /dev/null
+++ b/testdata/testb/media/first_src/media_info/MD5SUM
@@ -0,0 +1,2 @@
+3e7761b13045a77d450800a1e209e11a hdlist.cz
+2c4193e2be0410d41881faf5a7717606 synthesis.hdlist.cz
diff --git a/testdata/testb/media/media_info/MD5SUM b/testdata/testb/media/media_info/MD5SUM
new file mode 100644
index 0000000..ba96d36
--- /dev/null
+++ b/testdata/testb/media/media_info/MD5SUM
@@ -0,0 +1,9 @@
+1e705dc97e078a9146e0371932b455d3 hdlist_first.cz
+3e7761b13045a77d450800a1e209e11a hdlist_first_src.cz
+9d492ad6ef3149568e7b835a423a7181 hdlists
+84f5daba8171f7a6215287fa7b1bb234 hdlist_second.cz
+1ea71fde296963e01b31ee6cb037f2ac hdlist_second_src.cz
+4ad1436041ed9f8761d5448a741201ea synthesis.hdlist_first.cz
+2c4193e2be0410d41881faf5a7717606 synthesis.hdlist_first_src.cz
+4232ff9fd6dda9adff98457f4dea6b9c synthesis.hdlist_second.cz
+f923d5ff044f52f35c83f9f271584260 synthesis.hdlist_second_src.cz
diff --git a/testdata/testb/media/media_info/compss b/testdata/testb/media/media_info/compss
new file mode 100644
index 0000000..65f0124
--- /dev/null
+++ b/testdata/testb/media/media_info/compss
@@ -0,0 +1,6 @@
+Application/Development
+ test-rpm
+ test-dep
+ test-rpm
+ test-dep
+
diff --git a/testdata/testb/media/media_info/depslist.ordered b/testdata/testb/media/media_info/depslist.ordered
new file mode 100644
index 0000000..c165353
--- /dev/null
+++ b/testdata/testb/media/media_info/depslist.ordered
@@ -0,0 +1,4 @@
+test-rpm-1.0-1mdk.noarch 30
+test-dep-1.0-1mdk.noarch 30 0
+test-rpm-1.0-1mdk.src 594
+test-dep-1.0-1mdk.src 683
diff --git a/testdata/testb/media/media_info/hdlists b/testdata/testb/media/media_info/hdlists
new file mode 100644
index 0000000..4bcb4a2
--- /dev/null
+++ b/testdata/testb/media/media_info/hdlists
@@ -0,0 +1,4 @@
+hdlist_first.cz media/first first (3400m)
+hdlist_first_src.cz media/first_src first_src
+hdlist_second.cz media/second second
+hdlist_second_src.cz media/second_src second_src (4300m)
diff --git a/testdata/testb/media/media_info/media.cfg b/testdata/testb/media/media_info/media.cfg
new file mode 100644
index 0000000..4bc51f0
--- /dev/null
+++ b/testdata/testb/media/media_info/media.cfg
@@ -0,0 +1,30 @@
+# $Id: media.cfg 38877 2006-07-12 12:16:51Z nanardon $
+
+[media_info]
+version=2006.0
+branch=Cooker
+arch=i586
+
+[first]
+hdlist=hdlist_first.cz
+size=3400m
+srpms=first_src
+
+[first_src]
+hdlist=hdlist_first_src.cz
+rpms=first first_debug
+
+[first_debug]
+hdlist=hdlist_first_debug.cz
+srpms=first_src
+debug_for=first
+
+[second]
+hdlist=hdlist_second.cz
+srpms=second_src
+
+[second_src]
+hdlist=hdlist_second_src.cz
+size=4300m
+rpms=second
+
diff --git a/testdata/testb/media/media_info/provides b/testdata/testb/media/media_info/provides
new file mode 100644
index 0000000..83a8867
--- /dev/null
+++ b/testdata/testb/media/media_info/provides
@@ -0,0 +1,2 @@
+test-rpm@test-rpm-1.0-1mdk.noarch
+test-dep@test-dep-1.0-1mdk.noarch
diff --git a/testdata/testb/media/second/media_info/MD5SUM b/testdata/testb/media/second/media_info/MD5SUM
new file mode 100644
index 0000000..ad4063d
--- /dev/null
+++ b/testdata/testb/media/second/media_info/MD5SUM
@@ -0,0 +1,2 @@
+84f5daba8171f7a6215287fa7b1bb234 hdlist.cz
+4232ff9fd6dda9adff98457f4dea6b9c synthesis.hdlist.cz
diff --git a/testdata/testb/media/second_src/media_info/MD5SUM b/testdata/testb/media/second_src/media_info/MD5SUM
new file mode 100644
index 0000000..342d2a0
--- /dev/null
+++ b/testdata/testb/media/second_src/media_info/MD5SUM
@@ -0,0 +1,2 @@
+1ea71fde296963e01b31ee6cb0123456 hdlist.cz
+f923d5ff044f52f35c83f9f271584260 synthesis.hdlist.cz