diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2017-06-20 10:58:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-28 15:52:16 +0100 |
commit | c36ca7c5c67181dbb5728d205b5d5a5ad2bbc910 (patch) | |
tree | bf6b15e8584e8081ebc2e5768460a22cd64c1c1b | |
parent | 06bb7a7daccb3d433dce66398467673b69844652 (diff) | |
download | poky-c36ca7c5c67181dbb5728d205b5d5a5ad2bbc910.tar.gz |
lib/oe/distro_check: update openSUSE to use Leap url formats
Since openSUSE switched to their dual development model of Leap and
Tumbleweed the urls we need to check for package lists has changed. Update
get_latest_released_opensuse_source_package_list() to use the new Leap
urls.
(From OE-Core rev: 263da717ba689eb7efe99234566e2b474e8ce95a)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oe/distro_check.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py index 37f04ed359..7a727ddaba 100644 --- a/meta/lib/oe/distro_check.py +++ b/meta/lib/oe/distro_check.py | |||
@@ -77,10 +77,10 @@ def get_latest_released_fedora_source_package_list(d): | |||
77 | 77 | ||
78 | def get_latest_released_opensuse_source_package_list(d): | 78 | def get_latest_released_opensuse_source_package_list(d): |
79 | "Returns list of all the name os packages in the latest opensuse distro" | 79 | "Returns list of all the name os packages in the latest opensuse distro" |
80 | latest = find_latest_numeric_release("http://download.opensuse.org/source/distribution/",d) | 80 | latest = find_latest_numeric_release("http://download.opensuse.org/source/distribution/leap", d) |
81 | 81 | ||
82 | package_names = get_source_package_list_from_url("http://download.opensuse.org/source/distribution/%s/repo/oss/suse/src/" % latest, "main", d) | 82 | package_names = get_source_package_list_from_url("http://download.opensuse.org/source/distribution/leap/%s/repo/oss/suse/src/" % latest, "main", d) |
83 | package_names |= get_source_package_list_from_url("http://download.opensuse.org/update/%s/src/" % latest, "updates", d) | 83 | package_names |= get_source_package_list_from_url("http://download.opensuse.org/update/leap/%s/oss/src/" % latest, "updates", d) |
84 | return latest, package_names | 84 | return latest, package_names |
85 | 85 | ||
86 | def get_latest_released_mandriva_source_package_list(d): | 86 | def get_latest_released_mandriva_source_package_list(d): |
@@ -161,7 +161,7 @@ def create_distro_packages_list(distro_check_dir, d): | |||
161 | ("Debian", get_latest_released_debian_source_package_list), | 161 | ("Debian", get_latest_released_debian_source_package_list), |
162 | ("Ubuntu", get_latest_released_ubuntu_source_package_list), | 162 | ("Ubuntu", get_latest_released_ubuntu_source_package_list), |
163 | ("Fedora", get_latest_released_fedora_source_package_list), | 163 | ("Fedora", get_latest_released_fedora_source_package_list), |
164 | ("OpenSuSE", get_latest_released_opensuse_source_package_list), | 164 | ("openSUSE", get_latest_released_opensuse_source_package_list), |
165 | ("Mandriva", get_latest_released_mandriva_source_package_list), | 165 | ("Mandriva", get_latest_released_mandriva_source_package_list), |
166 | ("Clear", get_latest_released_clear_source_package_list), | 166 | ("Clear", get_latest_released_clear_source_package_list), |
167 | ) | 167 | ) |