forked from release-engineering/pubtools-pulplib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Populate optional comps.xml unit fields [RHELDST-25995]
When pushing comps.xml files, if a unit already exists in Pulp, fields that have been removed from the comps.xml did not get overwritten. This resulted in unexpected older data being published from Pulp. This change extends the comps.xml parsing by giving an option to fill in all fields in comp unit classes from pulp-rpm. When the data is uploaded into pulp this will overwrite old unwanted data.
- Loading branch information
1 parent
7cf6636
commit 5803674
Showing
4 changed files
with
292 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE comps | ||
PUBLIC '-//Red Hat, Inc.//DTD Comps info//EN' | ||
'comps.dtd'> | ||
|
||
<!-- | ||
A comps file for testing. | ||
This was originally copied from sample-comps.xml, but trimmed down to | ||
test field population | ||
--> | ||
|
||
<comps> | ||
|
||
|
||
<group> | ||
<id>3d-printing</id> | ||
<name>3D Printing</name> | ||
<name xml:lang="af">3D-drukwerk</name> | ||
<name xml:lang="bg">3D Печатане</name> | ||
<uservisible>true</uservisible> | ||
</group> | ||
<group> | ||
<id>admin-tools</id> | ||
<name>Administration Tools</name> | ||
<name xml:lang="af">Administrasienutsgoed</name> | ||
<name xml:lang="am">የአስተዳደሩ መሣሪያዎች</name> | ||
<description>This group is a collection of graphical administration tools for the system, such as for managing user accounts and configuring system hardware.</description> | ||
<description xml:lang="sr">Ова група је скуп графичких системских административних алатки, нпр. за управљање корисничким налозима и подешавање хардвера у систему.</description> | ||
<description xml:lang="sr@Latn">Ova grupa je skup grafičkih sistemskih administrativnih alatki, npr. za upravljanje korisničkim nalozima i podešavanje hardvera u sistemu.</description> | ||
<packagelist> | ||
<packagereq type="mandatory">abrt-desktop</packagereq> | ||
<packagereq type="mandatory">gnome-disk-utility</packagereq> | ||
</packagelist> | ||
</group> | ||
|
||
|
||
<category> | ||
<id>kde-desktop-environment</id> | ||
<name>KDE Desktop</name> | ||
<name xml:lang="af">KDE-werkskerm</name> | ||
<name xml:lang="as">KDE ডেস্কটপ</name> | ||
<grouplist> | ||
<groupid>kde-office</groupid> | ||
<groupid>kde-telepathy</groupid> | ||
</grouplist> | ||
</category> | ||
<category> | ||
<id>xfce-desktop-environment</id> | ||
<name>Xfce Desktop</name> | ||
<name xml:lang="uk">Графічне середовище Xfce</name> | ||
<name xml:lang="zh_CN">Xfce 桌面环境</name> | ||
<description>A lightweight desktop environment that works well on low end machines.</description> | ||
<description xml:lang="as">এটা লঘুভাৰৰ ডেষ্কট'প পৰিবেশ যি নিম্ন বিন্যাসৰ যন্ত্ৰত ভালকৈ কাম কৰি ।</description> | ||
<description xml:lang="ast">Un entornu d'escritoriu llixeru que furrula bien en máquines pequeñes.</description> | ||
<display_order>15</display_order> | ||
<grouplist> | ||
<groupid>xfce-apps</groupid> | ||
<groupid>xfce-desktop</groupid> | ||
</grouplist> | ||
</category> | ||
|
||
|
||
<environment> | ||
<id>basic-desktop-environment</id> | ||
<name>Basic Desktop</name> | ||
<description>X Window System with a choice of window manager.</description> | ||
<description xml:lang="af">X Window-stelsel met ’n keuse van vensterbestuurder.</description> | ||
<description xml:lang="bg">X Window система с избор на мениджър на прозорци.</description> | ||
<display_order><!-- tweaked: try empty display order --></display_order> | ||
<grouplist> | ||
<groupid>networkmanager-submodules</groupid> | ||
<groupid>standard</groupid> | ||
</grouplist> | ||
</environment> | ||
<environment> | ||
<id>cinnamon-desktop-environment</id> | ||
<name>Cinnamon Desktop</name> | ||
<name xml:lang="en_GB">Cinnamon Desktop</name> | ||
<name xml:lang="fr">Bureau Cinnamon</name> | ||
<description xml:lang="ca">Cinnamon proporciona un escriptori amb un disseny tradicional, funcionalitats avançades, facilitat d'ús, potent i flexible.</description> | ||
<description xml:lang="es">Cinnamon proporciona un entorno de escritorio tradicional, con características avanzadas, fácil de usar, potente y flexible.</description> | ||
<display_order>22</display_order> | ||
<grouplist> | ||
<groupid>input-methods</groupid> | ||
<groupid>multimedia</groupid> | ||
</grouplist> | ||
<optionlist> | ||
<groupid>libreoffice</groupid> | ||
</optionlist> | ||
</environment> | ||
|
||
<langpacks> | ||
<match install="stardict-dic-%s" name="stardict"/> | ||
<match install="tagainijisho-dic-%s" name="tagainijisho-common"/> | ||
<match install="tesseract-langpack-%s" name="tesseract"/> | ||
<match install="tkgate-%s" name="tkgate"/> | ||
</langpacks> | ||
<langpacks> | ||
<!-- An empty langpack doesn't really make much sense hey--> | ||
</langpacks> | ||
</comps> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters