* [gentoo-commits] gentoo-x86 commit in app-portage/esearch/files: 1.1-Use-of-undefined-variable-in-sync.patch
@ 2012-04-23 21:03 Paul Varner (fuzzyray)
0 siblings, 0 replies; only message in thread
From: Paul Varner (fuzzyray) @ 2012-04-23 21:03 UTC (permalink / raw
To: gentoo-commits
fuzzyray 12/04/23 21:03:36
Added: 1.1-Use-of-undefined-variable-in-sync.patch
Log:
Revison bump to fix undefined variable in esync
(Portage version: 2.1.10.57/cvs/Linux x86_64)
Revision Changes Path
1.1 app-portage/esearch/files/1.1-Use-of-undefined-variable-in-sync.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/esearch/files/1.1-Use-of-undefined-variable-in-sync.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/esearch/files/1.1-Use-of-undefined-variable-in-sync.patch?rev=1.1&content-type=text/plain
Index: 1.1-Use-of-undefined-variable-in-sync.patch
===================================================================
From be82bbc05e3f31d52f45561125e02d764cce7e7f Mon Sep 17 00:00:00 2001
From: gdvl <gdvl@gentp>
Date: Sat, 21 Apr 2012 12:14:03 +0200
Subject: [PATCH] Use of undefined variable in sync()
The variable 'warnings' in sync() is undefined if esync is called
without --layman-sync. This causes esync to fail when executing the
'if warnings ...' statement.
---
esearch/sync.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/esearch/sync.py b/esearch/sync.py
index 5748698..a147ac1 100755
--- a/esearch/sync.py
+++ b/esearch/sync.py
@@ -192,6 +192,8 @@ def layman_sync(config):
def sync(config):
+ warnings = None
+
tree_old = gettree("old", config)
if config['layman-sync']:
--
1.7.8.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-04-23 21:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-23 21:03 [gentoo-commits] gentoo-x86 commit in app-portage/esearch/files: 1.1-Use-of-undefined-variable-in-sync.patch Paul Varner (fuzzyray)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox