From patchwork Fri Nov 4 20:19:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 80922 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp167262qge; Fri, 4 Nov 2016 13:39:41 -0700 (PDT) X-Received: by 10.98.84.135 with SMTP id i129mr29474766pfb.93.1478291981268; Fri, 04 Nov 2016 13:39:41 -0700 (PDT) Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id h29si18423402pfd.139.2016.11.04.13.39.40; Fri, 04 Nov 2016 13:39:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id E59F671C5B; Fri, 4 Nov 2016 20:39:26 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by mail.openembedded.org (Postfix) with ESMTP id 8512F71B18 for ; Fri, 4 Nov 2016 20:19:46 +0000 (UTC) Received: by mail-wm0-f44.google.com with SMTP id f82so12274073wmf.1 for ; Fri, 04 Nov 2016 13:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=GXv5l9W18D6eP77mnyaH3rlqV4GXe33va/CUw+rgMhU=; b=axBGuKvpLU7lH/NeAJuuChGF6Tp8SiZjy/80mP5es9ye7q7v/lrZjyOlcSevHxRJl2 spd8w/LyYwQH8fhmPOyuk7mKop1ldBdxf+jMmMkTODnEGB5LUIYUQ+Y5EY/IndXXA0D0 CBr3z+RhVmsdWl4ATH5ZkvjMKQvZ25uRj5gUi3tWLVs+E/kaCcoAN2fA+OtzLvTBLK0l nUW9fDIYgwN5ipIQW7v0VKGGw4KiPmsdHTrzAn7Q2pJj1g/Bl4ciuBde0+6ieITmCzS9 f+otUqW00B8vbfakyQmKx1keaD07sfrwJueMdph3s0sg0zPufHFS92rF8eNWsz0eHkU9 Zdrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=GXv5l9W18D6eP77mnyaH3rlqV4GXe33va/CUw+rgMhU=; b=KcRJ8q79PEcNEhv+UEDc3nSjoCUQlNueFm+Bt/TaQlJEwHUPDI5g3+g2czbznxo85K GyPxJLCADIY6A52DmGUDVXishZnv/1R6PxKGdQRIQt4VtAkKmOzFXteLi8WHeV9PDsT/ Weqps2wV29MTJws0Z78NMCtfnmHIcHtxdaPK6VGjhBoHghvrCuAcR0+/2HpBfZmsRcn3 eJvhsZzvgm6VHrprBzG6pqqo51DlB7jMQZ9pHc6BU4cdBCsE2ppeIjXJ/gS0V94BiNSH XxNlskiLu6eAurPHHxmdpzLlLcb/ej2zaQT4mIDNLKD0dXIaAmBOh5EClBvIGnh3malw mcww== X-Gm-Message-State: ABUngvdV44rX8SjuQCa/SRZakjLaL1fg0azu4vNKrw0KxODlBFtXBvdmqFA/8W/UVdCvBpvj X-Received: by 10.194.115.135 with SMTP id jo7mr13331777wjb.21.1478290787435; Fri, 04 Nov 2016 13:19:47 -0700 (PDT) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id w66sm6371763wme.4.2016.11.04.13.19.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Nov 2016 13:19:46 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 4 Nov 2016 20:19:44 +0000 Message-Id: <1478290784-20316-1-git-send-email-ross.burton@intel.com> X-Mailer: git-send-email 2.8.1 Subject: [OE-core] [PATCH] distro_check: MeeGo is long dead, compare against Clear Linux instead X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org 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 --- 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 --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: