diff options
author | Steve Dibb <beandog@gentoo.org> | 2010-01-01 16:13:20 +0000 |
---|---|---|
committer | Steve Dibb <beandog@gentoo.org> | 2010-01-01 16:13:20 +0000 |
commit | dc5ed8365c1196f07b8591ae03ada665f63ecedc (patch) | |
tree | a129bb70fc940c87167d97e1a77131cc997fd6ad /class.portage.package.php | |
parent | add variable for current pg timestamp (diff) | |
download | znurt-org-backend-dc5ed8365c1196f07b8591ae03ada665f63ecedc.tar.gz znurt-org-backend-dc5ed8365c1196f07b8591ae03ada665f63ecedc.tar.bz2 znurt-org-backend-dc5ed8365c1196f07b8591ae03ada665f63ecedc.zip |
new mtimes
git-svn-id: file:///var/svn/portage@31 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
Diffstat (limited to 'class.portage.package.php')
-rw-r--r-- | class.portage.package.php | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/class.portage.package.php b/class.portage.package.php index 653e0ab..e2b008d 100644 --- a/class.portage.package.php +++ b/class.portage.package.php @@ -13,8 +13,9 @@ private $metadata_filename; private $metadata_xml; - private $mtime; - private $ctime; + private $portage_mtime; + private $changelog_mtime; + private $metadata_mtime; function __construct($category = null, $package = null) { @@ -53,20 +54,21 @@ } - if(file_exists("$dir/metadata.xml")) { - $this->metadata_filename = "$dir/metadata.xml"; - $this->metadata_xml = simplexml_load_file($this->metadata_filename); - } - if(file_exists("$dir/ChangeLog")) { $this->changelog_filename = "$dir/ChangeLog"; $str = file_get_contents($this->changelog_filename); $str = trim($str); $this->changelog = $str; + $this->changelog_mtime = filemtime($this->changelog_filename); + } + + if(file_exists("$dir/metadata.xml")) { + $this->metadata_filename = "$dir/metadata.xml"; + $this->metadata_xml = simplexml_load_file($this->metadata_filename); + $this->metadata_mtime = filemtime($this->metadata_filename); } - $this->mtime = filemtime($dir); - $this->ctime = filectime($dir); + $this->portage_mtime = filemtime($dir); } |