Gentoo Archives: gentoo-commits

From: "Devan Franchini (twitch153)" <twitch153@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-portage/layman/files: layman-2.1.0-local_overlay.patch
Date: Sun, 27 Jul 2014 03:17:24
Message-Id: 20140727031720.67FA12004E@flycatcher.gentoo.org
1 twitch153 14/07/27 03:17:20
2
3 Added: layman-2.1.0-local_overlay.patch
4 Log:
5 Rev bump to add patch for local overlay listings
6
7 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key A8C8FBCF)
8
9 Revision Changes Path
10 1.1 app-portage/layman/files/layman-2.1.0-local_overlay.patch
11
12 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
13 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
14
15 Index: layman-2.1.0-local_overlay.patch
16 ===================================================================
17 From d0e5d9120c27f678e9039bb2f65cfc0e457be6c7 Mon Sep 17 00:00:00 2001
18 From: Douglas Freed <dwfreed@×××.edu>
19 Date: Sat, 26 Jul 2014 15:54:11 -0700
20 Subject: [PATCH] Fix a bug when an overlay isn't in the remote list
21
22 If the overlay isn't in the remote list, it obviously isn't a different
23 type, nor has its URL changed, so just init those to False so we can
24 sync the overlay without hitting UnboundLocalError.
25 ---
26 layman/api.py | 1 +
27 1 file changed, 1 insertion(+)
28
29 diff --git a/layman/api.py b/layman/api.py
30 index a86970f..930f449 100755
31 --- a/layman/api.py
32 +++ b/layman/api.py
33 @@ -426,6 +426,7 @@ class LaymanAPI(object):
34 message = 'Overlay "%s" could not be found in the remote lists.\n' \
35 'Please check if it has been renamed and re-add if necessary.' % ovl
36 warnings.append((ovl, message))
37 + (diff_type, update_url) = (False, False)
38 else:
39 self.output.debug("API.sync(); else: self._get_remote_db().select(ovl)", 5)
40
41 --
42 1.8.5.5