[gnome-boxes/osinfo-from-server: 49/53] recommended-downloads: Change XML syntax for Osinfo.id




commit dff6cb5d0da6cf040e3a9d7040230dd05502739c
Author: Felipe Borges <felipeborges gnome org>
Date:   Tue Apr 12 11:46:33 2022 +0200

    recommended-downloads: Change XML syntax for Osinfo.id

 data/recommended-downloads.xml | 20 ++++++++++----------
 src/util-app.vala              |  2 +-
 2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/data/recommended-downloads.xml b/data/recommended-downloads.xml
index 6502791b..51b885fe 100644
--- a/data/recommended-downloads.xml
+++ b/data/recommended-downloads.xml
@@ -9,14 +9,14 @@
   available.
  -->
 <list>
-  <os_id>http://redhat.com/rhel/</os_id>
-  <os_id>http://rockylinux.org/rocky/</os_id>
-  <os_id>http://fedoraproject.org/fedora/</os_id>
-  <os_id>http://fedoraproject.org/silverblue/</os_id>
-  <os_id>http://ubuntu.com/ubuntu/</os_id>
-  <os_id>http://opensuse.org/opensuse/15.4</os_id>
-  <os_id>http://opensuse.org/opensuse/tumbleweed</os_id>
-  <os_id>http://debian.org/debian/</os_id>
-  <os_id>http://endlessos.com/eos/</os_id>
-  <os_id>http://gnome.org/gnome/nightly</os_id>
+  <os id="http://redhat.com/rhel/"/>
+  <os id="http://rockylinux.org/rocky/"/>
+  <os id="http://fedoraproject.org/fedora/"/>
+  <os id="http://fedoraproject.org/silverblue/"/>
+  <os id="http://ubuntu.com/ubuntu/"/>
+  <os id="http://opensuse.org/opensuse/15.4"/>
+  <os id="http://opensuse.org/opensuse/tumbleweed/"/>
+  <os id="http://debian.org/debian/"/>
+  <os id="http://endlessos.com/eos/"/>
+  <os id="http://gnome.org/gnome/nightly"/>
 </list>
diff --git a/src/util-app.vala b/src/util-app.vala
index d6cfeab4..65aba759 100644
--- a/src/util-app.vala
+++ b/src/util-app.vala
@@ -204,7 +204,7 @@ public async GLib.List<Osinfo.Media>? get_recommended_downloads () {
         GLib.List<Osinfo.Media> list = new GLib.List<Osinfo.Media> ();
         var os_db = MediaManager.get_default ().os_db;
         for (Xml.Node* iter = root->children; iter != null; iter = iter->next) {
-            var os_id = iter->get_content ();
+            var os_id = iter->get_prop ("id");
 
             Osinfo.Os? os;
             try {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]