diff options
author | 2010-01-06 18:47:36 +0000 | |
---|---|---|
committer | 2010-01-06 18:47:36 +0000 | |
commit | d33c86d2cac2c198e1d9305b631b2f2840182a3b (patch) | |
tree | a3b133232d2cadfd43b9e4871d2e90aeb401565e | |
parent | hostname vars (diff) | |
download | znurt-org-backend-d33c86d2cac2c198e1d9305b631b2f2840182a3b.tar.gz znurt-org-backend-d33c86d2cac2c198e1d9305b631b2f2840182a3b.tar.bz2 znurt-org-backend-d33c86d2cac2c198e1d9305b631b2f2840182a3b.zip |
git-svn-id: file:///var/svn/portage@68 3218660a-b0cf-4799-a991-8ddcc5b9e0f3
-rw-r--r-- | import.ebuild_metadata.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/import.ebuild_metadata.php b/import.ebuild_metadata.php index 1a39fee..23df142 100644 --- a/import.ebuild_metadata.php +++ b/import.ebuild_metadata.php @@ -62,13 +62,14 @@ } // Set the new package descriptions - $sql = "SELECT COUNT(1) FROM package WHERE status = 1;"; + $sql = "SELECT COUNT(1) FROM package WHERE status = 1 OR description = '';"; $count = $db->getOne($sql); if($count) { if($verbose) shell::msg("Setting the new package descriptions for $count packages"); - - $sql = "UPDATE package SET description = package_description(id) WHERE id IN (SELECT p.id FROM package p INNER JOIN package_recent pr ON pr.package = p.id WHERE p.status = 1 AND p.portage_mtime = pr.max_ebuild_mtime);"; + + // Weird bug slipped in + $sql = "UPDATE package SET description = package_description(id) WHERE id IN (SELECT p.id FROM package p INNER JOIN package_recent pr ON pr.package = p.id WHERE (p.status = 1 AND p.portage_mtime = pr.max_ebuild_mtime) OR p.description = '');"; $db->query($sql); } |