diff options
-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; } |