public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/portage:master commit in: man/, pym/portage/package/ebuild/, pym/portage/dbapi/, pym/_emerge/
@ 2011-08-09  5:36 Zac Medico
  0 siblings, 0 replies; only message in thread
From: Zac Medico @ 2011-08-09  5:36 UTC (permalink / raw
  To: gentoo-commits

commit:     c5fbe4f306451b62c6f645d8d8679860e2d1a64e
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  9 05:35:38 2011 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Aug  9 05:35:38 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c5fbe4f3

Remove "profile" mask support as per PMS 5.2.7.

Since this is considered a "legacy" feature by PMS 5.2.7, there
shouldn't be any need to support it anymore. Profiles can use
package.mask to get similar results, and package.mask additionally
allows for comments which are conveniently displayed by emerge. This
will fix bug #377907.

---
 man/portage.5                                  |    1 +
 pym/_emerge/Package.py                         |    5 -----
 pym/portage/dbapi/porttree.py                  |    5 -----
 pym/portage/package/ebuild/config.py           |    3 +++
 pym/portage/package/ebuild/getmaskingstatus.py |    4 ----
 5 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/man/portage.5 b/man/portage.5
index b2b0eb1..b783f62 100644
--- a/man/portage.5
+++ b/man/portage.5
@@ -280,6 +280,7 @@ Provides the list of packages that compose the special \fIsystem\fR set.
 \- comments begin with # (no inline comments)
 \- one DEPEND atom per line
 \- packages to be added to the system set begin with a *
+\- atoms without * only appear for legacy reasons
 .fi
 .I Note:
 In a cascading profile setup, you can remove packages in children 

diff --git a/pym/_emerge/Package.py b/pym/_emerge/Package.py
index 20c72b4..0790946 100644
--- a/pym/_emerge/Package.py
+++ b/pym/_emerge/Package.py
@@ -239,11 +239,6 @@ class Package(Task):
 		if mask_atom is not None:
 			masks['package.mask'] = mask_atom
 
-		system_mask = settings._getProfileMaskAtom(
-			self.cpv, self.metadata)
-		if system_mask is not None:
-			masks['profile.system'] = system_mask
-
 		try:
 			missing_licenses = settings._getMissingLicenses(
 				self.cpv, self.metadata)

diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index ecf275c..bf8ecd9 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -874,8 +874,6 @@ class portdbapi(dbapi):
 					continue
 				if settings._getMaskAtom(cpv, metadata):
 					continue
-				if settings._getProfileMaskAtom(cpv, metadata):
-					continue
 				if local_config:
 					metadata["USE"] = ""
 					if "?" in metadata["LICENSE"] or "?" in metadata["PROPERTIES"]:
@@ -940,7 +938,6 @@ class portdbapi(dbapi):
 		db_keys = ["SLOT"]
 		visible = []
 		getMaskAtom = self.settings._getMaskAtom
-		getProfileMaskAtom = self.settings._getProfileMaskAtom
 		for cpv in mylist:
 			try:
 				metadata = dict(zip(db_keys, self.aux_get(cpv, db_keys)))
@@ -951,8 +948,6 @@ class portdbapi(dbapi):
 				continue
 			if getMaskAtom(cpv, metadata):
 				continue
-			if getProfileMaskAtom(cpv, metadata):
-				continue
 			visible.append(cpv)
 		return visible
 

diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index a8c6ad6..a591c9a 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -1462,6 +1462,9 @@ class config(object):
 		@return: A matching profile atom string or None if one is not found.
 		"""
 
+		warnings.warn("The config._getProfileMaskAtom() method is deprecated.",
+			DeprecationWarning, stacklevel=2)
+
 		cp = cpv_getkey(cpv)
 		profile_atoms = self.prevmaskdict.get(cp)
 		if profile_atoms:

diff --git a/pym/portage/package/ebuild/getmaskingstatus.py b/pym/portage/package/ebuild/getmaskingstatus.py
index 4c65fcc..6eaa223 100644
--- a/pym/portage/package/ebuild/getmaskingstatus.py
+++ b/pym/portage/package/ebuild/getmaskingstatus.py
@@ -72,10 +72,6 @@ def _getmaskingstatus(mycpv, settings, portdb, myrepo=None):
 
 	rValue = []
 
-	# profile checking
-	if settings._getProfileMaskAtom(mycpv, metadata):
-		rValue.append(_MaskReason("profile", "profile"))
-
 	# package.mask checking
 	if settings._getMaskAtom(mycpv, metadata):
 		rValue.append(_MaskReason("package.mask", "package.mask", _UnmaskHint("p_mask", None)))



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-09  5:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-09  5:36 [gentoo-commits] proj/portage:master commit in: man/, pym/portage/package/ebuild/, pym/portage/dbapi/, pym/_emerge/ Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox