Bug 721134
Summary: | [RFE] Nicer return format for dependency resolution | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Justin Sherrill <jsherril> |
Component: | user-experience | Assignee: | Pradeep Kilambi <pkilambi> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | skarmark, tsanders |
Target Milestone: | --- | Keywords: | FutureFeature, Triaged |
Target Release: | Sprint 27 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-02-24 20:14:05 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 684061 |
Description
Justin Sherrill
2011-07-13 19:50:06 UTC
Also to note you would have to handle circular dependencies. So within a branch of the tree, if a package already exists but is required again, it could be ignored (within that branch). for example: foo-1.0 -> bar-1.0 -> nano-1.0 -> bar-1.0 we don't need to list bar-1.0 twice, since it is already in the branch, even if nano requires it. Another note to make. If the amount of data is too large due to package duplication, it would be fine for the return format to return a huge list of all the package objects, as well as the above tree and only include the id or nvrea as the pkg node. Something like (as the full format): { dep_tree: [...full dep tree with only pkg ids...], missing_deps: [list of missing.], all_pkgs: [ list of package objects ] } This would ensure that the full package object for each package is only included once. If we include the full object in the dep tree it may appear many times (especially for something like glibc). Just a though :) build: 0.224 verified [root@preethi integration]# rpm -q pulp pulp-0.0.234-1.fc15.noarch [root@preethi integration]# python deptest.py upload zsh starting recursive solve Tue Sep 27 15:23:45 2011 ========= Non Recursive Results ============ # of deps: 0 ========= Missing Dependencies ========= {'mktemp': [], 'libdl.so.2(GLIBC_2.2.5)(64bit)': [], 'grep': [], 'libtinfo.so.5()(64bit)': [], 'libdl.so.2()(64bit)': [], 'libc.so.6(GLIBC_2.11)(64bit)': [], 'libncursesw.so.5()(64bit)': [], 'rtld(GNU_HASH)': [], 'coreutils': [], '/bin/sh': [], 'fileutils': [], 'libm.so.6(GLIBC_2.2.5)(64bit)': [], '/sbin/install-info': [], 'libm.so.6()(64bit)': []} ========= Recursive Results ============ # of deps: 0 ========= Missing Dependencies ========= {'mktemp': [], 'libdl.so.2(GLIBC_2.2.5)(64bit)': [], 'grep': [], 'libtinfo.so.5()(64bit)': [], 'libdl.so.2()(64bit)': [], 'libc.so.6(GLIBC_2.11)(64bit)': [], 'libncursesw.so.5()(64bit)': [], 'rtld(GNU_HASH)': [], 'coreutils': [], '/bin/sh': [], 'fileutils': [], 'libm.so.6(GLIBC_2.2.5)(64bit)': [], '/sbin/install-info': [], 'libm.so.6()(64bit)': []} ========= Dependency Tree ========= {'zsh-4.3.10-5.fc14.x86_64': {('coreutils', None, (None, None, None)): [], ('grep', None, (None, None, None)): [], ('libdl.so.2()(64bit)', None, (None, None, None)): [], ('/sbin/install-info', None, (None, None, None)): [], ('libtinfo.so.5()(64bit)', None, (None, None, None)): [], ('mktemp', None, (None, None, None)): [], ('libc.so.6(GLIBC_2.11)(64bit)', None, (None, None, None)): [], ('libdl.so.2(GLIBC_2.2.5)(64bit)', None, (None, None, None)): [], ('libm.so.6()(64bit)', None, (None, None, None)): [], ('rtld(GNU_HASH)', None, (None, None, None)): [], ('fileutils', None, (None, None, None)): [], ('libncursesw.so.5()(64bit)', None, (None, None, None)): [], ('/bin/sh', None, (None, None, None)): [], ('libm.so.6(GLIBC_2.2.5)(64bit)', None, (None, None, None)): []}} 1 End recursive solve Tue Sep 27 15:23:45 2011 Pulp v1.0 is released Closed Current Release. Pulp v1.0 is released. |