summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'class.portage.package.mask.php')
-rw-r--r--class.portage.package.mask.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/class.portage.package.mask.php b/class.portage.package.mask.php
index c23d570..81dcb8a 100644
--- a/class.portage.package.mask.php
+++ b/class.portage.package.mask.php
@@ -1,13 +1,16 @@
<?
- class PackageMask extends PortageTree {
+ class PackageMask {
private $filename;
private $mtime;
function __construct($profile = 'portage') {
- parent::__construct();
+ global $hits;
+ $hits['package_mask']++;
+
+ $tree =& PortageTree::singleton();
switch($profile) {
@@ -17,7 +20,7 @@
}
- $this->filename = $this->getTree()."/profiles/$filename";
+ $this->filename = $tree->getTree()."/profiles/$filename";
$this->mtime = filemtime($this->filename);
}