From c0c657bd92911788b96d9670620eabf024453752 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 30 Sep 2010 22:15:13 +0100 Subject: Split meta-extras and meta-moblin out of the main repository Signed-off-by: Richard Purdie --- .../packages/yum/files/yum-install-recommends.py | 39 ---------------------- 1 file changed, 39 deletions(-) delete mode 100755 meta-extras/packages/yum/files/yum-install-recommends.py (limited to 'meta-extras/packages/yum/files/yum-install-recommends.py') diff --git a/meta-extras/packages/yum/files/yum-install-recommends.py b/meta-extras/packages/yum/files/yum-install-recommends.py deleted file mode 100755 index 64716f2c3..000000000 --- a/meta-extras/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) - - -- cgit v1.2.3