From 3c7cdc5133c93648a2561c43f911634e3fd8d5e7 Mon Sep 17 00:00:00 2001 From: "jkeating@localhost.localdomain" <> Date: Tue, 10 Oct 2006 23:59:50 -0400 Subject: [PATCH] Add some more comments --- gather/gather.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gather/gather.py b/gather/gather.py index 7760fed8..4c7035c3 100755 --- a/gather/gather.py +++ b/gather/gather.py @@ -17,7 +17,8 @@ import sys import yum def create_yumobj(yumconf): -# Create a yum object to act upon +# Create a yum object to act upon. This may move to a higher +# level file and get passed to this module. myYum = yum.yumBase() myYum.doConfigSetup(fn=yumconf) myYum.doRepoSetup() @@ -25,6 +26,9 @@ def create_yumobj(yumconf): return myYum def download_packages(yumobj, pkglist): +# for now a simple function to download packages. +# Needed are ways to define where to put the packages, +# cleaning up multiple returns from searching pkgobjs = [] for pkg in pkglist: pkgobjs.extend(yumobj.pkgSack.searchNevra(name=pkg))