* [gentoo-commits] gentoo-x86 commit in app-portage/layman/files: layman-2.0.0_rc1-fix-mistracking-success.patch
@ 2011-07-17 20:52 Christian Ruppert (idl0r)
0 siblings, 0 replies; 2+ messages in thread
From: Christian Ruppert (idl0r) @ 2011-07-17 20:52 UTC (permalink / raw
To: gentoo-commits
idl0r 11/07/17 20:52:18
Added: layman-2.0.0_rc1-fix-mistracking-success.patch
Log:
Version bump. Remove 1.2* and 1.3* ebuilds.
(Portage version: 2.2.0_alpha45/cvs/Linux x86_64)
Revision Changes Path
1.1 app-portage/layman/files/layman-2.0.0_rc1-fix-mistracking-success.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/layman/files/layman-2.0.0_rc1-fix-mistracking-success.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/layman/files/layman-2.0.0_rc1-fix-mistracking-success.patch?rev=1.1&content-type=text/plain
Index: layman-2.0.0_rc1-fix-mistracking-success.patch
===================================================================
From c5c3121331d8f2f2b39b8f41b91d705d197be250 Mon Sep 17 00:00:00 2001
From: dol-sen <brian.dolbec@gmail.com>
Date: Tue, 12 Jul 2011 12:01:43 -0700
Subject: [PATCH] fix mistracking success adding an overlay.
---
layman/api.py | 17 +++++++++--------
layman/db.py | 4 +++-
2 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/layman/api.py b/layman/api.py
index 8e54d7d..a924ead 100644
--- a/layman/api.py
+++ b/layman/api.py
@@ -114,14 +114,14 @@ class LaymanAPI(object):
self._error("Repository '"+ovl+"' was not installed")
results.append(False)
continue
+ success = False
try:
- self._get_installed_db().delete(
+ success = self._get_installed_db().delete(
self._get_installed_db().select(ovl))
- results.append(True)
except Exception as e:
self._error(
- "Failed to disable repository '"+ovl+"':\n"+str(e))
- results.append(False)
+ "Exception caught disabling repository '"+ovl+"':\n"+str(e))
+ results.append(success)
self.get_installed(dbreload=True)
if False in results:
return False
@@ -147,12 +147,13 @@ class LaymanAPI(object):
self._error(UnknownOverlayMessage(ovl))
results.append(False)
continue
+ success = False
try:
- self._get_installed_db().add(self._get_remote_db().select(ovl), quiet=True)
- results.append(True)
+ success = self._get_installed_db().add(
+ self._get_remote_db().select(ovl), quiet=True)
except Exception as e:
- self._error("Failed to enable repository '"+ovl+"' : "+str(e))
- results.append(False)
+ self._error("Exception caught enabling repository '"+ovl+"' : "+str(e))
+ results.append(success)
self.get_installed(dbreload=True)
if False in results:
return False
diff --git a/layman/db.py b/layman/db.py
index 3ed5cc6..b1df906 100644
--- a/layman/db.py
+++ b/layman/db.py
@@ -206,7 +206,9 @@ class DB(DbBase):
self.write(self.path)
make_conf.delete(overlay)
else:
- raise Exception('No local overlay named "' + overlay.name + '"!')
+ self.output.error('No local overlay named "' + overlay.name + '"!')
+ return False
+ return True
def sync(self, overlay_name, quiet = False):
'''Synchronize the given overlay.'''
--
1.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-portage/layman/files: layman-2.0.0_rc1-fix-mistracking-success.patch
@ 2012-03-10 23:34 Brian Dolbec (dolsen)
0 siblings, 0 replies; 2+ messages in thread
From: Brian Dolbec (dolsen) @ 2012-03-10 23:34 UTC (permalink / raw
To: gentoo-commits
dolsen 12/03/10 23:34:58
Removed: layman-2.0.0_rc1-fix-mistracking-success.patch
Log:
update 1.4* python dependency, remove old rc's
(Portage version: 2.2.0_alpha84_p31/cvs/Linux x86_64)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-10 23:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-17 20:52 [gentoo-commits] gentoo-x86 commit in app-portage/layman/files: layman-2.0.0_rc1-fix-mistracking-success.patch Christian Ruppert (idl0r)
-- strict thread matches above, loose matches on Subject: below --
2012-03-10 23:34 Brian Dolbec (dolsen)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox