From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C8CF91381F3 for ; Thu, 13 Jun 2013 16:35:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7AF8FE09D7; Thu, 13 Jun 2013 16:34:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0FFE5E09D7 for ; Thu, 13 Jun 2013 16:34:46 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1175433E47C for ; Thu, 13 Jun 2013 16:34:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 31F32E5461 for ; Thu, 13 Jun 2013 16:34:28 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1370455219.4d105910093b10ca2aa721e1209f75f4fb2b1649.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/overlay/pkgdir/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/overlay/pkgdir/packagedir_base.py X-VCS-Directories: roverlay/overlay/pkgdir/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 4d105910093b10ca2aa721e1209f75f4fb2b1649 X-VCS-Branch: master Date: Thu, 13 Jun 2013 16:34:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d5f4de9a-0a80-433d-81dd-531b395dc885 X-Archives-Hash: e1a1dafb51464a922596bb5088f9dcf6 commit: 4d105910093b10ca2aa721e1209f75f4fb2b1649 Author: André Erdmann mailerd de> AuthorDate: Wed Jun 5 18:00:19 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Wed Jun 5 18:00:19 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=4d105910 overlay/pkgdir: fs_destroy() This function removes all ebuilds of a package from the overlay. --- roverlay/overlay/pkgdir/packagedir_base.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roverlay/overlay/pkgdir/packagedir_base.py b/roverlay/overlay/pkgdir/packagedir_base.py index 8fb6ca4..62dd7c7 100644 --- a/roverlay/overlay/pkgdir/packagedir_base.py +++ b/roverlay/overlay/pkgdir/packagedir_base.py @@ -105,6 +105,8 @@ class PackageDirBase ( object ): """Called for each ebuild that is found during scan(). Creates a PackageInfo for the ebuild and adds it to self._packages. + PackageInfo objects added this way are not affected by package rules. + arguments: * efile -- full path to the ebuild file * pvr -- version ($PVR) of the ebuild @@ -353,6 +355,15 @@ class PackageDirBase ( object ): return None # --- end of purge_package (...) --- + def fs_destroy ( self ): + pvr_list = list ( self._packages.keys() ) + for pvr in pvr_list: + self.purge_package ( pvr ) + + assert not self.empty() + self.fs_cleanup() + # --- end of fs_destroy (...) --- + def scan ( self, **kw ): """Scans the filesystem location of this package for existing ebuilds and adds them. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 363D3138202 for ; Wed, 5 Jun 2013 18:08:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5F56CE0954; Wed, 5 Jun 2013 18:08:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A1B1FE0956 for ; Wed, 5 Jun 2013 18:08:45 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AD86B33E1C6 for ; Wed, 5 Jun 2013 18:08:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 01533E5466 for ; Wed, 5 Jun 2013 18:08:42 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1370455219.4d105910093b10ca2aa721e1209f75f4fb2b1649.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:gsoc13/next commit in: roverlay/overlay/pkgdir/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/overlay/pkgdir/packagedir_base.py X-VCS-Directories: roverlay/overlay/pkgdir/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 4d105910093b10ca2aa721e1209f75f4fb2b1649 X-VCS-Branch: gsoc13/next Date: Wed, 5 Jun 2013 18:08:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 51756459-21ee-4acd-abe7-d0069a371a54 X-Archives-Hash: 9f34ea94405aabe525aba967a9f0adeb Message-ID: <20130605180842.gvyPSk_MyztkP1Zv6BwMmCiX7sZiYc599wcvIB4eDUA@z> commit: 4d105910093b10ca2aa721e1209f75f4fb2b1649 Author: André Erdmann mailerd de> AuthorDate: Wed Jun 5 18:00:19 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Wed Jun 5 18:00:19 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=4d105910 overlay/pkgdir: fs_destroy() This function removes all ebuilds of a package from the overlay. --- roverlay/overlay/pkgdir/packagedir_base.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roverlay/overlay/pkgdir/packagedir_base.py b/roverlay/overlay/pkgdir/packagedir_base.py index 8fb6ca4..62dd7c7 100644 --- a/roverlay/overlay/pkgdir/packagedir_base.py +++ b/roverlay/overlay/pkgdir/packagedir_base.py @@ -105,6 +105,8 @@ class PackageDirBase ( object ): """Called for each ebuild that is found during scan(). Creates a PackageInfo for the ebuild and adds it to self._packages. + PackageInfo objects added this way are not affected by package rules. + arguments: * efile -- full path to the ebuild file * pvr -- version ($PVR) of the ebuild @@ -353,6 +355,15 @@ class PackageDirBase ( object ): return None # --- end of purge_package (...) --- + def fs_destroy ( self ): + pvr_list = list ( self._packages.keys() ) + for pvr in pvr_list: + self.purge_package ( pvr ) + + assert not self.empty() + self.fs_cleanup() + # --- end of fs_destroy (...) --- + def scan ( self, **kw ): """Scans the filesystem location of this package for existing ebuilds and adds them.