twitch153    14/07/27 03:17:20

  Added:                layman-2.1.0-local_overlay.patch
  Log:
  Rev bump to add patch for local overlay listings
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 
A8C8FBCF)

Revision  Changes    Path
1.1                  app-portage/layman/files/layman-2.1.0-local_overlay.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/layman/files/layman-2.1.0-local_overlay.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/layman/files/layman-2.1.0-local_overlay.patch?rev=1.1&content-type=text/plain

Index: layman-2.1.0-local_overlay.patch
===================================================================
>From d0e5d9120c27f678e9039bb2f65cfc0e457be6c7 Mon Sep 17 00:00:00 2001
From: Douglas Freed <[email protected]>
Date: Sat, 26 Jul 2014 15:54:11 -0700
Subject: [PATCH] Fix a bug when an overlay isn't in the remote list

If the overlay isn't in the remote list, it obviously isn't a different
type, nor has its URL changed, so just init those to False so we can
sync the overlay without hitting UnboundLocalError.
---
 layman/api.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/layman/api.py b/layman/api.py
index a86970f..930f449 100755
--- a/layman/api.py
+++ b/layman/api.py
@@ -426,6 +426,7 @@ class LaymanAPI(object):
                 message = 'Overlay "%s" could not be found in the remote 
lists.\n' \
                         'Please check if it has been renamed and re-add if 
necessary.' % ovl
                 warnings.append((ovl, message))
+                (diff_type, update_url) = (False, False)
             else:
                 self.output.debug("API.sync(); else: 
self._get_remote_db().select(ovl)", 5)
 
-- 
1.8.5.5





Reply via email to