summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-05-05 09:02:59 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-05-05 09:02:59 +0000
commit2d1d08d3c33d22e628d29161db6e21dc205adcf2 (patch)
treef515b4d4ea2379c881b9696963b4bc637775c122
parent03f275faaffa748a9de996972f9886bc426aafc0 (diff)
downloadapk_browser-2d1d08d3c33d22e628d29161db6e21dc205adcf2.tar.bz2
apk_browser-2d1d08d3c33d22e628d29161db6e21dc205adcf2.tar.xz
set default build time to 0
-rw-r--r--apk_browser.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/apk_browser.module b/apk_browser.module
index a28320e..c42f1e7 100644
--- a/apk_browser.module
+++ b/apk_browser.module
@@ -318,6 +318,8 @@ function apk_browser_add_apk($package, $arch_tid, $repo_tid) {
ini_set('max_execution_time', 600);
$node = (isset($package['update'])) ? node_load($package['update']) : new stdClass();
$node->type = 'apk';
+ //set default value for build time. some pkg do not have ts and will not sort right.
+ $node->apk_build_time['und'][0]['value'] = '0';
foreach ($package as $field => $value) {
switch ($field) {
case 'P':