diff --git a/helpers/yum-get-description.py b/helpers/yum-get-description.py index 424106b..9478456 100755 --- a/helpers/yum-get-description.py +++ b/helpers/yum-get-description.py @@ -1,6 +1,7 @@ #!/usr/bin/python # # Copyright (C) 2007 Richard Hughes +# Copyright (C) 2007 Luke Macken # # Licensed under the GNU General Public License Version 2 # @@ -9,12 +10,9 @@ # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. -import yum import sys -my = yum.YumBase() -#my.doConfigSetup() -my.conf.cache = 1 - -sys.exit(1) - +from yumBackend import PackageKitYumBackend +package = sys.argv[1] +backend = PackageKitYumBackend(sys.argv[1:]) +backend.get_description(package)