From 5a66423d2da34baf0896cf7781868989464b548f Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Mon, 2 Jul 2007 13:10:35 +0000 Subject: - resync lost file after svn crash --- ChangeLog | 762 +++++++++++++++++++++ lib/MDV/Distribconf.pm | 55 +- lib/MDV/Distribconf/Checks.pm | 392 +++++++++++ lib/MDV/Distribconf/MediaCFG.pm | 13 +- t/01history.t | 20 + t/03checks.t | 22 + t/04mediacfg.t | 29 + .../history/devel/10.0/amd64/Mandrake/base/hdlists | 2 + .../history/devel/10.0/i586/Mandrake/base/hdlists | 6 + .../devel/10.1/i586/media/media_info/hdlists | 3 + .../devel/10.1/ppc/media/media_info/hdlists | 2 + .../devel/10.2/i586/media/media_info/hdlists | 3 + .../devel/10.2/i586/media/media_info/media.cfg | 35 + .../devel/10.2/ppc/media/media_info/hdlists | 2 + .../devel/10.2/x86_64/media/media_info/hdlists | 2 + .../devel/2006.0/i586/media/media_info/hdlists | 6 + .../devel/2006.0/i586/media/media_info/media.cfg | 35 + .../devel/2006.0/x86_64/media/media_info/hdlists | 2 + .../devel/2006.0/x86_64/media/media_info/media.cfg | 14 + .../devel/2007.0/i586/media/media_info/hdlists | 11 + .../devel/2007.0/i586/media/media_info/media.cfg | 71 ++ .../devel/2007.0/x86_64/media/media_info/hdlists | 7 + .../devel/2007.0/x86_64/media/media_info/media.cfg | 40 ++ .../devel/cooker/i586/media/media_info/hdlists | 11 + .../devel/cooker/i586/media/media_info/media.cfg | 71 ++ .../devel/cooker/ia64/media/media_info/hdlists | 4 + .../devel/cooker/ppc/media/media_info/hdlists | 2 + .../devel/cooker/ppc/media/media_info/media.cfg | 15 + .../devel/cooker/sparc/media/media_info/hdlists | 4 + .../devel/cooker/sparc/media/media_info/media.cfg | 23 + .../devel/cooker/sparc64/media/media_info/hdlists | 4 + .../cooker/sparc64/media/media_info/media.cfg | 23 + .../devel/cooker/x86_64/media/media_info/hdlists | 7 + .../devel/cooker/x86_64/media/media_info/media.cfg | 40 ++ .../official/10.0/i586/Mandrake/base/hdlists | 6 + .../official/10.1/i586/media/media_info/hdlists | 3 + .../official/10.1/x86_64/media/media_info/hdlists | 2 + .../official/10.2/i586/media/media_info/hdlists | 3 + .../official/10.2/i586/media/media_info/media.cfg | 20 + .../official/10.2/x86_64/media/media_info/hdlists | 2 + .../official/2006.0/i586/media/media_info/hdlists | 6 + .../2006.0/i586/media/media_info/media.cfg | 36 + .../2006.0/x86_64/media/media_info/hdlists | 2 + .../2006.0/x86_64/media/media_info/media.cfg | 15 + .../official/9.0/x86_64/Mandrake/base/hdlists | 1 + .../official/9.1/i586/Mandrake/base/hdlists | 2 + .../history/official/9.1/ppc/Mandrake/base/hdlists | 2 + .../official/9.2/i586/Mandrake/base/hdlists | 6 + .../history/old/7.2/i586/Mandrake/base/hdlists | 1 + .../history/old/7.2/sparc/Mandrake/base/hdlists | 1 + .../history/old/8.0/i586/Mandrake/base/hdlists | 1 + .../history/old/8.1/i586/Mandrake/base/hdlists | 1 + .../history/old/8.2/i586/Mandrake/base/hdlists | 2 + testdata/history/old/8.2/ppc/Mandrake/base/hdlists | 1 + .../history/old/9.0/i586/Mandrake/base/hdlists | 2 + testdata/test/media/media_info/media.cfg | 42 ++ testdata/test2/media/media_info/media.cfg | 43 ++ testdata/test3/media/media_info/media.cfg | 43 ++ testdata/testa/README | 6 + testdata/testa/VERSION | 1 + testdata/testa/media/first/media_info/MD5SUM | 2 + testdata/testa/media/first/media_info/hdlist.cz | Bin 0 -> 1729 bytes .../media/first/media_info/synthesis.hdlist.cz | Bin 0 -> 180 bytes .../testa/media/first/test-dep-1.0-1mdk.noarch.rpm | Bin 0 -> 2285 bytes .../testa/media/first/test-rpm-1.0-1mdk.noarch.rpm | Bin 0 -> 2036 bytes .../aspell-te-debug-0.60.0-1mdk.i586.rpm | Bin 0 -> 1859 bytes .../media/first_src/aspell-sr-0.60.0-1mdk.src.rpm | Bin 0 -> 578416 bytes .../media/first_src/aspell-te-0.60.0-1mdk.src.rpm | Bin 0 -> 312718 bytes testdata/testa/media/first_src/media_info/MD5SUM | 2 + .../testa/media/first_src/media_info/hdlist.cz | Bin 0 -> 996 bytes .../media/first_src/media_info/synthesis.hdlist.cz | Bin 0 -> 113 bytes .../media/first_src/test-rpm-1.0-1mdk.src.rpm | Bin 0 -> 2137 bytes testdata/testa/media/media_info/MD5SUM | 9 + testdata/testa/media/media_info/compss | 6 + testdata/testa/media/media_info/depslist.ordered | 4 + testdata/testa/media/media_info/hdlist_first.cz | Bin 0 -> 1729 bytes .../testa/media/media_info/hdlist_first_src.cz | Bin 0 -> 996 bytes testdata/testa/media/media_info/hdlist_second.cz | Bin 0 -> 64 bytes .../testa/media/media_info/hdlist_second_src.cz | Bin 0 -> 1002 bytes testdata/testa/media/media_info/hdlists | 4 + testdata/testa/media/media_info/media.cfg | 30 + testdata/testa/media/media_info/provides | 2 + .../media/media_info/synthesis.hdlist_first.cz | Bin 0 -> 180 bytes .../media/media_info/synthesis.hdlist_first_src.cz | Bin 0 -> 113 bytes .../media/media_info/synthesis.hdlist_second.cz | Bin 0 -> 20 bytes .../media_info/synthesis.hdlist_second_src.cz | Bin 0 -> 122 bytes .../second/aspell-sr-debug-0.60.0-1mdk.i586.rpm | Bin 0 -> 1859 bytes .../media/second/cowsay-3.03-10mdk.noarch.rpm | Bin 0 -> 23726 bytes testdata/testa/media/second/media_info/MD5SUM | 2 + testdata/testa/media/second/media_info/hdlist.cz | Bin 0 -> 64 bytes .../media/second/media_info/synthesis.hdlist.cz | Bin 0 -> 20 bytes testdata/testa/media/second_src/media_info/MD5SUM | 2 + .../testa/media/second_src/media_info/hdlist.cz | Bin 0 -> 1002 bytes .../second_src/media_info/synthesis.hdlist.cz | Bin 0 -> 122 bytes .../media/second_src/test-dep-1.0-1mdk.src.rpm | Bin 0 -> 2213 bytes testdata/testa/media/specs/test-dep.spec | 38 + testdata/testa/media/specs/test-rpm.spec | 35 + testdata/testb/README | 6 + testdata/testb/VERSION | 1 + testdata/testb/media/first/media_info/MD5SUM | 2 + testdata/testb/media/first_src/media_info/MD5SUM | 2 + testdata/testb/media/media_info/MD5SUM | 9 + testdata/testb/media/media_info/compss | 6 + testdata/testb/media/media_info/depslist.ordered | 4 + testdata/testb/media/media_info/hdlists | 4 + testdata/testb/media/media_info/media.cfg | 30 + testdata/testb/media/media_info/provides | 2 + testdata/testb/media/second/media_info/MD5SUM | 2 + testdata/testb/media/second_src/media_info/MD5SUM | 2 + 109 files changed, 2180 insertions(+), 14 deletions(-) create mode 100644 ChangeLog create mode 100644 lib/MDV/Distribconf/Checks.pm create mode 100644 t/01history.t create mode 100644 t/03checks.t create mode 100644 t/04mediacfg.t create mode 100644 testdata/history/devel/10.0/amd64/Mandrake/base/hdlists create mode 100644 testdata/history/devel/10.0/i586/Mandrake/base/hdlists create mode 100644 testdata/history/devel/10.1/i586/media/media_info/hdlists create mode 100644 testdata/history/devel/10.1/ppc/media/media_info/hdlists create mode 100644 testdata/history/devel/10.2/i586/media/media_info/hdlists create mode 100644 testdata/history/devel/10.2/i586/media/media_info/media.cfg create mode 100644 testdata/history/devel/10.2/ppc/media/media_info/hdlists create mode 100644 testdata/history/devel/10.2/x86_64/media/media_info/hdlists create mode 100644 testdata/history/devel/2006.0/i586/media/media_info/hdlists create mode 100644 testdata/history/devel/2006.0/i586/media/media_info/media.cfg create mode 100644 testdata/history/devel/2006.0/x86_64/media/media_info/hdlists create mode 100644 testdata/history/devel/2006.0/x86_64/media/media_info/media.cfg create mode 100644 testdata/history/devel/2007.0/i586/media/media_info/hdlists create mode 100644 testdata/history/devel/2007.0/i586/media/media_info/media.cfg create mode 100644 testdata/history/devel/2007.0/x86_64/media/media_info/hdlists create mode 100644 testdata/history/devel/2007.0/x86_64/media/media_info/media.cfg create mode 100644 testdata/history/devel/cooker/i586/media/media_info/hdlists create mode 100644 testdata/history/devel/cooker/i586/media/media_info/media.cfg create mode 100644 testdata/history/devel/cooker/ia64/media/media_info/hdlists create mode 100644 testdata/history/devel/cooker/ppc/media/media_info/hdlists create mode 100644 testdata/history/devel/cooker/ppc/media/media_info/media.cfg create mode 100644 testdata/history/devel/cooker/sparc/media/media_info/hdlists create mode 100644 testdata/history/devel/cooker/sparc/media/media_info/media.cfg create mode 100644 testdata/history/devel/cooker/sparc64/media/media_info/hdlists create mode 100644 testdata/history/devel/cooker/sparc64/media/media_info/media.cfg create mode 100644 testdata/history/devel/cooker/x86_64/media/media_info/hdlists create mode 100644 testdata/history/devel/cooker/x86_64/media/media_info/media.cfg create mode 100644 testdata/history/official/10.0/i586/Mandrake/base/hdlists create mode 100644 testdata/history/official/10.1/i586/media/media_info/hdlists create mode 100644 testdata/history/official/10.1/x86_64/media/media_info/hdlists create mode 100644 testdata/history/official/10.2/i586/media/media_info/hdlists create mode 100644 testdata/history/official/10.2/i586/media/media_info/media.cfg create mode 100644 testdata/history/official/10.2/x86_64/media/media_info/hdlists create mode 100644 testdata/history/official/2006.0/i586/media/media_info/hdlists create mode 100644 testdata/history/official/2006.0/i586/media/media_info/media.cfg create mode 100644 testdata/history/official/2006.0/x86_64/media/media_info/hdlists create mode 100644 testdata/history/official/2006.0/x86_64/media/media_info/media.cfg create mode 100644 testdata/history/official/9.0/x86_64/Mandrake/base/hdlists create mode 100644 testdata/history/official/9.1/i586/Mandrake/base/hdlists create mode 100644 testdata/history/official/9.1/ppc/Mandrake/base/hdlists create mode 100644 testdata/history/official/9.2/i586/Mandrake/base/hdlists create mode 100644 testdata/history/old/7.2/i586/Mandrake/base/hdlists create mode 100644 testdata/history/old/7.2/sparc/Mandrake/base/hdlists create mode 100644 testdata/history/old/8.0/i586/Mandrake/base/hdlists create mode 100644 testdata/history/old/8.1/i586/Mandrake/base/hdlists create mode 100644 testdata/history/old/8.2/i586/Mandrake/base/hdlists create mode 100644 testdata/history/old/8.2/ppc/Mandrake/base/hdlists create mode 100644 testdata/history/old/9.0/i586/Mandrake/base/hdlists create mode 100644 testdata/test/media/media_info/media.cfg create mode 100644 testdata/test2/media/media_info/media.cfg create mode 100644 testdata/test3/media/media_info/media.cfg create mode 100644 testdata/testa/README create mode 100644 testdata/testa/VERSION create mode 100644 testdata/testa/media/first/media_info/MD5SUM create mode 100644 testdata/testa/media/first/media_info/hdlist.cz create mode 100644 testdata/testa/media/first/media_info/synthesis.hdlist.cz create mode 100644 testdata/testa/media/first/test-dep-1.0-1mdk.noarch.rpm create mode 100644 testdata/testa/media/first/test-rpm-1.0-1mdk.noarch.rpm create mode 100644 testdata/testa/media/first_debug/aspell-te-debug-0.60.0-1mdk.i586.rpm create mode 100644 testdata/testa/media/first_src/aspell-sr-0.60.0-1mdk.src.rpm create mode 100644 testdata/testa/media/first_src/aspell-te-0.60.0-1mdk.src.rpm create mode 100644 testdata/testa/media/first_src/media_info/MD5SUM create mode 100644 testdata/testa/media/first_src/media_info/hdlist.cz create mode 100644 testdata/testa/media/first_src/media_info/synthesis.hdlist.cz create mode 100644 testdata/testa/media/first_src/test-rpm-1.0-1mdk.src.rpm create mode 100644 testdata/testa/media/media_info/MD5SUM create mode 100644 testdata/testa/media/media_info/compss create mode 100644 testdata/testa/media/media_info/depslist.ordered create mode 100644 testdata/testa/media/media_info/hdlist_first.cz create mode 100644 testdata/testa/media/media_info/hdlist_first_src.cz create mode 100644 testdata/testa/media/media_info/hdlist_second.cz create mode 100644 testdata/testa/media/media_info/hdlist_second_src.cz create mode 100644 testdata/testa/media/media_info/hdlists create mode 100644 testdata/testa/media/media_info/media.cfg create mode 100644 testdata/testa/media/media_info/provides create mode 100644 testdata/testa/media/media_info/synthesis.hdlist_first.cz create mode 100644 testdata/testa/media/media_info/synthesis.hdlist_first_src.cz create mode 100644 testdata/testa/media/media_info/synthesis.hdlist_second.cz create mode 100644 testdata/testa/media/media_info/synthesis.hdlist_second_src.cz create mode 100644 testdata/testa/media/second/aspell-sr-debug-0.60.0-1mdk.i586.rpm create mode 100644 testdata/testa/media/second/cowsay-3.03-10mdk.noarch.rpm create mode 100644 testdata/testa/media/second/media_info/MD5SUM create mode 100644 testdata/testa/media/second/media_info/hdlist.cz create mode 100644 testdata/testa/media/second/media_info/synthesis.hdlist.cz create mode 100644 testdata/testa/media/second_src/media_info/MD5SUM create mode 100644 testdata/testa/media/second_src/media_info/hdlist.cz create mode 100644 testdata/testa/media/second_src/media_info/synthesis.hdlist.cz create mode 100644 testdata/testa/media/second_src/test-dep-1.0-1mdk.src.rpm create mode 100644 testdata/testa/media/specs/test-dep.spec create mode 100644 testdata/testa/media/specs/test-rpm.spec create mode 100644 testdata/testb/README create mode 100644 testdata/testb/VERSION create mode 100644 testdata/testb/media/first/media_info/MD5SUM create mode 100644 testdata/testb/media/first_src/media_info/MD5SUM create mode 100644 testdata/testb/media/media_info/MD5SUM create mode 100644 testdata/testb/media/media_info/compss create mode 100644 testdata/testb/media/media_info/depslist.ordered create mode 100644 testdata/testb/media/media_info/hdlists create mode 100644 testdata/testb/media/media_info/media.cfg create mode 100644 testdata/testb/media/media_info/provides create mode 100644 testdata/testb/media/second/media_info/MD5SUM create mode 100644 testdata/testb/media/second_src/media_info/MD5SUM diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..093ada8 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,762 @@ +2007-02-19 11:06 nanardon + + * soft/rpm/MDV-Distribconf/trunk/bin/gendistrib2: - make it silent + when asked + +2007-02-19 11:05 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm: - + all synthesis should be regenerate if one media change + +2007-02-19 11:03 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Utils.pm: - + considere rpm more recent than index needing to be repacked + +2007-02-19 08:38 nanardon + + * soft/rpm/MDV-Distribconf/trunk/bin/gendistrib2: - move pod usage + part around option parsing + +2007-02-19 08:35 nanardon + + * soft/rpm/MDV-Distribconf/trunk/bin/gendistrib2: - + perltidyfication + +2007-02-19 08:34 nanardon + + * soft/rpm/MDV-Distribconf/trunk/bin/gendistrib2: - readd pod from + old gendistrib + +2007-02-19 08:30 nanardon + + * soft/rpm/MDV-Distribconf/trunk/bin/gendistrib2: - add notice + about --skipmissingdir + +2007-02-18 23:49 nanardon + + * soft/rpm/MDV-Distribconf/trunk/bin/gendistrib2, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm: - + improve lazyness in case of no media change + +2007-02-18 23:15 nanardon + + * soft/rpm/MDV-Distribconf/trunk/bin/gendistrib2: - allow to use + --mediacfg option + +2006-10-20 18:55 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/MediaCFG.pm: - + fix doc for some options + +2006-09-09 23:44 nanardon + + * soft/rpm/MDV-Distribconf/trunk/MANIFEST, + soft/rpm/MDV-Distribconf/trunk/bin/gendistrib2, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm: - + add function for a new gendistrib + +2006-09-08 15:15 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm: - + add productid management + +2006-09-03 04:46 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm, + soft/rpm/MDV-Distribconf/trunk/t/05build.t: - changing a value + friendly set the peer one + +2006-09-03 04:44 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - fix + getfullpath root + +2006-09-01 01:56 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm: - + add init() and create_media() + +2006-09-01 01:32 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - take + mediainfodir into account + +2006-09-01 00:10 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Checks.pm: - + cleanup + checks does not need Build + +2006-08-28 12:33 rafael + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Checks.pm, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/MediaCFG.pm, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Utils.pm: + English spelling fixes + +2006-08-24 22:50 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/MDV-Distribconf/trunk/t/01distribconf.t: - fix + getpath(undef, 'infodir') + +2006-08-24 21:10 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - + perl_checker fix + +2006-08-24 18:39 tv + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: minimal + changes to make it parsable by perl_checker + +2006-08-24 16:24 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm: - + fix VERSION for CPAN + +2006-08-24 16:09 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: 3.04 + +2006-08-24 16:08 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/MediaCFG.pm: - + more know variables + - improve doc + - minor fixes + +2006-08-24 16:07 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Checks.pm: - + use functions from Utils + - add version + - improve doc + +2006-08-24 16:05 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Utils.pm: add + SEE ALSO + +2006-08-24 16:03 nanardon + + * soft/rpm/MDV-Distribconf/trunk/MANIFEST, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Utils.pm: add + Utils.pm for common functions + +2006-08-23 08:58 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/MediaCFG.pm: - + fix typo + +2006-08-23 08:25 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - add + empty line to fix pod doc + +2006-08-23 04:16 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Checks.pm: - + fix dir existance + +2006-08-22 13:11 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - more doc + +2006-08-22 10:43 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Checks.pm, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/MediaCFG.pm: - + add updates_for var + - generalize some test + - add test for deny value + +2006-08-22 01:06 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Checks.pm: - + check also synthesis existence before saying a media is sync + +2006-08-22 00:50 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - add + MD5SUM as supported value + +2006-08-22 00:40 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Checks.pm, + soft/rpm/MDV-Distribconf/trunk/t/01distribconf.t: - add + getmediapath variant function, improve tests + +2006-08-21 21:17 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - on the + road for 3.02 + +2006-08-21 21:12 nanardon + + * soft/rpm/MDV-Distribconf/trunk/MANIFEST: - update MANIFEST + +2006-08-21 21:10 nanardon + + * soft/rpm/MDV-Distribconf/trunk/MANIFEST, + soft/rpm/MDV-Distribconf/trunk/t/01history.t: - fix tests for old + distrib + +2006-08-21 21:08 nanardon + + * soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.0/alpha: - + remove broken dist + +2006-08-21 21:00 nanardon + + * soft/rpm/MDV-Distribconf/trunk/t/01history.t, + soft/rpm/MDV-Distribconf/trunk/testdata/history, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.0, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.0/amd64, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.0/amd64/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.0/amd64/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.0/amd64/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.0/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.0/i586/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.0/i586/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.0/i586/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.1, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.1/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.1/i586/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.1/i586/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.1/i586/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.1/ppc, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.1/ppc/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.1/ppc/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.1/ppc/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/i586/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/i586/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/i586/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/i586/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/ppc, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/ppc/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/ppc/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/ppc/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/x86_64, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/x86_64/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/x86_64/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/10.2/x86_64/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2006.0, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2006.0/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2006.0/i586/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2006.0/i586/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2006.0/i586/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2006.0/i586/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2006.0/x86_64, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2006.0/x86_64/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2006.0/x86_64/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2006.0/x86_64/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2006.0/x86_64/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2007.0, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2007.0/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2007.0/i586/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2007.0/i586/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2007.0/i586/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2007.0/i586/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2007.0/x86_64, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2007.0/x86_64/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2007.0/x86_64/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2007.0/x86_64/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/2007.0/x86_64/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/i586/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/i586/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/i586/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/i586/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/ia64, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/ia64/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/ia64/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/ia64/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/ppc, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/ppc/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/ppc/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/ppc/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/ppc/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/sparc, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/sparc/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/sparc/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/sparc/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/sparc/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/sparc64, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/sparc64/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/sparc64/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/sparc64/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/sparc64/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/x86_64, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/x86_64/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/x86_64/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/x86_64/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/devel/cooker/x86_64/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.0, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.0/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.0/i586/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.0/i586/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.0/i586/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.1, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.1/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.1/i586/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.1/i586/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.1/i586/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.1/x86_64, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.1/x86_64/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.1/x86_64/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.1/x86_64/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.2, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.2/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.2/i586/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.2/i586/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.2/i586/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.2/i586/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.2/x86_64, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.2/x86_64/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.2/x86_64/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/10.2/x86_64/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/2006.0, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/2006.0/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/2006.0/i586/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/2006.0/i586/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/2006.0/i586/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/2006.0/i586/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/2006.0/x86_64, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/2006.0/x86_64/media, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/2006.0/x86_64/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/2006.0/x86_64/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/2006.0/x86_64/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.0, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.0/x86_64, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.0/x86_64/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.0/x86_64/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.0/x86_64/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.1, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.1/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.1/i586/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.1/i586/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.1/i586/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.1/ppc, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.1/ppc/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.1/ppc/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.1/ppc/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.2, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.2/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.2/i586/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.2/i586/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/official/9.2/i586/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/7.2, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/7.2/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/7.2/i586/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/7.2/i586/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/7.2/i586/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/7.2/sparc, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/7.2/sparc/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/7.2/sparc/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/7.2/sparc/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.0, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.0/alpha, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.0/alpha/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.0/alpha/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.0/alpha/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.0/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.0/i586/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.0/i586/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.0/i586/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.1, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.1/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.1/i586/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.1/i586/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.1/i586/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.2, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.2/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.2/i586/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.2/i586/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.2/i586/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.2/ppc, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.2/ppc/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.2/ppc/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/8.2/ppc/Mandrake/base/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/9.0, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/9.0/i586, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/9.0/i586/Mandrake, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/9.0/i586/Mandrake/base, + soft/rpm/MDV-Distribconf/trunk/testdata/history/old/9.0/i586/Mandrake/base/hdlists: + - add test over all old mdv on mirrors + +2006-08-21 14:34 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Checks.pm: - + better error handling + +2006-08-21 12:02 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/MediaCFG.pm: - + fix version to please CPAN + +2006-08-21 10:22 nanardon + + * soft/rpm/MDV-Distribconf/trunk/MANIFEST: - update MANIFEST + +2006-08-21 10:21 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Checks.pm, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/MediaCFG.pm: - + update check and doc + +2006-08-21 10:19 nanardon + + * soft/rpm/MDV-Distribconf/trunk/bin/checkdistrib: - output to + STDOUT + +2006-08-21 10:18 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/MDV-Distribconf/trunk/testdata/test3, + soft/rpm/MDV-Distribconf/trunk/testdata/test3/media, + soft/rpm/MDV-Distribconf/trunk/testdata/test3/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata/test3/media/media_info/media.cfg: + - add support of variable + +2006-08-21 10:16 nanardon + + * soft/rpm/MDV-Distribconf/trunk/t/01distribconf.t, + soft/rpm/MDV-Distribconf/trunk/t/03checks.t, + soft/rpm/MDV-Distribconf/trunk/t/04mediacfg.t, + soft/rpm/MDV-Distribconf/trunk/testdata/test3, + soft/rpm/MDV-Distribconf/trunk/testdata/test4, + soft/rpm/MDV-Distribconf/trunk/testdata/testa, + soft/rpm/MDV-Distribconf/trunk/testdata/testb: - rename test + files to keep testN for main version + +2006-08-19 12:44 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/MediaCFG.pm: - + fix typo + +2006-08-19 01:17 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Checks.pm: - + check name overlapping + +2006-08-19 01:16 nanardon + + * soft/rpm/MDV-Distribconf/trunk/MANIFEST, + soft/rpm/MDV-Distribconf/trunk/Makefile.PL: - add checkdistrib + tool + +2006-08-19 00:55 nanardon + + * soft/rpm/MDV-Distribconf/trunk/MANIFEST, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Checks.pm, + soft/rpm/MDV-Distribconf/trunk/t/01distribconf.t, + soft/rpm/MDV-Distribconf/trunk/t/04mediacfg.t, + soft/rpm/MDV-Distribconf/trunk/test, + soft/rpm/MDV-Distribconf/trunk/test2, + soft/rpm/MDV-Distribconf/trunk/testdata/README, + soft/rpm/MDV-Distribconf/trunk/testdata/VERSION, + soft/rpm/MDV-Distribconf/trunk/testdata/media, + soft/rpm/MDV-Distribconf/trunk/testdata/test, + soft/rpm/MDV-Distribconf/trunk/testdata/test2, + soft/rpm/MDV-Distribconf/trunk/testdata/test3, + soft/rpm/MDV-Distribconf/trunk/testdata/test3/README, + soft/rpm/MDV-Distribconf/trunk/testdata/test3/VERSION, + soft/rpm/MDV-Distribconf/trunk/testdata/test3/media, + soft/rpm/MDV-Distribconf/trunk/testdata/test4, + soft/rpm/MDV-Distribconf/trunk/testdata2: - group test + directories + - add mediaexists functions + - fix some test + +2006-08-18 23:17 nanardon + + * soft/rpm/MDV-Distribconf/trunk/bin/checkdistrib, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm, + soft/rpm/MDV-Distribconf/trunk/t/04mediacfg.t: - avoid + dependencies on main modules + +2006-08-18 23:01 nanardon + + * soft/rpm/MDV-Distribconf/trunk/MANIFEST, + soft/rpm/MDV-Distribconf/trunk/bin, + soft/rpm/MDV-Distribconf/trunk/bin/checkdistrib, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/Checks.pm, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/MediaCFG.pm, + soft/rpm/MDV-Distribconf/trunk/t/03checks.t, + soft/rpm/MDV-Distribconf/trunk/t/03mediacfg.t, + soft/rpm/MDV-Distribconf/trunk/t/04mediacfg.t, + soft/rpm/MDV-Distribconf/trunk/testdata, + soft/rpm/MDV-Distribconf/trunk/testdata/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata2, + soft/rpm/MDV-Distribconf/trunk/testdata2/README, + soft/rpm/MDV-Distribconf/trunk/testdata2/VERSION, + soft/rpm/MDV-Distribconf/trunk/testdata2/media, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/first, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/first/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/first/media_info/MD5SUM, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/first_debug, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/first_src, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/first_src/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/first_src/media_info/MD5SUM, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/media_info/MD5SUM, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/media_info/compss, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/media_info/depslist.ordered, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/media_info/hdlists, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/media_info/media.cfg, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/media_info/provides, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/second, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/second/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/second/media_info/MD5SUM, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/second_src, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/second_src/media_info, + soft/rpm/MDV-Distribconf/trunk/testdata2/media/second_src/media_info/MD5SUM: + - add check distrib functionnalities + +2006-08-18 15:35 nanardon + + * soft/rpm/MDV-Distribconf/trunk/ChangeLog, + soft/rpm/MDV-Distribconf/trunk/Makefile.PL, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - 0.03 + +2006-08-18 14:09 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/MediaCFG.pm, + soft/rpm/MDV-Distribconf/trunk/t/03mediacfg.t: - more test, + provide basic functions + +2006-08-18 10:36 nanardon + + * soft/rpm/MDV-Distribconf/trunk/MANIFEST, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf/MediaCFG.pm, + soft/rpm/MDV-Distribconf/trunk/t/03mediacfg.t: - add + MDV::Distribconf::MediaCFG + +2006-08-01 09:51 rafael + + * soft/rpm/MDV-Distribconf/trunk/.cvsignore, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: Nits, + copyright, english fixes + +2006-07-24 13:59 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - fix bug + about global path value + +2006-07-24 13:58 nanardon + + * soft/rpm/MDV-Distribconf/trunk/t/01distribconf.t: - factorize + test for all media_cfg version + +2006-07-24 13:53 nanardon + + * soft/rpm/MDV-Distribconf/trunk/t/01distribconf.t: - remove + useless print + +2006-07-20 20:15 nanardon + + * soft/rpm/MDV-Distribconf/trunk/MANIFEST, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - add + missing file :\, 2.01 then + +2006-07-20 20:00 nanardon + + * soft/rpm/MDV-Distribconf/trunk/MANIFEST, + soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - + releasing 2.00 + +2006-07-20 19:56 nanardon + + * soft/rpm/MDV-Distribconf/trunk/ChangeLog, + soft/rpm/MDV-Distribconf/trunk/Makefile.PL, + soft/rpm/MDV-Distribconf/trunk/perl-MDV-Distribconf.spec: - do no + longer build rpms from here + +2006-07-20 19:40 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - fix + getpath() + +2006-07-20 19:39 nanardon + + * soft/rpm/MDV-Distribconf/trunk/t/01distribconf.t, + soft/rpm/MDV-Distribconf/trunk/test2, + soft/rpm/MDV-Distribconf/trunk/test2/media/media_info/media.cfg: + - fix test for new behaviour + +2006-07-20 18:04 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - clean + code + +2006-07-20 17:06 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - since + version 2, media path are allways relative to mediadir + +2006-07-20 13:11 nanardon + + * soft/rpm/MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - add + mediacfg version management + +2006-07-12 12:16 nanardon + + * soft/rpm/MDV-Distribconf, soft/rpm/MDV-Distribconf-Checks, + soft/rpm/MDV-Packdrakeng, soft/rpm/perl-MDV-Distribconf, + soft/rpm/perl-MDV-Distribconf-Checks, + soft/rpm/perl-MDV-Packdrakeng: - rename perl module directories + +2006-06-09 21:20 nanardon + + * soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/perl-MDV-Distribconf/trunk/t/01distribconf.t: - add + settree() function + +2006-06-09 21:20 nanardon + + * soft/rpm/perl-MDV-Distribconf/trunk/MANIFEST: - remove META.yml + from MANIFEST, seems it is not generate anymore + +2006-06-09 21:18 nanardon + + * soft/rpm/perl-MDV-Distribconf/trunk/Makefile.PL: - avoid copy of + source and spec into %_topdir + +2006-01-07 23:43 othauvin + + * soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: - Fix + hdlists parsing for very old distro, because nobody took care + about what they did + +2005-12-06 14:28 rgarciasuarez + + * soft/rpm/perl-MDV-Distribconf/trunk/ChangeLog, + soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/perl-MDV-Distribconf/trunk/perl-MDV-Distribconf.spec: + 1.01 + +2005-12-06 13:49 rgarciasuarez + + * soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm: + There was an undocumented method + +2005-12-06 13:21 rgarciasuarez + + * soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm: + Update copyrights ; doc nits + +2005-12-06 08:25 mscherer + + * soft/rpm/perl-MDV-Distribconf/trunk/perl-MDV-Distribconf.spec: - + use mkrel macro + +2005-11-15 10:44 rgarciasuarez + + * soft/rpm/perl-MDV-Distribconf/trunk, + soft/rpm/perl-MDV-Distribconf/trunk/.cvsignore: Ignore MakeMaker + build files + +2005-10-28 09:53 rgarciasuarez + + * soft/rpm/perl-MDV-Distribconf/trunk/ChangeLog: Update changes + (this is 1.00) + +2005-10-28 09:46 rgarciasuarez + + * soft/rpm/perl-MDV-Distribconf/trunk/MANIFEST, + soft/rpm/perl-MDV-Distribconf/trunk/Makefile.PL, + soft/rpm/perl-MDV-Distribconf/trunk/perl-MDV-Distribconf.spec: + Add spec file and target to make rpms for Mandriva + +2005-10-28 09:24 rgarciasuarez + + * soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm: + Fix module name in docs + +2005-10-28 09:13 rgarciasuarez + + * soft/rpm/perl-MDV-Distribconf/trunk/ChangeLog, + soft/rpm/perl-MDV-Distribconf/trunk/MANIFEST, + soft/rpm/perl-MDV-Distribconf/trunk/Makefile.PL: Add ChangeLog + +2005-10-28 09:12 rgarciasuarez + + * soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf.pm: Don't + use CVS release for CPAN version number. + +2005-10-28 08:59 rgarciasuarez + + * soft/rpm/perl-MDV-Distribconf/trunk/MANIFEST: Add test files + +2005-10-09 22:12 othauvin + + * soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/perl-MDV-Distribconf/trunk/t/01distribconf.t, + soft/rpm/perl-MDV-Distribconf/trunk/test, + soft/rpm/perl-MDV-Distribconf/trunk/test/media, + soft/rpm/perl-MDV-Distribconf/trunk/test/media/media_info, + soft/rpm/perl-MDV-Distribconf/trunk/test/media/media_info/media.cfg: + - more tests + +2005-10-09 20:56 othauvin + + * soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm, + soft/rpm/perl-MDV-Distribconf/trunk/t/02distribconf.t: - add test + and proper fix + +2005-10-09 18:12 othauvin + + * soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm: + - fix namespace + +2005-10-09 18:05 othauvin + + * soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm: + - add delvalue() + +2005-10-09 17:00 othauvin + + * soft/rpm/perl-MDV-Distribconf/trunk/t, + soft/rpm/perl-MDV-Distribconf/trunk/t/01distribconf.t, + soft/rpm/perl-MDV-Distribconf/trunk/t/02distribconf.t: -add basic + test + +2005-10-09 16:57 othauvin + + * soft/rpm/perl-MDV-Distribconf/trunk/MANIFEST, + soft/rpm/perl-MDV-Distribconf/trunk/Makefile.PL: - add MANIFEST, + Makefile.PL + +2005-10-09 16:18 othauvin + + * soft/rpm/perl-MDV-Distribconf/trunk/lib, + soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV, + soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf, + soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf.pm, + soft/rpm/perl-MDV-Distribconf/trunk/lib/MDV/Distribconf/Build.pm: + - import + +2005-10-09 16:18 + + * soft/rpm/perl-MDV-Distribconf/branches, + soft/rpm/perl-MDV-Distribconf/tags, + soft/rpm/perl-MDV-Distribconf/trunk: New repository initialized + by cvs2svn. + diff --git a/lib/MDV/Distribconf.pm b/lib/MDV/Distribconf.pm index ddcb908..560ae19 100644 --- a/lib/MDV/Distribconf.pm +++ b/lib/MDV/Distribconf.pm @@ -51,6 +51,49 @@ Some values have specific signification: =over 4 +=item media specific values: + +=over 4 + +=item B + +The path or basename of the hdlist. By default, this is +C, with slashes and spaces being replaced by '_'. + +=item B + +The path or basename of the synthesis. By default, this is the hdlist +name prefixed by C. + +=item B + +The path or basename of the gpg public key file. By default, this is +the media name prefixed by C. + +=item B + +A human-readable name for the media. By default this is the media path +(that is, the section name), where slashes have been replaced by +underscores. + +=back + +=item global specific values: + +=over 4 + +=item B + +OS version. + +=item B + +OS branch (cooker, etc.) + +=item B + +Media target architecture. + =item B The root path of the distribution tree. This value is not set in @@ -71,10 +114,12 @@ version. =back -Up to version 2 of media.cfg, for the paths of the hdlist and synthesis files, -if only a basename is provided, the path is assumed to be relative to the -mediadir or infodir. (hdlist and synthesis are created in both directories.) -If it's a complete path, it's assumed to be relative to the 'root'. For example, +=back + +For the paths of the hdlist and synthesis files, if only a basename is +provided, the path is assumed to be relative to the mediadir or infodir. +(hdlist and synthesis are created in both directories.) If it's a complete +path, it's assumed to be relative to the 'root'. For example, hdlist.cz -> //hdlist.cz ./hdlist.cz -> /./hdlist.cz @@ -105,8 +150,6 @@ Here's a complete example of a F file: name=Contrib Sources noauto=1 -See L for specific value set in media.cfg. - =head1 METHODS =cut diff --git a/lib/MDV/Distribconf/Checks.pm b/lib/MDV/Distribconf/Checks.pm new file mode 100644 index 0000000..57bae02 --- /dev/null +++ b/lib/MDV/Distribconf/Checks.pm @@ -0,0 +1,392 @@ +# $Id: Checks.pm 59285 2006-09-01 00:10:10Z nanardon $ + +package MDV::Distribconf::Checks; + +our $VERSION = (qq$Revision: 59285 $ =~ /(\d+)/)[0]; + +=head1 NAME + +MDV::Distribconf::Checks - A Subclass to MDV::Distribconf::Build to check distribution trees + +=head1 METHODS + +=over 4 + +=cut + +use strict; +use warnings; +use MDV::Distribconf::MediaCFG; +use MDV::Packdrakeng; +use Digest::MD5; +use MDV::Distribconf::Utils; +use base qw(MDV::Distribconf); + +sub new { + my $class = shift; + my $self = $class->SUPER::new(@_); + bless $self, $class; +} + +sub _report_err { + my ($out, $err_code, $fmt, @args) = @_; + my %errs = ( + 'UNSYNC_HDLIST' => 'E', + 'UNSYNC_MD5' => 'E', + 'WRONG_CONFIG' => 'W', + 'MISSING_MEDIA' => 'W', + 'MISSING_MEDIADIR' => 'E', + 'SAME_INDEX' => 'E', + 'NOMEDIA' => 'E', + 'MISSING_INDEX' => 'E', + 'MISSING_INFO' => 'W', + ); + my $message = sprintf($fmt, @args); + + if (ref $out eq 'CODE') { + $out->( + errcode => $err_code || '?', + level => $errs{$err_code} || '?', + message => $message, + ); + } else { + printf $out "%s: %s\n", $errs{$err_code} || '?', $message; + } + return($errs{$err_code} || '?' eq 'E' ? 1 : 0) +} + +=item $distrib->check_config + +=cut + +sub check_config { + my ($self, $fhout) = @_; + $fhout ||= \*STDERR; + + my $error = 0; + + foreach my $var ($self->{cfg}->Parameters('media_info')) { + $self->{cfg}->val('media_info', $var) or next; + my @er = MDV::Distribconf::MediaCFG::_valid_param( + 'media_info', + $var, + $self->{cfg}->val('media_info', $var), + ); + foreach (@er) { + $error += _report_err( + $fhout, + 'WRONG_CONFIG', + "%s %s: %s", 'media_info', $var, $_ + ); + } + } + foreach my $media ($self->listmedia()) { + foreach my $var ($self->{cfg}->Parameters($media)) { + $self->{cfg}->val($media, $var) or next; + my @er = MDV::Distribconf::MediaCFG::_valid_param( + 'media_info', + $var, + $self->getvalue($media, $var), + ); + foreach (@er) { + $error += _report_err( + $fhout, + 'WRONG_CONFIG', + "%s %s: %s", $media, $var, $_ + ); + } + my $varinfo = MDV::Distribconf::MediaCFG::_value_info($var) || {}; + if ($varinfo->{deny}) { + if ($self->getvalue($media, $varinfo->{deny})) { + $error += _report_err( + $fhout, + 'WRONG_CONFIG', + '%s and %s cannot be set together (media %s)', + $var, $varinfo->{deny}, $media + ); + } + } + if ($varinfo->{ismedialist} || $varinfo->{cross}) { + foreach my $sndmedia (split(/ /, $self->getvalue($media, $var, ''))) { + if (!$self->mediaexists($sndmedia)) { + $error += _report_err( + $fhout, + 'MISSING_MEDIA', + "`%s' refer as %s to non existant `%s'", + $media, + $var, + $sndmedia, + ); + } elsif($varinfo->{cross}) { + if(!grep { $media eq $_ } + split(/ /, + $self->getvalue($sndmedia, $varinfo->{cross}) + )) { + $error += _report_err( + $fhout, + 'WRONG_CONFIG', + "`%s' has not `%s' as %s", + $sndmedia, $media, $varinfo->{cross}, + ); + } + } + } + } + } + } + + # checking overlap + { + my %foundname; + push(@{$foundname{$self->getvalue($_, 'name')}}, $_) + foreach($self->listmedia()); + + foreach (keys %foundname) { + if (@{$foundname{$_}} > 1) { + $error += _report_err( + $fhout, + 'WRONG_CONFIG', + "`%s' have same name (%s)", + join(', ', @{$foundname{$_}}), + $_, + ); + } + } + } + + $error +} +=item $distrib->check_media_coherency($fhout) + +Performs basic checks on the distribution and prints to $fhout (STDERR by +default) warnings and errors found. Returns the number of errors reported. + +=cut + +sub check_media_coherency { + my ($distrib, $fhout) = @_; + $fhout ||= \*STDERR; + + my $error = 0; + + $distrib->listmedia or $error += _report_err( + 'NOMEDIA', "No media found in this config" + ); + + # Checking no overlap + foreach my $var (qw/hdlist synthesis path/) { + my %e; + foreach ($distrib->listmedia) { + my $v = $distrib->getpath($_, $var); + push @{$e{$v}}, $_; + } + + foreach my $key (keys %e) { + if (@{$e{$key}} > 1) { + $error += _report_err( + $fhout, + 'SAME_INDEX', + "media `%s' have same %s (%s)", + join (", ", @{$e{$key}}), + $var, + $key + ); + } + } + } + + foreach my $media ($distrib->listmedia) { + -d $distrib->getfullpath($media, 'path') or $error += _report_err( + $fhout, + 'MISSING_MEDIADIR', "dir %s does't exist for media `%s'", + $distrib->getpath($media, 'path'), + $media + ); + foreach (qw/hdlist synthesis/) { + -f $distrib->getfullpath($media, $_) or $error += _report_err( + $fhout, + 'MISSING_INDEX', "$_ %s doesn't exist for media `%s'", + $distrib->getpath($media, $_), + $media + ); + } + foreach (qw/pubkey/) { + -f $distrib->getfullpath($media, $_) or $error += _report_err( + $fhout, + 'MISSING_INFO', "$_ %s doesn't exist for media `%s'", + $distrib->getpath($media, $_), + $media + ); + } + + } + return $error; +} + +=item $distrib->check_index_sync($media) + +Check the synchronisation between rpms contained by media $media +and its hdlist: + + - all rpms should be in the hdlist + - the hdlist should not contains rpms that does not exists + +Return 1 if no problem were found + +=cut + + +sub check_index_sync { + my ($self, $media, $submedia) = @_; + my $rpmspath = $self->getfullpath($media, 'path'); + my $hdlist = ($submedia && -d $self->getfullpath($media, 'path') . '/media_info') ? + $self->getfullmediapath($media, 'hdlist') : + $self->getfullpath($media, 'hdlist'); + my $synthesis = ($submedia && -d $self->getfullpath($media, 'path') . '/media_info') ? + $self->getfullmediapath($media, 'synthesis') : + $self->getfullpath($media, 'synthesis'); + + -f $hdlist && -f $synthesis or return 0; # avoid warnings + my ($inp, $ind) = MDV::Distribconf::Utils::hdlist_vs_dir($hdlist, $rpmspath); + if (@{$inp || []} + @{$ind || []}) { + return 0; + } + return 1; +} + +=item $distrib->check_media_md5($media) + +Check md5sum for hdlist and synthesis for the media $media are the same +than value contains in the existing MD5SUM file. + +The function return an error also if the value is missing + +Return 1 if no error were found. + +=cut + +sub check_media_md5 { + my ($self, $media) = @_; + my ($unsync) = MDV::Distribconf::Utils::checkmd5( + $self->getfullmediapath($media, 'MD5SUM'), + map { $self->getfullmediapath($media, $_) } (qw(hdlist synthesis)) + ); + if (@{$unsync || []}) { + return 0; + } else { + return 1; + } +} + +sub check_global_md5 { + my ($self) = @_; + my @indexes; + foreach my $media ($self->listmedia()) { + push(@indexes, map { $self->getfullpath($media, $_) } (qw(hdlist synthesis))); + } + my ($unsync) = MDV::Distribconf::Utils::checkmd5( + $self->getfullpath(undef, 'MD5SUM'), + @indexes, + ); + if (@{$unsync || []}) { + return 0; + } else { + return 1; + } +} + +=item $distrib->checkdistrib($fhout) + +Performs all light checks on the distribution and prints to $fhout (STDERR by +default) warnings and errors found. Returns the number of errors reported. + +=cut + +sub checkdistrib { + my ($self, $fhout) = @_; + $fhout ||= \*STDERR; + + my $error = 0; + + $error += $self->check_config($fhout); + $error += $self->check_media_coherency($fhout); + + foreach my $media ($self->listmedia) { + if(!$self->check_index_sync($media)) { + $error += _report_err( + $fhout, + 'UNSYNC_HDLIST', + "hdlist for media `%s' is not sync with its rpms", + $media, + ); + } + + if(!$self->check_media_md5($media)) { + $error += _report_err( + $fhout, + 'UNSYNC_MD5', + "md5sum for media `%s' is not ok", + $media, + ); + } + } + + if ($self->check_global_md5()) { + $error += _report_err( + $fhout, + 'UNSYNC_MD5', + 'Global md5sum file is not ok', + ); + } + + $error +} + +=item $distrib->check($fhout) + +=cut + +sub check { + my ($self, $fhout) = @_; + $fhout ||= \*STDERR; + + my $error = $self->check_config($fhout); + $error += $self->check_media_coherency($fhout); + + $error +} + +1; + +__END__ + +=back + +=head1 SEE ALSO + +L +L + +=head1 AUTHOR + +Olivier Thauvin + +=head1 LICENSE AND COPYRIGHT + +(c) 2005 Olivier Thauvin ; (c) 2005, 2006 Mandriva + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +=cut diff --git a/lib/MDV/Distribconf/MediaCFG.pm b/lib/MDV/Distribconf/MediaCFG.pm index 90a320d..91431aa 100644 --- a/lib/MDV/Distribconf/MediaCFG.pm +++ b/lib/MDV/Distribconf/MediaCFG.pm @@ -155,20 +155,17 @@ foreach (qw(hdlist name synthesis pubkey)) { The name of the media. If unset, the section is the name. -=head3 B +=head3 hdlist -The basename of the hdlist. By default, this is -C, with slashes and spaces being replaced by '_'. +The hdlist file holding rpm infos for the media -=head3 B +=head3 synthesis -The basename of the synthesis. By default, this is the hdlist -name prefixed by C. +The synthesis file holding rpm infos for the media =head3 pubkey -The basename of the gpg public key file. By default, this is -the media name prefixed by C. +The file holding public gpg key used to sign rpms in this media. =cut diff --git a/t/01history.t b/t/01history.t new file mode 100644 index 0000000..2c8b11d --- /dev/null +++ b/t/01history.t @@ -0,0 +1,20 @@ +#!/usr/bin/perl + +# $Id: 01distribconf.t 56934 2006-08-21 10:16:29Z nanardon $ + +use strict; +use Test::More; +use MDV::Distribconf; + +my @testdpath = glob('testdata/history/*/*/*'); + +plan tests => 3 * scalar(@testdpath); + +foreach my $path (@testdpath) { + ok( + my $dconf = MDV::Distribconf->new($path), + "Can get new MDV::Distribconf" + ); + ok($dconf->load(), "can load $path"); + ok($dconf->listmedia(), "can list media"); +} diff --git a/t/03checks.t b/t/03checks.t new file mode 100644 index 0000000..3beb2ac --- /dev/null +++ b/t/03checks.t @@ -0,0 +1,22 @@ +#!/usr/bin/perl + +# $Id: 01-compile.t 38877 2006-07-12 12:16:51Z nanardon $ + +use strict; +use warnings; + +use Test::More tests => 4; + +use_ok('MDV::Distribconf::Checks'); + +MDV::Distribconf::Checks::_report_err( + sub { + my %err = @_; + is($err{errcode}, 'UNSYNC_HDLIST', 'get proper errcode'); + is($err{level}, 'E', 'get proper err level'); + ok($err{message}, 'get message'); + }, + 'UNSYNC_HDLIST', + 'test message', +); + diff --git a/t/04mediacfg.t b/t/04mediacfg.t new file mode 100644 index 0000000..b5c1237 --- /dev/null +++ b/t/04mediacfg.t @@ -0,0 +1,29 @@ +#!/usr/bin/perl + +use strict; +use warnings; +use Test::More tests => 11; + +use MDV::Distribconf::Build; +use_ok('MDV::Distribconf::MediaCFG'); +is(MDV::Distribconf::MediaCFG::_valid_param('foo', 'name', 'toto'), 0, + "Valid value return no error"); + +is(MDV::Distribconf::MediaCFG::_valid_param('foo', 'size', '1'), 0, + "valide size value"); +is(MDV::Distribconf::MediaCFG::_valid_param('foo', 'size', '1k'), 0, + "valide size value"); +is(MDV::Distribconf::MediaCFG::_valid_param('foo', 'size', '1d'), 1, + "non valide size value"); +is(MDV::Distribconf::MediaCFG::_valid_param('foo', 'size', 'coin'), 1, + "non valide size value"); + +my $mdc = MDV::Distribconf::Build->new("testdata/testa"); + +ok($mdc->load, "Can't load distrib tree"); + +ok($mdc->check_index_sync('first'), "Check media hdlist sync with rpms, good case"); +ok(!$mdc->check_index_sync('second'), "Check media hdlist sync with rpms, bad case"); + +ok($mdc->check_media_md5('first_src'), "Check hdlist md5sum validity, good case"); +ok(!$mdc->check_media_md5('second_src'), "Check hdlist md5sum validity, bad case"); 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 Binary files /dev/null and b/testdata/testa/media/first/media_info/hdlist.cz 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 Binary files /dev/null and b/testdata/testa/media/first/media_info/synthesis.hdlist.cz 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 Binary files /dev/null and b/testdata/testa/media/first/test-dep-1.0-1mdk.noarch.rpm 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 Binary files /dev/null and b/testdata/testa/media/first/test-rpm-1.0-1mdk.noarch.rpm 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 Binary files /dev/null and b/testdata/testa/media/first_debug/aspell-te-debug-0.60.0-1mdk.i586.rpm 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 Binary files /dev/null and b/testdata/testa/media/first_src/aspell-sr-0.60.0-1mdk.src.rpm 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 Binary files /dev/null and b/testdata/testa/media/first_src/aspell-te-0.60.0-1mdk.src.rpm 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 Binary files /dev/null and b/testdata/testa/media/first_src/media_info/hdlist.cz 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 Binary files /dev/null and b/testdata/testa/media/first_src/media_info/synthesis.hdlist.cz 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 Binary files /dev/null and b/testdata/testa/media/first_src/test-rpm-1.0-1mdk.src.rpm 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 Binary files /dev/null and b/testdata/testa/media/media_info/hdlist_first.cz 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 Binary files /dev/null and b/testdata/testa/media/media_info/hdlist_first_src.cz 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 Binary files /dev/null and b/testdata/testa/media/media_info/hdlist_second.cz 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 Binary files /dev/null and b/testdata/testa/media/media_info/hdlist_second_src.cz 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 Binary files /dev/null and b/testdata/testa/media/media_info/synthesis.hdlist_first.cz 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 Binary files /dev/null and b/testdata/testa/media/media_info/synthesis.hdlist_first_src.cz 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 Binary files /dev/null and b/testdata/testa/media/media_info/synthesis.hdlist_second.cz 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 Binary files /dev/null and b/testdata/testa/media/media_info/synthesis.hdlist_second_src.cz 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 Binary files /dev/null and b/testdata/testa/media/second/aspell-sr-debug-0.60.0-1mdk.i586.rpm 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 Binary files /dev/null and b/testdata/testa/media/second/cowsay-3.03-10mdk.noarch.rpm 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 Binary files /dev/null and b/testdata/testa/media/second/media_info/hdlist.cz 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 Binary files /dev/null and b/testdata/testa/media/second/media_info/synthesis.hdlist.cz 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 Binary files /dev/null and b/testdata/testa/media/second_src/media_info/hdlist.cz 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 Binary files /dev/null and b/testdata/testa/media/second_src/media_info/synthesis.hdlist.cz 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 Binary files /dev/null and b/testdata/testa/media/second_src/test-dep-1.0-1mdk.src.rpm 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 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 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 -- cgit v1.2.1