[gnome-continuous-yocto/gnomeostree-3.28-rocko: 3308/8267] distro_check: MeeGo is long dead, compare against Clear Linux instead
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 3308/8267] distro_check: MeeGo is long dead, compare against Clear Linux instead
- Date: Sun, 17 Dec 2017 00:27:04 +0000 (UTC)
commit 4e6c5d87691ef96cb956b880c35f9a5bfeb7a309
Author: Ross Burton <ross burton intel com>
Date: Fri Nov 4 20:17:38 2016 +0000
distro_check: MeeGo is long dead, compare against Clear Linux instead
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 ]
(From OE-Core rev: 006c4db0974c42ff0f6950dd24e61c008f801679)
Signed-off-by: Ross Burton <ross burton intel com>
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
meta/lib/oe/distro_check.py | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
---
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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]