summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'class.portage.ebuild.php')
-rw-r--r--class.portage.ebuild.php26
1 files changed, 10 insertions, 16 deletions
diff --git a/class.portage.ebuild.php b/class.portage.ebuild.php
index d1a1efb..97cea90 100644
--- a/class.portage.ebuild.php
+++ b/class.portage.ebuild.php
@@ -44,8 +44,6 @@
// File properties
private $filename;
- private $mtime;
- private $ctime;
private $category;
@@ -55,6 +53,12 @@
public $arr_components;
private $has_version;
+ // File mtimes
+ private $portage_mtime;
+ private $changelog_mtime;
+ private $metadata_mtime;
+ private $cache_mtime;
+
function __construct($str) {
$this->atom = trim($str);
@@ -67,6 +71,9 @@
$this->filename = $this->portage."/".$this->getCategory()."/".$this->getPackageName()."/".$this->getFullPackageName().".ebuild";
$this->filename_cache = $this->cache."/".$this->getCategory()."/".$this->getFullPackageName();
+
+ if(file_exists($this->filename_cache))
+ $this->cache_mtime = filemtime($this->filename_cache);
$this->arr_metadata_keys = array('depend', 'rdepend', 'slot', 'src_uri', 'restrict', 'homepage', 'license', 'description', 'keywords', 'inherited', 'iuse', 'cdepend', 'pdepend', 'provide', 'eapi', 'properties', 'defined_phases');
@@ -143,14 +150,10 @@
return $this->getPackageVersionAndRevision();
break;
- case 'mtime':
+ case 'portage_mtime':
return $this->getMtime();
break;
- case 'ctime':
- return $this->getCtime();
- break;
-
case 'filename':
return $this->filename;
break;
@@ -497,15 +500,6 @@
}
- function getCtime() {
-
- if(file_exists($this->filename))
- return filectime($this->filename);
- else
- return null;
-
- }
-
}
?> \ No newline at end of file