Gentoo Archives: gentoo-commits

From: "André Erdmann" <dywi@×××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/overlay/
Date: Tue, 26 Jun 2012 15:43:41
Message-Id: 1340725191.544b6f2f6668a3bb254209a7afe498f9925fe2cb.dywi@gentoo
commit:     544b6f2f6668a3bb254209a7afe498f9925fe2cb
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Tue Jun 26 15:39:51 2012 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Tue Jun 26 15:39:51 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=544b6f2f

overlay creation: unused method stubs removed

	modified:   roverlay/overlay/creator.py

---
 roverlay/overlay/creator.py |   16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/roverlay/overlay/creator.py b/roverlay/overlay/creator.py
index bbaaa8e..6d97d48 100644
--- a/roverlay/overlay/creator.py
+++ b/roverlay/overlay/creator.py
@@ -47,6 +47,8 @@ class OverlayCreator ( object ):
 		self._workers    = None
 		self._runlock    = threading.RLock()
 
+		self.package_add = self._pkg_queue.put
+
 		self.can_write_overlay = OVERLAY_WRITE_ALLOWED
 
 	# --- end of __init__ (...) ---
@@ -68,11 +70,6 @@ class OverlayCreator ( object ):
 		return _stop
 	# --- end of _timestamp (...) ---
 
-	def add ( self, *to_add ):
-		"""Add a directory/package files/distdir to the package queue."""
-		raise Exception ( "method stub" )
-	# --- end of add (...) ---
-
 	def add_package_file ( self, package_file ):
 		"""Adds a single R package."""
 		self._pkg_queue.put ( PackageInfo ( filepath=package_file ) )
@@ -83,15 +80,6 @@ class OverlayCreator ( object ):
 		for p in package_files: self.add_package_file ( p )
 	# --- end of add_packages (...) ---
 
-	def add_directory ( self, directory ):
-		"""Adds all packages from a directory to the package queue."""
-		raise Exception ( "method stub" )
-	# --- end of add_directory (...) ---
-
-	def add_distdir ( self, repo_name ):
-		"""Adds a distfiles directory to the package queue."""
-		self.add_directory ( config.get_or_fail ( [ 'DISTFILES', repo_name ] ) )
-	# --- end of add_distdir (...) ---
 
 	def write_overlay ( self, incremental=False ):
 		"""Writes the overlay.