diff options
author | 2010-01-02 19:56:55 +0000 | |
---|---|---|
committer | 2010-01-02 19:56:55 +0000 | |
commit | f83f1aea639b708cef7bad495e557bed5404bdce (patch) | |
tree | dc9af9b03c05d1a4ec784d539b4c65c00806a293 /class.portage.package.mask.php | |
parent | less verbose (diff) | |
download | znurt-org-backend-f83f1aea639b708cef7bad495e557bed5404bdce.tar.gz znurt-org-backend-f83f1aea639b708cef7bad495e557bed5404bdce.tar.bz2 znurt-org-backend-f83f1aea639b708cef7bad495e557bed5404bdce.zip |
only update package masks if package.mask filemtime has changed
git-svn-id: file:///var/svn/portage@46 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
Diffstat (limited to 'class.portage.package.mask.php')
-rw-r--r-- | class.portage.package.mask.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/class.portage.package.mask.php b/class.portage.package.mask.php index 88936cb..c23d570 100644 --- a/class.portage.package.mask.php +++ b/class.portage.package.mask.php @@ -2,8 +2,8 @@ class PackageMask extends PortageTree { - private $filename; + private $mtime; function __construct($profile = 'portage') { @@ -18,7 +18,12 @@ } $this->filename = $this->getTree()."/profiles/$filename"; + $this->mtime = filemtime($this->filename); + + } + function __get($var) { + return $this->$var; } function getMaskedPackages() { |