summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2010-03-25 09:39:39 -0600
committerSteve Dibb <beandog@gentoo.org>2010-03-25 09:39:39 -0600
commiteea8d788616dd7ec68b7d44db1e6e3f03a51f383 (patch)
tree8171bb426d258b7c03b5bb9468b686bfcf175e67
parentProperly flag ebuilds to be deleted, using class (also fixes bug where wrong ... (diff)
downloadznurt-org-backend-eea8d788616dd7ec68b7d44db1e6e3f03a51f383.tar.gz
znurt-org-backend-eea8d788616dd7ec68b7d44db1e6e3f03a51f383.tar.bz2
znurt-org-backend-eea8d788616dd7ec68b7d44db1e6e3f03a51f383.zip
Fix deleting ebuildsHEADmaster
-rw-r--r--import.ebuilds.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/import.ebuilds.php b/import.ebuilds.php
index 8dcdedd..2db754f 100644
--- a/import.ebuilds.php
+++ b/import.ebuilds.php
@@ -38,7 +38,7 @@
*
*/
-// $verbose = true;
+// $verbose = true;
// $debug = false;
// $all = false;
@@ -230,8 +230,8 @@
$ebuild = $arr_ebuild_ids[$category_name][$package_name][$ebuild_name];
if($ebuild) {
- $tmp_update = array('status' => 2);
- $db->autoExecute('ebuild', $tmp_update, MDB2_AUTOQUERY_UPDATE, "id = ".$db->quote($id));
+ $db_ebuild = new DBEbuild($ebuild);
+ $db_ebuild->status = 2;
}
}
}