diff options
author | necoro <> | 2007-05-12 23:02:26 +0000 |
---|---|---|
committer | necoro <> | 2007-05-12 23:02:26 +0000 |
commit | be5997284de46af17f1e169dc94beb9e85462dd3 (patch) | |
tree | dcac9ba3ec1693e83fd0a112eae7f94b6b9ce627 /portato/backend | |
parent | 29087903eee36b6e20fe3e15bba2a8caa872ed95 (diff) | |
download | portato-be5997284de46af17f1e169dc94beb9e85462dd3.tar.gz portato-be5997284de46af17f1e169dc94beb9e85462dd3.tar.bz2 portato-be5997284de46af17f1e169dc94beb9e85462dd3.zip |
now showing the overlay
Diffstat (limited to '')
-rw-r--r-- | portato/backend/package.py | 6 | ||||
-rw-r--r-- | portato/backend/portage/package.py | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/portato/backend/package.py b/portato/backend/package.py index f9b675d..59d552b 100644 --- a/portato/backend/package.py +++ b/portato/backend/package.py @@ -241,6 +241,12 @@ class Package: @rtype: boolean""" raise NotImplementedError + + def get_overlay_path(self): + """Returns the path to the current overlay. + @rtype: string""" + + raise NotImplementedError def is_in_system (self): """Returns False if the package could not be found in the portage system. diff --git a/portato/backend/portage/package.py b/portato/backend/portage/package.py index 38e7369..e39dbe2 100644 --- a/portato/backend/portage/package.py +++ b/portato/backend/portage/package.py @@ -50,6 +50,10 @@ class PortagePackage (Package): dir,ovl = self._settings.porttree.dbapi.findname2(self._cpv) return ovl != self._settings.settings["PORTDIR"] + def get_overlay_path (self): + dir,ovl = self._settings.porttree.dbapi.findname2(self._cpv) + return ovl + def is_in_system (self): return (self._status != None) |