diff options
author | 2010-01-02 20:10:17 +0000 | |
---|---|---|
committer | 2010-01-02 20:10:17 +0000 | |
commit | 1d1fbeeb0946d5516843e34f95b037b6cef13134 (patch) | |
tree | 063fa4c63af9de9ae47ddc28daa58654f52e6fc4 | |
parent | cleanup (diff) | |
download | znurt-org-backend-1d1fbeeb0946d5516843e34f95b037b6cef13134.tar.gz znurt-org-backend-1d1fbeeb0946d5516843e34f95b037b6cef13134.tar.bz2 znurt-org-backend-1d1fbeeb0946d5516843e34f95b037b6cef13134.zip |
cleanup
git-svn-id: file:///var/svn/portage@48 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
-rw-r--r-- | import.use_expand.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/import.use_expand.php b/import.use_expand.php index 59a942e..8529abf 100644 --- a/import.use_expand.php +++ b/import.use_expand.php @@ -5,8 +5,8 @@ require_once 'class.portage.use_flag.php'; require_once 'class.portage.ebuild.php'; require_once 'class.portage.atom.php'; - require_once '/home/steve/svn/znurt/class.db.mtime.php'; - require_once '/home/steve/svn/znurt/class.db.use.php'; + require_once 'class.db.mtime.php'; + require_once 'class.db.use.php'; require_once 'File/Find.php'; $tree = new PortageTree(); @@ -33,9 +33,7 @@ $sql = "SELECT COUNT(1) FROM use WHERE $where;"; $db_count = $db->getOne($sql); - if(is_null($dbmtime->mtime)) { - $dbmtime->mtime = $dbmtime->filemtime; - } elseif($filemtime > $dbmtime->mtime) { + if(is_null($dbmtime->mtime) || ($filemtime > $dbmtime->mtime) ) { $dbmtime->mtime = $filemtime; } |