diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:14:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:29:45 +0100 |
commit | 29d6678fd546377459ef75cf54abeef5b969b5cf (patch) | |
tree | 8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/packages/yum/files/yum-install-recommends.py | |
parent | da49de6885ee1bc424e70bc02f21f6ab920efb55 (diff) | |
download | openembedded-core-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz openembedded-core-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.bz2 openembedded-core-29d6678fd546377459ef75cf54abeef5b969b5cf.zip |
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things
and is generally overwhelming. This commit splits it into several
logical sections roughly based on function, recipes.txt gives more
information about the classifications used.
The opportunity is also used to switch from "packages" to "recipes"
as used in OpenEmbedded as the term "packages" can be confusing to
people and has many different meanings.
Not all recipes have been classified yet, this is just a first pass
at separating things out. Some packages are moved to meta-extras as
they're no longer actively used or maintained.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/yum/files/yum-install-recommends.py')
-rwxr-xr-x | meta/packages/yum/files/yum-install-recommends.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/meta/packages/yum/files/yum-install-recommends.py b/meta/packages/yum/files/yum-install-recommends.py deleted file mode 100755 index 64716f2c3e..0000000000 --- a/meta/packages/yum/files/yum-install-recommends.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python -import os, sys - -root = sys.argv[1] -installcmd = sys.argv[2] - -# -# Take an rpm image and look through for Recommends:. For each recommends -# found, try and install any matching packages including any Recommends for -# packages installed by us. -# - - -def get_recommends(): - deps = [] - output = os.popen("rpm --root %s -aq --recommends" % (root)) - lines = output.readlines() - for line in lines: - line = line.replace("(none)","") - if line: - deps.append(line.split()[0]) - return deps - -processed = [] - -while True: - toinstall = [] - recommends = set(get_recommends()) - for item in recommends: - if item not in processed: - toinstall.append(item) - if len(toinstall) != 0: - print "Installing %s" % " ".join(toinstall) - os.system("%s %s" % (installcmd, " ".join(toinstall))) - else: - break - processed.extend(toinstall) - - |