diff mbox

distro_check: MeeGo is long dead, compare against Clear Linux instead

Message ID 1478290784-20316-1-git-send-email-ross.burton@intel.com
State Accepted
Commit 006c4db0974c42ff0f6950dd24e61c008f801679
Headers show

Commit Message

Ross Burton Nov. 4, 2016, 8:19 p.m. UTC
Instead of checking against a file that represents a distribution that hasn't
existed for years, fetch package names for Clear Linux instead.

[ YOCTO #10601 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 meta/lib/oe/distro_check.py | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

-- 
2.8.1

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox

Patch

diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py
index 00c827e..c666ddc 100644
--- a/meta/lib/oe/distro_check.py
+++ b/meta/lib/oe/distro_check.py
@@ -43,15 +43,6 @@  def package_name_from_srpm(srpm):
     (name, version, release) = srpm.replace(".src.rpm", "").rsplit("-", 2)
     return name
 
-def get_latest_released_meego_source_package_list(d):
-    "Returns list of all the name os packages in the latest meego distro"
-
-    package_names = set()
-    with open("/tmp/Meego-1.1", "r") as f:
-        for line in f:
-            package_names.add(line.strip() + ":" + "main")
-    return "1.1", package_names
-
 def get_source_package_list_from_url(url, section, d):
     "Return a sectioned list of package names from a URL list"
 
@@ -99,6 +90,11 @@  def get_latest_released_mandriva_source_package_list(d):
     package_names |= get_source_package_list_from_url("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/%s/SRPMS/main/updates/" % latest, "updates", d)
     return latest, package_names
 
+def get_latest_released_clear_source_package_list(d):
+    latest = find_latest_numeric_release("https://download.clearlinux.org/releases/", d)
+    package_names = get_source_package_list_from_url("https://download.clearlinux.org/releases/%s/clear/source/SRPMS/" % latest, "main", d)
+    return latest, package_names
+
 def find_latest_debian_release(url, d):
     "Find the latest listed debian release on the given url"
 
@@ -167,7 +163,7 @@  def create_distro_packages_list(distro_check_dir, d):
                             ("Fedora", get_latest_released_fedora_source_package_list),
                             ("OpenSuSE", get_latest_released_opensuse_source_package_list),
                             ("Mandriva", get_latest_released_mandriva_source_package_list),
-                            ("Meego", get_latest_released_meego_source_package_list)
+                            ("Clear", get_latest_released_clear_source_package_list),
                            )
 
     for name, fetcher_func in per_distro_functions: