Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Zac Medico (zmedico)" <zmedico@g.o>
Subject: portage r10941 - main/trunk/pym/_emerge
Date: Sat, 05 Jul 2008 12:36:41 +0000

 1.1

Author: zmedico
Date: 2008-07-05 12:36:40 +0000 (Sat, 05 Jul 2008)
New Revision: 10941

Modified:
   main/trunk/pym/_emerge/__init__.py
Log:
Fix CompositeTask.cancel() so that it's safe to call when there is no
running task.


Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py	2008-07-05 12:21:43 UTC (rev 10940)
+++ main/trunk/pym/_emerge/__init__.py	2008-07-05 12:36:40 UTC (rev 10941)
@@ -1523,7 +1523,8 @@
 	def cancel(self):
 		self._task_queue.clear()
 		self.cancelled = True
-		self._current_task.cancel()
+		if self._current_task is not None:
+			self._current_task.cancel()
 
 	def wait(self):
 

-- 
gentoo-commits@g.o mailing list


Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in media-libs/libmtp: ChangeLog libmtp-0.3.0.ebuild
Next by thread:
portage r10942 - main/trunk/pym/_emerge
Previous by date:
gentoo-x86 commit in media-libs/libmtp: ChangeLog libmtp-0.3.0.ebuild
Next by date:
portage r10942 - main/trunk/pym/_emerge


Aug 29, 2008

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.