summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2010-01-02 20:09:58 +0000
committerSteve Dibb <beandog@gentoo.org>2010-01-02 20:09:58 +0000
commita59ed4b73bb7a9a4ba3415da3201191b67732d6f (patch)
treeb72fb7a89527f7b65a64189062a9a01226271d64
parentonly update package masks if package.mask filemtime has changed (diff)
downloadznurt-org-backend-a59ed4b73bb7a9a4ba3415da3201191b67732d6f.tar.gz
znurt-org-backend-a59ed4b73bb7a9a4ba3415da3201191b67732d6f.tar.bz2
znurt-org-backend-a59ed4b73bb7a9a4ba3415da3201191b67732d6f.zip
cleanup
git-svn-id: file:///var/svn/portage@47 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
-rw-r--r--import.package_mask.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/import.package_mask.php b/import.package_mask.php
index efc4ea9..0d8ce59 100644
--- a/import.package_mask.php
+++ b/import.package_mask.php
@@ -22,10 +22,7 @@
if($debug)
$import = true;
- if(is_null($dbmtime->mtime)) {
- $dbmtime->mtime = $pmask->mtime;
- $import = true;
- } elseif($pmask->mtime > $dbmtime->mtime) {
+ if(is_null($dbmtime->mtime) || ($pmask->mtime > $dbmtime->mtime) ) {
$dbmtime->mtime = $pmask->mtime;
$import = true;
}
@@ -65,7 +62,4 @@
}
-
-
-
?> \ No newline at end of file