diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2011-05-05 09:02:59 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-05-05 09:02:59 +0000 |
commit | 2d1d08d3c33d22e628d29161db6e21dc205adcf2 (patch) | |
tree | f515b4d4ea2379c881b9696963b4bc637775c122 | |
parent | 03f275faaffa748a9de996972f9886bc426aafc0 (diff) | |
download | apk_browser-2d1d08d3c33d22e628d29161db6e21dc205adcf2.tar.bz2 apk_browser-2d1d08d3c33d22e628d29161db6e21dc205adcf2.tar.xz |
set default build time to 0
-rw-r--r-- | apk_browser.module | 2 |
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': |