From 9fa48232733d7d6e36f483e9b7e53bfb743715f9 Mon Sep 17 00:00:00 2001 From: Trevor Cooper Date: Fri, 29 Dec 2023 12:18:06 -0800 Subject: [PATCH 1/2] rearchitect repo creation --- README.md | 153 +++++++++++++++++- openqa-testrepo-1/README | 4 + openqa-testrepo-1/acpica-tools-1-1.noarch.rpm | Bin 0 -> 6252 bytes .../pandoc-common-1-1.noarch.rpm | Bin 6120 -> 6236 bytes ...d42ecca2bb39d76452754fb12-other.sqlite.bz2 | Bin 0 -> 849 bytes ...987d9aad2486d6f8ff8d689c6c2-primary.xml.gz | Bin 585 -> 0 bytes ...bcdfca60795cd9815520dc316-filelists.xml.gz | Bin 0 -> 287 bytes ...9f241ecce945a18d84ecf5cc794f5-other.xml.gz | Bin 0 -> 361 bytes ...4bd9ad0f37fe8b083f6c1-filelists.sqlite.bz2 | Bin 675 -> 0 bytes ...618a2a03f9e58979031cf-filelists.sqlite.bz2 | Bin 0 -> 761 bytes ...b965cd4aa028045cfd6eb64-primary.sqlite.bz2 | Bin 1695 -> 0 bytes ...7f33765c142a0cd936d98a772ef-primary.xml.gz | Bin 0 -> 755 bytes ...7e00e96415fe05258e4a568da-filelists.xml.gz | Bin 229 -> 0 bytes ...8b81dd71f2296853833cfab616a06-other.xml.gz | Bin 298 -> 0 bytes ...beb433e92996a5410b995f96b-other.sqlite.bz2 | Bin 739 -> 0 bytes ...d8968e2ef5367e4489ce1f9-primary.sqlite.bz2 | Bin 0 -> 1974 bytes openqa-testrepo-1/repodata/repomd.xml | 68 ++++---- pandoc-common.spec | 26 --- tools/testpackages8 | 78 +++++++++ tools/testpackages9 | 79 +++++++++ 20 files changed, 347 insertions(+), 61 deletions(-) create mode 100644 openqa-testrepo-1/README create mode 100644 openqa-testrepo-1/acpica-tools-1-1.noarch.rpm rename openqa-testrepo-1/{Packages => }/pandoc-common-1-1.noarch.rpm (71%) create mode 100644 openqa-testrepo-1/repodata/26935fe1816e282150f671c328808b740b7bc3ad42ecca2bb39d76452754fb12-other.sqlite.bz2 delete mode 100644 openqa-testrepo-1/repodata/27ae97301a166cd3c889cbb34e2b9474c84fb987d9aad2486d6f8ff8d689c6c2-primary.xml.gz create mode 100644 openqa-testrepo-1/repodata/3fa758dde6e9328d318ad0f3b245565a3b7eee2bcdfca60795cd9815520dc316-filelists.xml.gz create mode 100644 openqa-testrepo-1/repodata/5e9b69a2fb1cd170ffe391487aa26be04d89f241ecce945a18d84ecf5cc794f5-other.xml.gz delete mode 100644 openqa-testrepo-1/repodata/67e5f84f66eeaff16106aca978e0e0bf966ba05467c4bd9ad0f37fe8b083f6c1-filelists.sqlite.bz2 create mode 100644 openqa-testrepo-1/repodata/94339dfd9b7491b3f237654307fd0256f79ff2598a2618a2a03f9e58979031cf-filelists.sqlite.bz2 delete mode 100644 openqa-testrepo-1/repodata/959374c7ce5bf7090059d5ccb2bb873e05e5a6765b965cd4aa028045cfd6eb64-primary.sqlite.bz2 create mode 100644 openqa-testrepo-1/repodata/9fa3b0a4d0e160140cc533ce1fef61e8b6e5c7f33765c142a0cd936d98a772ef-primary.xml.gz delete mode 100644 openqa-testrepo-1/repodata/a1bc71e37cfd3bfa5af96572272fb7a8dc705107e00e96415fe05258e4a568da-filelists.xml.gz delete mode 100644 openqa-testrepo-1/repodata/a31754daacb6dafa2e545cbc2cff9390cbc8b81dd71f2296853833cfab616a06-other.xml.gz delete mode 100644 openqa-testrepo-1/repodata/c98f712fab78814531cb01234d603d299aac3efbeb433e92996a5410b995f96b-other.sqlite.bz2 create mode 100644 openqa-testrepo-1/repodata/d7b3175980f35ce5cec23a8ff3e5a215521b843fdd8968e2ef5367e4489ce1f9-primary.sqlite.bz2 delete mode 100644 pandoc-common.spec create mode 100755 tools/testpackages8 create mode 100755 tools/testpackages9 diff --git a/README.md b/README.md index 78ba32b..564cc9e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,154 @@ # openqa-testrepos -Testing repository content for openQA \ No newline at end of file +Create the contents of the `openqa-testrepo-1` in support of Rocky Linux openQA testing. + +## Requirements +The `openqa-testrepo-1` repository contents can be created on Rocky Linux 8 or Rocky Linux 9 host. In both cases the `python3-rpmfluff` package (and dependencies) must be installed. + +In Rocky Linux 8 the `python3-rpmfluff` package can be found in the AppStream repository. In Rocky Linux 9 the `python3-rpmfluff` package is provided by EPEL. + +### Rocky Linux 8 + +Installation of `python3-rpmfluff` in Rocky Linux 8 is shown below... + +``` +$ sudo dnf -y install python3-rpmfluff +Last metadata expiration check: 1:13:23 ago on Fri 29 Dec 2023 06:24:00 PM UTC. +Dependencies resolved. +=============================================================================================================================== + Package Architecture Version Repository Size +=============================================================================================================================== +Installing: + python3-rpmfluff noarch 0.5.7.1-2.el8 appstream 57 k +Installing dependencies: + createrepo_c x86_64 0.17.7-6.el8 appstream 88 k + createrepo_c-libs x86_64 0.17.7-6.el8 appstream 115 k + drpm x86_64 0.4.1-3.el8 appstream 67 k + elfutils x86_64 0.189-3.el8 baseos 552 k + gc x86_64 7.6.4-3.el8 appstream 108 k + gdb-headless x86_64 8.2-20.el8.0.1 appstream 3.7 M + guile x86_64 5:2.0.14-7.el8 appstream 3.5 M + libatomic_ops x86_64 7.6.2-3.el8 appstream 37 k + libbabeltrace x86_64 1.5.4-4.el8 baseos 199 k + libipt x86_64 1.6.1-8.el8 appstream 49 k + patch x86_64 2.7.6-11.el8 baseos 137 k + rpm-build x86_64 4.14.3-26.el8 appstream 173 k + zstd x86_64 1.4.4-1.el8 appstream 392 k + +Transaction Summary +=============================================================================================================================== +Install 14 Packages + +Total download size: 9.1 M +Installed size: 29 M +Downloading Packages: +(1/14): createrepo_c-0.17.7-6.el8.x86_64.rpm 1.2 MB/s | 88 kB 00:00 +...... + + Verifying : patch-2.7.6-11.el8.x86_64 14/14 + +Installed: + createrepo_c-0.17.7-6.el8.x86_64 createrepo_c-libs-0.17.7-6.el8.x86_64 drpm-0.4.1-3.el8.x86_64 + elfutils-0.189-3.el8.x86_64 gc-7.6.4-3.el8.x86_64 gdb-headless-8.2-20.el8.0.1.x86_64 + guile-5:2.0.14-7.el8.x86_64 libatomic_ops-7.6.2-3.el8.x86_64 libbabeltrace-1.5.4-4.el8.x86_64 + libipt-1.6.1-8.el8.x86_64 patch-2.7.6-11.el8.x86_64 python3-rpmfluff-0.5.7.1-2.el8.noarch + rpm-build-4.14.3-26.el8.x86_64 zstd-1.4.4-1.el8.x86_64 + +Complete! +``` + +### Rocky Linux 9 + +Installation of `python3-rpmfluff` from EPEL repository in Rocky Linux 9 is shown below... + +``` +$ sudo dnf -y --enablerepo=epel install python3-rpmfluff +Last metadata expiration check: 0:07:01 ago on Fri 29 Dec 2023 07:31:47 PM UTC. +Dependencies resolved. +=============================================================================================================================== + Package Architecture Version Repository Size +=============================================================================================================================== +Installing: + python3-rpmfluff noarch 0.6.3-1.el9 epel 59 k +Installing dependencies: + createrepo_c x86_64 0.20.1-2.el9 appstream 73 k + createrepo_c-libs x86_64 0.20.1-2.el9 appstream 99 k + debugedit x86_64 5.0-4.el9 appstream 76 k + ed x86_64 1.14.2-12.el9 baseos 74 k + elfutils x86_64 0.189-3.el9 baseos 526 k + gdb-minimal x86_64 10.2-11.el9 appstream 3.5 M + info x86_64 6.7-15.el9 baseos 224 k + patch x86_64 2.7.6-16.el9 appstream 127 k + rpm-build x86_64 4.16.1.3-25.el9 appstream 59 k + zstd x86_64 1.5.1-2.el9 baseos 546 k + +Transaction Summary +=============================================================================================================================== +Install 11 Packages + +Total download size: 5.3 M +Installed size: 17 M +Downloading Packages: +(1/11): python3-rpmfluff-0.6.3-1.el9.noarch.rpm 177 kB/s | 59 kB 00:00 + +...... + + Verifying : gdb-minimal-10.2-11.el9.x86_64 11/11 + +Installed: + createrepo_c-0.20.1-2.el9.x86_64 createrepo_c-libs-0.20.1-2.el9.x86_64 debugedit-5.0-4.el9.x86_64 + ed-1.14.2-12.el9.x86_64 elfutils-0.189-3.el9.x86_64 gdb-minimal-10.2-11.el9.x86_64 + info-6.7-15.el9.x86_64 patch-2.7.6-16.el9.x86_64 python3-rpmfluff-0.6.3-1.el9.noarch + rpm-build-4.16.1.3-25.el9.x86_64 zstd-1.5.1-2.el9.x86_64 + +Complete! +``` + +## Usage + +Once the `pyton3-rpmfluff` (and dependencies) packages are installed on of the version dependent scripts in this repository can be used to create the contents of the openqa-testrepo-1 repository. + +### Rocky Linux 8 + +``` +$ ./tools/testpackages8 + +$ tree openqa-testrepo-1 +openqa-testrepo-1 +├── acpica-tools-1-1.noarch.rpm +├── pandoc-common-1-1.noarch.rpm +├── README +└── repodata + ├── 2b41544bc8ee5e59ebb0893af7464f1aab0f85d58dda9d4976554ec29ebf092a-other.sqlite.bz2 + ├── 30426ccf32448eddf3d19345d0e4c924251a8b6ca9623954e9fb68fdc03b5ea2-other.xml.gz + ├── 545ace9c9a1bc62b165001e00fd19fb97daeec3facf2ad0fc1b817c4dd8804c2-primary.xml.gz + ├── bcbd4e18e103de3f88cce2cd5f7248790eeee1bcef100c287e0a6aee7eb03fd1-filelists.sqlite.bz2 + ├── e0675d7d49382249e902ca1937e904e3ab39ea798704e1b7638c047ea017cc25-primary.sqlite.bz2 + ├── edc8d257b7c5e25edef9160935cfafb0fdfb86a32f22b2f9a7bdf266f2aa7647-filelists.xml.gz + └── repomd.xml + +1 directory, 10 files +``` + + +### Rocky Linux 9 + +``` +$ ./tools/testpackages9 + +$ tree openqa-testrepo-1 +openqa-testrepo-1 +├── acpica-tools-1-1.noarch.rpm +├── pandoc-common-1-1.noarch.rpm +├── README +└── repodata + ├── 040b7b4eeb5eb795f50a24d01b9108db0c9d202ef5b593768a03e746545e7930-filelists.xml.gz + ├── 274e3829951600902693358c55990d9e9c1e0335a38d5b24a49a303d4fcd953a-primary.sqlite.bz2 + ├── 39a14b96bdeb72585a76cc58f613eaaaca3a3075181b302feeb9acf16a26b620-other.sqlite.bz2 + ├── 6bb78cc6422fa5cfd7e0c8bb8d5c32025ae3c1a877895e5819a75aea3b114a03-other.xml.gz + ├── 8b6c7c9a7f81fdfbe89ce090589207b1842af2681f16d98b599b1ee9b74f63b3-primary.xml.gz + ├── b271b1890dd76d5dd7644639d848f2527a0787d77ae497d2438680cba18aa990-filelists.sqlite.bz2 + └── repomd.xml + +1 directory, 10 files +``` diff --git a/openqa-testrepo-1/README b/openqa-testrepo-1/README new file mode 100644 index 0000000..9d76d45 --- /dev/null +++ b/openqa-testrepo-1/README @@ -0,0 +1,4 @@ +This repository contains empty test packages for openQA package +management tool testing. The repository and packages were created with the +'tools/testpackages8' script from the openqa-testrepos repository: +https://git.resf.org/testing/openqa-testrepos diff --git a/openqa-testrepo-1/acpica-tools-1-1.noarch.rpm b/openqa-testrepo-1/acpica-tools-1-1.noarch.rpm new file mode 100644 index 0000000000000000000000000000000000000000..516e031d873768414dc8c0a5cc57b8a5d18706fb GIT binary patch literal 6252 zcmeHLU2GIp6u#SC1qC9CiTIZcK}j2#?aa>X&aAc-+ET1mT3L)OYU-UkcXkJ6XNEg7 z(5+~UK?yHFg2n`1G?EyjMh$3u^ucJ1FNFBy55c4)h!!IdsL}EB3!}HYa?G5L$j5o(I7A z^HIR%2<4UmUJ1r8$jw~~$aznP=g$Hbz&ydf1%!GOfl>!fPwm6D}ZYz;e_P0E(8S5!?m zR1KF)W!0%#*ut7(8%EhwDOF9qN=-#Etukx~ZGZa7fs@Yd#uG<+r>FMa|E}~aICrO^ z?3O8zDUd0UDUd0UDUd0UDUd0UDUd0UDUd0UDe!++Af1V{+wFrO1k5xLS}-?RBW4He9{_p$5y5{1-!8Cpy(vJb?*dD?1qk_FO9i((JTLSsP{FZ?JA(5(-k&Ep_j5iA z$j`%*fN&mG90G*B^9MWe6(0h^e);DFp96$m@`nXK1IY8g;Cu)zoc|#eeuk4~vn54v z$E=06G~7snUo6?F-=+~^ZWz0PUxWqdf$lLDknJrqsTS!BZiXH$2CNRD^xDj0(gr`K zEM#s(rCQ*`yD+2DNRaq8=Ifx16Jw~8IOh7vj5L_Io-Nf{QB0ds_XK6G9mG9SAEO@i z>+90}Jf6vS8bIsA(1Q^sUn=UIV1b>G*xl*IEtDo9KfsJME_+cv=qyHz6j|83EWn!v zk*{88kmI>l_fXIb8I2-pkGLM)gqt+#K_bRI!)~2M@n60P-0}jPCP(++opgdx$DR4J zM1)79$=M#H6_uh6vsb-XDJm)Qd%0LjpH;o6L0=DV+426pLBp4Z11j}xvje*BlHw$2 z4oI@Z$G5UH>btRvJ!vOp5tsL$J|9Un6wNdh!&LYyFHS4ROOjld2G0a}xoHVobKnAq!$k;(*Cf%mN?wt}{vkX3KR#0lLm$KD5NCn?@c1s z3!g+Uh~CSn-N3N`xq+EYeQL{usQ)4z`+i`#ekZ$G(IvSVCqC`3!y3#b&>xOkK50Nt zK@!P{zsvP)ImVX9yAjP34@ZqluK+qjfH(^{g28%#W@b@IoIttLvz(qvx$Y-u{@K1B zGP>#~>DVjdGu!5m@{a;7PGUzkk%QHeQLQLW)g-D>AsQ_kx>h2VU9Dh4H!6lxcCe{v zwxyNIM4^~q7))EbVV6s)(iu$i@1XSmN4tITMR;C*(U_gw3g`Q)-L(AFRVHB(c2#vZ)x+dS;##xc*pp;?h8B4 vviRm>VQWd>iQ4`*kK@$?PcPZ?&TJ9o9@yP8_xxuokKA_{{)S+usjYtir-;|& literal 0 HcmV?d00001 diff --git a/openqa-testrepo-1/Packages/pandoc-common-1-1.noarch.rpm b/openqa-testrepo-1/pandoc-common-1-1.noarch.rpm similarity index 71% rename from openqa-testrepo-1/Packages/pandoc-common-1-1.noarch.rpm rename to openqa-testrepo-1/pandoc-common-1-1.noarch.rpm index 688e90e40bf0e51f3af4df3e352c057509233aab..39a8ff5588cd40876493ae3b23c438e9314b7157 100644 GIT binary patch delta 838 zcmZvYO=uHA6vt=TkZMnfNlBxEi=Y+{bw9H+Mf`46jG$=|Ma6DrXG=8h#x6_^3DedtP3Z`;&enN<#E zvfBw!KfwN87(+0Bl|0HWcFut*U|)f07_;c#(Ql#uK);Rt6SyA6L-gN3+22F|gZ_Hp zsXY2y^a5}lAsr%v;R2~qU<#%%BvZvffg&5FZ$zI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`+jHXbu_V)k)L|%=t~jG4z3M4x)(r0_mf1MDh`Xl8x121aFlSBgXu4^kx{3XiN#8^X2VIO9; zT=b|oM+CynLu1Essj5zq5)yv;{R3YmG_p@1_i%lrVYdSc^fe;ftVW?owLp0j*gl9} zz9>GlCPb9#l7!x@$t6>49en{X^^{^pEkNq~AWCD)IJ}X9sc{374;023)+>T=9+BWg bF=SA3_Y3oc9w-Qc_lvnAoG3_HPVQ0wN<(~A literal 0 HcmV?d00001 diff --git a/openqa-testrepo-1/repodata/27ae97301a166cd3c889cbb34e2b9474c84fb987d9aad2486d6f8ff8d689c6c2-primary.xml.gz b/openqa-testrepo-1/repodata/27ae97301a166cd3c889cbb34e2b9474c84fb987d9aad2486d6f8ff8d689c6c2-primary.xml.gz deleted file mode 100644 index fafcce4b27802e8e4ec2f56db17a93e6acecaa8f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 585 zcmV-P0=E4hiwFP!000001BFw;j+-zLz3*38zJqZ>2#tVMrEYuaVXJNrJv#OftN=!~ zi8lTEj)5%M_OKGdp6B;wJTso+@wIEo1+3GiFDZ``N}!iU>HbvGUoT&yoIX|$MF(Ce z;RQi@?@HQuKO7iqbw9qwYCJ;>YGgMSlcwuTPiOYQ4&8?e-}C8BG@W|!f$&L^!(`upi8t$14JDydI<${vRDPX!GWT{Nvj8s_pe?W?FfE?s7Y{l z7DolUrv~X#KwA~;Z5!~>wg`oPu)OYo)Vjrtd6sW-&iDDAlH;gbwL*Nm6v^p7aO+e_ zF*~fL?wuEH3u>xuD7(G{cbjw(wML3?Ez(%1OZvPtn!Rgd#3LThy^BM)XK8J0Cw$nV zf$*W#5_$*Kx99H#y9ZXv1<-9s`_5QTPu7e>^?4XjINi#zXKU0by}oFFomDew6;0)6 zjPsQT=W#rugvZM^wnm<>^V2r=G&@)Ys}pBND*<=a|A{**L)No+C9dKIgaR8`(c?^D zy{#{4x=Ye9u~_&lNtS9a{K1-w#wRgD3kbcpR}#jhr0?!PN!^MQj^5J``oWx_EB0@I Xg5CP`_SVAoHs94>;&aUtX#@ZO)G!-b diff --git a/openqa-testrepo-1/repodata/3fa758dde6e9328d318ad0f3b245565a3b7eee2bcdfca60795cd9815520dc316-filelists.xml.gz b/openqa-testrepo-1/repodata/3fa758dde6e9328d318ad0f3b245565a3b7eee2bcdfca60795cd9815520dc316-filelists.xml.gz new file mode 100644 index 0000000000000000000000000000000000000000..d79c7bd39ca5f4640470d6970a4c193f0ad10346 GIT binary patch literal 287 zcmV+)0pR{0iwFP!000001FeuvZi6roh4(#$WnEbF53d|Wzx zS=afsEXN_|#ovjQ82BD@Rw+F`}Ot#(k4UjS1 lg4EXg-U50P=o@p!$cYL{)0EERQ<2OZz<%M8Eua-D+jOtC`)>N&{dhtB-`@ilAA`{~m$#8EFo zks$H@+LVa?2Nuv{Cs7Z(t=p)1ZmBCZ#;Ku%3rWIsiQ2}MCdWj{izo$xGlY4Y~yX|5?eOKkoDgmFVWR Hqyhi{YVoqL literal 0 HcmV?d00001 diff --git a/openqa-testrepo-1/repodata/67e5f84f66eeaff16106aca978e0e0bf966ba05467c4bd9ad0f37fe8b083f6c1-filelists.sqlite.bz2 b/openqa-testrepo-1/repodata/67e5f84f66eeaff16106aca978e0e0bf966ba05467c4bd9ad0f37fe8b083f6c1-filelists.sqlite.bz2 deleted file mode 100644 index f4ab1a040fa0f994924d2e4b5a420b7081c99bbc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 675 zcmV;U0$lw2_af9n75{Ncav-)JBJ00KZf0stZi zKmt6iD58j`r2qz=paJRt003#DKmY&$27#dkGMmbulo7Q6XaE2Qlo|j400E%jXwir? zX_E*s0f@xWqeg%<(?9?K1dlH=H4-Uc zk`axPU*4{~<)cYVVxq(uB!s18h|xt5SK4wlJqZdeZbxhEZoOSsYdGHK%hNPT@=`X; zfMsSXBQAZP_(SL|tt2_rraCwo0Q>EimausRVD5ChJj)E6ay_I_&EdYe$d#w)ls z!)$%e6FH8?pMkYP2lJM0hIvSZ@TM@=aP+6(kr(R{Gm(uoF-9CkAE%yc$dh)ga(W<_-=#m|y~fs`3moIVYomQiF&H;*oL|B5J6!7~NLEE0ef zHw|8K+e_Wkt*yC*b)~h`mLy`pU@QzcqNQqj2|}a__UUkG* zCM@l}_fs8QCS!=WrX3}7JnM|(0__;rnUPMLIhqr#q+Tj0Et*$vUenGu%?nsAF2;MD zUQNJRL2ANXwe+ruI*v9~XoayGvZY@Bng{AtZJCl8yTU)&mQeCnr!<1HqKSkf78Qvm zP{yc)orvmBcoKk1Gz2DaC>Z|vovRR?-#C__BCan_*}ko?-PQFNBw>zMxI!2FUC9*T JLPBM#8H~C8Ez|%2 diff --git a/openqa-testrepo-1/repodata/94339dfd9b7491b3f237654307fd0256f79ff2598a2618a2a03f9e58979031cf-filelists.sqlite.bz2 b/openqa-testrepo-1/repodata/94339dfd9b7491b3f237654307fd0256f79ff2598a2618a2a03f9e58979031cf-filelists.sqlite.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..1af02908de9d4558b8147c706ec41058bfc0a5cb GIT binary patch literal 761 zcmV2_af9n75{Ncav-)JBJ00KZb0stZi zKmweTEe!zC5;9NJPf@Z>8f>5%GBFxyra|gG5Yg%|X*4oCkV>iQo=vqHnTl$9Y5)KL z00w|)XaE2K!H{Us22C*yG#LgVgbe|s6A_>Q0VIL|Q_&M?qe-W!kkA-UP-*H78a*bS zpv28XO)^tS)}^8)*`4vsl_qp>rWL*o{O6}p~RT5CX> zIU^%JFJh(_B(*rU{Esbm{poqk#{uDh#0`=LLLl?hWZ@v7W;moL5Er^EV+E|XA<{u8 z(y2^i8i*4J*#!`mp%8J=w2UFFOxP>botuTvLv<2 zNLg*v@x%%X3CtQh+jsR;HTy|BDRe#4XS=?v(^;KWR07>?asm>l06}277)#(|Tu3E| zLnmXeN_Iajnz9m$?hMGWNM+^cpkQSNQ_L9J_GtyqmEW#x{65rBrh;Y+3P>dYD{nP> zL$NGI>yGE2aNIXcM(E+kd32=X6c6fL2;i{ZEtK9I%Hd&3q=3nx0omh%=<;!h-GMo9 zsxud~DoUswwbKLGR8Bqb9#w?3EohEuU>r$0iYhWRSL@$m?Nk(#G^BXz9z;%>rcxLl z3#emiW<{Nrb2KGhRBIiQ(#+#fe7Dbeqjw&f|1;dOPFCv@Zz9 zB35D4K>dpJ*_k1mKu1Nl5b{T-G(~Yz=W3SQ6?$zan-?6NmDNjKVLC?pMV=!6q_9^Q rm#_I5Vp}{1@6>3-MVwwtgIG4(b=9uQEtT&Oh5r|FML1B9sZeoI=%iDY literal 0 HcmV?d00001 diff --git a/openqa-testrepo-1/repodata/959374c7ce5bf7090059d5ccb2bb873e05e5a6765b965cd4aa028045cfd6eb64-primary.sqlite.bz2 b/openqa-testrepo-1/repodata/959374c7ce5bf7090059d5ccb2bb873e05e5a6765b965cd4aa028045cfd6eb64-primary.sqlite.bz2 deleted file mode 100644 index 5f1e50b5ccb711380a16d4db4e69d4512f2d1836..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1695 zcmV;Q24ML@T4*&fL0KkKS+9{+H2?=3|NsC0|NiRt|LXt${^-B||9m#c1i%0a0X#rJ zArJ#Vz#L!(e-Y*lv5=vV0+g+WNJ5!4Jv1O6qGdfN>W@!0x$pw zzyTUDG{6%808AqYz)YBoK){ks1QQ4oK&I3^Pg6#K4XDrthJZ9NG5|3E8X5o^0BEoa znUZdpf}2thPAC@zgd~IZWFzwZKcDc|5P#E2aBwhYSKcHS#sU%rHUyFtOqMKhm=T6J zdK@Q4ef9vu074j(X0<7@*lo3kdU(-3a{YF?4R|Iz zHU0m{ZaSDzc#vFvbD38aueGT2xI_UK@%P%Jm6Ly$m(rtx?ynB-eIm-ECk{V4jO*%G zIg&27Avn3T*BUje$0?3gZ-wrH5~xZSPaua5cDu{q-|eoY$r;)z&uv|*y<{I;r97TP zyK|+8V_szQlcbUml86uSMM=AM-?m1j(a9pLlGkW8lPlOlfeI7}5k61Kc|W_X3eu`d zuaa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@tYa+~47YGt`dnA;wIrI|VV9k0UfFYmpcO+AV2@3fYV^DDU+)@Al diff --git a/openqa-testrepo-1/repodata/9fa3b0a4d0e160140cc533ce1fef61e8b6e5c7f33765c142a0cd936d98a772ef-primary.xml.gz b/openqa-testrepo-1/repodata/9fa3b0a4d0e160140cc533ce1fef61e8b6e5c7f33765c142a0cd936d98a772ef-primary.xml.gz new file mode 100644 index 0000000000000000000000000000000000000000..e3112b7f0c9c0f31ababc72d538419d1b8eaec01 GIT binary patch literal 755 zcmVagw%4wj=|@#sLn4jRQx=erZgT zII^9x^6RmabnTeXG@-!-DT?ct?|aYwobinWmpVG9c3H3 z2Ae;?w&*lPX4gT69U?zLC~av2Ic1$-bY`Tib?OZv_l+u6<*jr>>J1YYo%V;IldQ_H z-J^}z-D0GmcB41ISOsjO`(`SrD;g|Uc2%3T;2HjUagFmuKskv+>IV>(0WV5Iih_m^ z#tCN$i?umRy}MK{Z?Eb+_1xRdjA#IrqPBwh5eeg%M6ngNaCMGCWYSoR zAF%IphF8Hdz(};((7Fabw8nK!Y+brwF_CJ?sM{8*6qFf0?)}W4`SY>ib9X{ULMc^4 zjr(aQHhfwO2Catt{nf|RI}RKmTWGo5i*?Z&P@NJQ(6ubhcd7tg%D&~pI>r3uC0eJKH*0kXES-f=1;wS^X`t_BUeF3Z6DZdymS8IT@VE!V{GL-Ul0;R zG>-g$7MuWE_$*$Lm;-PYEm!4&upr<|0%4RSWkhHa6zreh1s~)$@%+yBf8%_6#-8l_ ld#(O&{rsUGfA0N&Jk9&}*6=Lmzx$Vv{{$|Ci+`^O00000dF=oI literal 0 HcmV?d00001 diff --git a/openqa-testrepo-1/repodata/a1bc71e37cfd3bfa5af96572272fb7a8dc705107e00e96415fe05258e4a568da-filelists.xml.gz b/openqa-testrepo-1/repodata/a1bc71e37cfd3bfa5af96572272fb7a8dc705107e00e96415fe05258e4a568da-filelists.xml.gz deleted file mode 100644 index 41fc0e88be77f127e8c701e9f50f2decaa45b8f5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 229 zcmVgR8e zP)}oz$M#Hnf6o)Vcv)TW8dW9{*xNwP4;ue|AD0I2x39K$6Hjj4R!DlkYJ6^6{1IYu zet&1QkDM{>V&=_|*^Kz;5u&l98941IOqb3U;y5@;T-i4ydoG&3P^!qgyeLUFHOng% zR4HQHRaeE_l~tluUso!xZ6{eKaruql&CD93@f7UEhItMi!7TQv(T4-mSAh1+2pq#P fN;wmAc!Gte14S|?PIpK7iE#S|pmWbPB>?~cjALkh diff --git a/openqa-testrepo-1/repodata/a31754daacb6dafa2e545cbc2cff9390cbc8b81dd71f2296853833cfab616a06-other.xml.gz b/openqa-testrepo-1/repodata/a31754daacb6dafa2e545cbc2cff9390cbc8b81dd71f2296853833cfab616a06-other.xml.gz deleted file mode 100644 index cc7d6b59eafa768ee3036f573985f4995636907b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 298 zcmV+_0oDE=iwFP!0000013i#UZi6roh4($h$cya2HV{J^NV=#hwd?i(#vXneun{p8 z$L|oKtj2!xX=dIluj@F#AI|sQyNbzJFhFO#?Oj{3pYM;TVAsn_=|hLJ)jLksq zC~_1>n_49;npzztVx1|HWs@tJ2_U|L_0*{Nca<-)Nu!0s;U$OaKA^ z0RR9DKmuK|rHvFdGE>P%lwxL4kRGR$Gy_dEJx@^3^%@N{JwOIc02@$g1Obq0hK43U z8UPvq05s5IG-wR~8XPeiX`s*sfB*mngCNsD&;g@B7>0mJAxuptrjr!)Jxv~=qtY^Z zLnCSiPgBYO7FqKnDu}#mC7{{-R4d(P^5sXUviX6Cnb)#6e0@l&nV} zF_#hu5fEXfw0$~xo9Q7z$`7FxJKMKA%?lH2_TWUMu6!qur<$&y{I=UXx9?8UbT#&Q zK9MBoB%S)X;ld&!A|haF&@y=@PC#pX7<4lci#XJv0sxn(8Sq2#<@USi-#&RX8%wrO z*Mp}oWGmq(fb2aM9WUDFaVA4ZFo)daEhxfO1DbqmyJ6Xk4ge@fWup%L7`V! zGO^=G=@Fx!*8D&<9|GKwI1bpZ6zGM4kT4}cARXZtdD!eiMh6c*3?P{L67WPpVF9J8 z5F~IUD93ddFf=ZOC?jPOYaa{|?4x=YVvADDlG)M(T@wHo5u$_`9yS9Bw1I7ap(qQB zZOg)34VN&4Lh^%r{f>GkQX9H|swNpRQG*Q9tW7pp(%}`lGW0Oy2~?07g78HFKvOo{ z+C~+F!NGOj<*`aor7m7-QZUrBuxpkED?MU~IC^$zjEsg%c;&=kj$mp*-XcXxMOTDM z78E4nYJ4?~4R*?~{9BY5Xzv8UL|(b*7A%t0ywjK9f`Sf^WVhrs(R{1Z80i)-XWJU; z&bBE~Gtw)@mG}{YYo)7{XRlf4%>K%h`Z`D-J$LA-kaI$Jkw2`~Q1p(+MP$9#L6=DSBW}(mo<0KgK?(KhWp_j(FDsPk`ny^BZj-%BzGhFTx5U9fx VICs(xK#=pCUC9*TLP6=r^#}q(Mk4?K diff --git a/openqa-testrepo-1/repodata/d7b3175980f35ce5cec23a8ff3e5a215521b843fdd8968e2ef5367e4489ce1f9-primary.sqlite.bz2 b/openqa-testrepo-1/repodata/d7b3175980f35ce5cec23a8ff3e5a215521b843fdd8968e2ef5367e4489ce1f9-primary.sqlite.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..f2eb5d2398a7e5f3d318be6411db768d967e413c GIT binary patch literal 1974 zcmV;n2TAxsT4*&fL0KkKS$Mx8EC2_9|NsC0|NiRt|L_0*{_em3|NJ(@gunm-0XRT# z0TTg0LtJ17zY*TxYeCRt002@-Y&8>6KT0%VG62ZL(?dp@27@4NCYk^M4FRChvYG$@ z27mxTrbZJ+m_dkQX@DamOhXd@CQJYmAklyTBPJ6j0GLJ%N}s2qp@;#dgFpb&A&?kA z00uy4#AFQs85tS?000E0QjG#ek5TG9Oh$n98Vv!UX`lcM)OvseKmY&(KmY-zh&0H; zXwwKW3{5ZuWNCfb&Q zcmiBItPWm0J7h?RMo__o6r5L5D~QH8DFgj3W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i-Z>$q0^1lv8`{CpILI7 - 1682811794 + 1703880781 - 27ae97301a166cd3c889cbb34e2b9474c84fb987d9aad2486d6f8ff8d689c6c2 - ec579255111b2b6b3a066b7ac203fcc53d51584b76803f2f22221241323521d2 - - 1682811794 - 585 - 1129 + 9fa3b0a4d0e160140cc533ce1fef61e8b6e5c7f33765c142a0cd936d98a772ef + 7e8275da284c3e5cbfa40bd2c3faac6431b184a73ec4080e3b31ac3d68cf46e5 + + 1703880781 + 755 + 2223 - a1bc71e37cfd3bfa5af96572272fb7a8dc705107e00e96415fe05258e4a568da - 315fd13dbbb4a0a08771aa6e25a0fcfb10c43924c7b7199cbc5f0ff8569e22ac - - 1682811794 - 229 - 293 + 3fa758dde6e9328d318ad0f3b245565a3b7eee2bcdfca60795cd9815520dc316 + 047cd3a935e477c164f93f3512356a1050e995e33519d258906c6fce45c92ff3 + + 1703880781 + 287 + 460 - a31754daacb6dafa2e545cbc2cff9390cbc8b81dd71f2296853833cfab616a06 - 62367dbca00f1ee5ce5fc1a404c7bc0b31b827bc10d1b4f2893443d545f5f996 - - 1682811794 - 298 - 399 + 5e9b69a2fb1cd170ffe391487aa26be04d89f241ecce945a18d84ecf5cc794f5 + 5cb3b3e9506bc9375bb04eb5c053597991d590c6a0cf4f19f371c9c9b862592e + + 1703880781 + 361 + 676 - 959374c7ce5bf7090059d5ccb2bb873e05e5a6765b965cd4aa028045cfd6eb64 - 620c05308c34476b14d3fabb12dc2259f20a712cdd0e00e8a7914d2db183f3aa - - 1682811794 - 1695 + d7b3175980f35ce5cec23a8ff3e5a215521b843fdd8968e2ef5367e4489ce1f9 + 7e0f4ae41bb3a1da0a673382feedf22a7fd1c816b1151f12cb9f1bc38142d48d + + 1703880781 + 1974 106496 10 - 67e5f84f66eeaff16106aca978e0e0bf966ba05467c4bd9ad0f37fe8b083f6c1 - 40a94303f1a046be47d9f6ea8b4274917c9722736bbd04eda23ef65aa8ed5665 - - 1682811794 - 675 + 94339dfd9b7491b3f237654307fd0256f79ff2598a2618a2a03f9e58979031cf + 40f81925dbdc1c4fc48da78d750dd3954e15e85fdd20312d1f9080a1d6c3c21f + + 1703880781 + 761 28672 10 - c98f712fab78814531cb01234d603d299aac3efbeb433e92996a5410b995f96b - 6d195673fc7c4c64d819064b6ee26d1fa6b1eb8f7442deb5bc6e253d33d7e04b - - 1682811794 - 739 + 26935fe1816e282150f671c328808b740b7bc3ad42ecca2bb39d76452754fb12 + 7ae041f0d6649e66e9b813d680f1afc61d98763ccd89b64fba57eca373db62be + + 1703880781 + 849 24576 10 diff --git a/pandoc-common.spec b/pandoc-common.spec deleted file mode 100644 index 96e19bd..0000000 --- a/pandoc-common.spec +++ /dev/null @@ -1,26 +0,0 @@ -Name: pandoc-common -Version: 1 -Release: 1 -License: GPL -Group: Applications/Productivity -Summary: Dummy summary -BuildArch: noarch - -%description -This is a dummy description.- - -%prep - - -%build - - -%install - - -%files - - -%changelog -* Sat Apr 29 2023 John Doe - 1-1 -- Initial version diff --git a/tools/testpackages8 b/tools/testpackages8 new file mode 100755 index 0000000..4849e6e --- /dev/null +++ b/tools/testpackages8 @@ -0,0 +1,78 @@ +#!/usr/bin/env python3 + +# Copyright Red Hat +# +# This script 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 3 of the License, 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, see . +# +# Author: Adam Williamson +# Modifications: Trevor Cooper + +# Original Source: https://pagure.io/fedora-qa/qa-misc/blob/master/f/testpackages + +# Script to create test packages and repos (currently, a single repo +# containing a fake acpica-tools package) for openQA package +# management testing. + +import os +import shutil +import sys + +import rpmfluff + +# The concept behind using a fake (low-versioned) acpica-tools is +# so we can test updating from the official repos. It gives us a 99% +# assurance we have a package we will be able to update, as it's a +# very simple package that has minimal dependencies and rarely +# changes. It is not critical path, so updates to it do not themselves +# get tested (which can produce odd consequences and is why we no +# longer use python3-kickstart). It is present in both Rocky Linux 8 +# Rocky Linux 9 as well as in upstream Fedora mainline and Fedora ELN +# allowing us to match upstream changes more easily. + +pkgacpi = rpmfluff.SimpleRpmBuild('acpica-tools', '1', '1', ['noarch']) +pkgacpi.addVendor("Rocky Enterprise Software Foundation") +pkgacpi.addPackager("Rocky Linux Build System (Peridot) ") + +# temporary, while we're switching from pandoc to acpi +pkgpandoc = rpmfluff.SimpleRpmBuild('pandoc-common', '1', '1', ['noarch']) +pkgpandoc.addVendor("Rocky Enterprise Software Foundation") +pkgpandoc.addPackager("Rocky Linux Koji ") + +repo1 = rpmfluff.YumRepoBuild([pkgacpi, pkgpandoc]) +repo1dir = 'openqa-testrepo-1' + +def cleanup(repos=True): + dirs = [pkgacpi.get_base_dir(), pkgpandoc.get_base_dir()] + if repos: + dirs.extend((repo1dir,)) + for _dir in dirs: + if os.path.isdir(_dir): + shutil.rmtree(_dir) + +cleanup() + +os.mkdir(repo1dir) +repo1.repoDir = repo1dir +repo1.make('noarch') + +README = """This repository contains empty test packages for openQA package +management tool testing. The repository and packages were created with the +'tools/testpackages8' script from the openqa-testrepos repository: +https://git.resf.org/testing/openqa-testrepos +""" + +with open('/'.join((repo1dir, 'README')), 'w') as rmfh: + rmfh.write(README) + +cleanup(repos=False) diff --git a/tools/testpackages9 b/tools/testpackages9 new file mode 100755 index 0000000..f16d3e3 --- /dev/null +++ b/tools/testpackages9 @@ -0,0 +1,79 @@ +#!/usr/bin/env python3 + +# Copyright Red Hat +# +# This script 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 3 of the License, 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, see . +# +# Author: Adam Williamson +# Modifications: Trevor Cooper + +# Original Source: https://pagure.io/fedora-qa/qa-misc/blob/master/f/testpackages + +# Script to create test packages and repos (currently, a single repo +# containing a fake acpica-tools package) for openQA package +# management testing. + +import os +import shutil +import sys + +import rpmfluff +import rpmfluff.yumrepobuild + +# The concept behind using a fake (low-versioned) acpica-tools is +# so we can test updating from the official repos. It gives us a 99% +# assurance we have a package we will be able to update, as it's a +# very simple package that has minimal dependencies and rarely +# changes. It is not critical path, so updates to it do not themselves +# get tested (which can produce odd consequences and is why we no +# longer use python3-kickstart). It is present in both Rocky Linux 8 +# Rocky Linux 9 as well as in upstream Fedora mainline and Fedora ELN +# allowing us to match upstream changes more easily. + +pkgacpi = rpmfluff.SimpleRpmBuild('acpica-tools', '1', '1', ['noarch']) +pkgacpi.addVendor("Rocky Enterprise Software Foundation") +pkgacpi.addPackager("Rocky Linux Build System (Peridot) ") + +# temporary, while we're switching from pandoc to acpi +pkgpandoc = rpmfluff.SimpleRpmBuild('pandoc-common', '1', '1', ['noarch']) +pkgpandoc.addVendor("Rocky Enterprise Software Foundation") +pkgpandoc.addPackager("Rocky Linux Build System (Peridot) ") + +repo1 = rpmfluff.yumrepobuild.YumRepoBuild([pkgacpi, pkgpandoc]) +repo1dir = 'openqa-testrepo-1' + +def cleanup(repos=True): + dirs = [pkgacpi.get_base_dir(), pkgpandoc.get_base_dir()] + if repos: + dirs.extend((repo1dir,)) + for _dir in dirs: + if os.path.isdir(_dir): + shutil.rmtree(_dir) + +cleanup() + +os.mkdir(repo1dir) +repo1.repoDir = repo1dir +repo1.make('noarch') + +README = """This repository contains empty test packages for openQA package +management tool testing. The repository and packages were created with the +'tools/testpackages9' script from the openqa-testrepos repository: +https://git.resf.org/testing/openqa-testrepos +""" + +with open('/'.join((repo1dir, 'README')), 'w') as rmfh: + rmfh.write(README) + +cleanup(repos=False) -- 2.43.5 From 0110f90cefcbc08e465291f16fd9294ca8691fff Mon Sep 17 00:00:00 2001 From: AlanMarshall Date: Sat, 30 Dec 2023 15:45:10 +0000 Subject: [PATCH 2/2] Minor typo correction. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 564cc9e..3ed8da1 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ Complete! ## Usage -Once the `pyton3-rpmfluff` (and dependencies) packages are installed on of the version dependent scripts in this repository can be used to create the contents of the openqa-testrepo-1 repository. +Once the `python3-rpmfluff` (and dependencies) packages are installed, one of the version dependent scripts in this repository can be used to create the contents of the openqa-testrepo-1 repository. ### Rocky Linux 8 -- 2.43.5