diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2017-01-02 15:14:41 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-14 14:42:16 +0000 |
commit | 372bcd3c978524fa2ca31e4fe14f288f67562cdb (patch) | |
tree | 81a8bbbf8bf754f9891e81ccfdc80ea5e1ec32ac /meta/recipes-devtools/python/python-smartpm/smart-cache.py-getPackages-matches-name-version.patch | |
parent | b70f96a17fc13a74c04fd56e34cdc8f84dbf2f69 (diff) | |
download | poky-372bcd3c978524fa2ca31e4fe14f288f67562cdb.tar.gz |
python-smartpm: remove the recipe
(From OE-Core rev: 9ff0e8b4012f1e68f6caebc3027f9d1bada00f13)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python-smartpm/smart-cache.py-getPackages-matches-name-version.patch')
-rw-r--r-- | meta/recipes-devtools/python/python-smartpm/smart-cache.py-getPackages-matches-name-version.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm/smart-cache.py-getPackages-matches-name-version.patch b/meta/recipes-devtools/python/python-smartpm/smart-cache.py-getPackages-matches-name-version.patch deleted file mode 100644 index 225b02f964..0000000000 --- a/meta/recipes-devtools/python/python-smartpm/smart-cache.py-getPackages-matches-name-version.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | From ee05e55e84b53f4bb0d0baba13ca47a8f84b7cb4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Wed, 30 Sep 2015 01:12:52 -0700 | ||
4 | Subject: [PATCH] smart:cache.py: getPackages() matches name + arch | ||
5 | |||
6 | It only matched name ony in the past, for example: | ||
7 | smart install busybox (matched) | ||
8 | but: | ||
9 | smart install busybox@core2_64 (didn't match) | ||
10 | |||
11 | The installation is very slow when no match since it would seach all the | ||
12 | packages in the repo | ||
13 | This patch makes it match both. | ||
14 | |||
15 | Upstream-Status: Pending | ||
16 | |||
17 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
18 | --- | ||
19 | smart/cache.py | 3 ++- | ||
20 | smart/ccache.c | 9 ++++++++- | ||
21 | 2 files changed, 10 insertions(+), 2 deletions(-) | ||
22 | |||
23 | diff --git a/smart/control.py b/smart/control.py | ||
24 | index d44abe7..f23a604 100644 | ||
25 | --- a/smart/control.py | ||
26 | +++ b/smart/control.py | ||
27 | @@ -876,9 +876,13 @@ class Control(object): | ||
28 | objects = [] | ||
29 | |||
30 | # If we find packages with exactly the given | ||
31 | - # name or name-version, use them. | ||
32 | - for pkg in self._cache.getPackages(s): | ||
33 | - if pkg.name == s or "%s-%s" % (pkg.name, pkg.version) == s: | ||
34 | + # name, name-version, or name@arch, use them. | ||
35 | + s_name = s | ||
36 | + if "@" in s: | ||
37 | + s_name = s.split("@")[0] | ||
38 | + for pkg in self._cache.getPackages(s_name): | ||
39 | + if pkg.name == s or "%s-%s" % (pkg.name, pkg.version) == s \ | ||
40 | + or "%s@%s" % (pkg.name, pkg.version.split('@')[1]) == s: | ||
41 | objects.append((1.0, pkg)) | ||
42 | |||
43 | if not objects: | ||