[Yum-devel] [PATCH 1/2] Remove some unused variables.

Ville Skyttä ville.skytta at iki.fi
Sun Jan 8 14:33:38 UTC 2012


---
 cli.py    |    4 ----
 output.py |    1 -
 2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/cli.py b/cli.py
index d5dcfaf..62705ad 100755
--- a/cli.py
+++ b/cli.py
@@ -512,7 +512,6 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
         rmpkgs = []
         stuff_to_download = False
         install_only = True
-        remove_only  = True
         for txmbr in self.tsInfo.getMembers():
             if txmbr.ts_state not in ('i', 'u'):
                 install_only = False
@@ -520,7 +519,6 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
                 if po:
                     rmpkgs.append(po)
             else:
-                remove_only = False
                 stuff_to_download = True
                 po = txmbr.po
                 if po:
@@ -868,7 +866,6 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
         else:
             # go through the userlist - look for items that are local rpms. If we find them
             # pass them off to installLocal() and then move on
-            localupdates = []
             for item in userlist:
                 if (item.endswith('.rpm') and (yum.misc.re_remote_url(item) or
                                                os.path.exists(item))):
@@ -1015,7 +1012,6 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
             1 = we've errored, exit with error string
             2 = we've got work yet to do, onto the next stage
         """
-        oldcount = len(self.tsInfo)
 
         all_rms = []
         for arg in userlist:
diff --git a/output.py b/output.py
index 01f0c40..d8af2fd 100755
--- a/output.py
+++ b/output.py
@@ -2528,7 +2528,6 @@ to exit.
         for old in self.history.old(tids, limit=limit):
             if limit is not None and num and (num +len(old.trans_data)) > limit:
                 break
-            last = None
 
             for hpkg in old.trans_data: # Find a pkg to go with each cmd...
                 if limit is None:
-- 
1.7.7.5



More information about the Yum-devel mailing list