diff options
author | Chulwoo Shin <cw1.shin@samsung.com> | 2017-04-17 20:45:58 +0900 |
---|---|---|
committer | Chulwoo Shin <cw1.shin@samsung.com> | 2017-04-17 20:45:58 +0900 |
commit | b675c2e89aff44f4f8068478ee052f9621ff6ef7 (patch) | |
tree | 8b09ae74e84fe06595630ebd1408d47821d39858 | |
parent | d7bd89075d7003f2eedea3b6af2612107946e05c (diff) | |
download | tic-core-b675c2e89aff44f4f8068478ee052f9621ff6ef7.tar.gz tic-core-b675c2e89aff44f4f8068478ee052f9621ff6ef7.tar.bz2 tic-core-b675c2e89aff44f4f8068478ee052f9621ff6ef7.zip |
[TIC-CORE] filter self-referencing
- filter self-referencing (e.g. vim-base rpm)
Change-Id: I603341b63af20b435ae346e4e7c72dcd369d28e5
Signed-off-by: Chulwoo Shin <cw1.shin@samsung.com>
-rw-r--r-- | tic/dependency.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tic/dependency.py b/tic/dependency.py index 5cab72e..19864b9 100644 --- a/tic/dependency.py +++ b/tic/dependency.py @@ -213,6 +213,9 @@ def get_installed_packages(recipe, repoinfo, pkg_group): if pkg_info.get(dep_tag): for req in pkg_info.get(dep_tag): choose = None + # self-reference (e.g. vim-base) + if req['name'] == pkg_info['name']: + continue # Find dependency rpm based on capability/files if req['name'] in provides: # capability : [provide_rpm_1, provide_rpm_2, ... ] |