summaryrefslogtreecommitdiffstats
path: root/apk_browser.module
diff options
context:
space:
mode:
Diffstat (limited to 'apk_browser.module')
-rw-r--r--apk_browser.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/apk_browser.module b/apk_browser.module
index 89422b0..33c0064 100644
--- a/apk_browser.module
+++ b/apk_browser.module
@@ -311,6 +311,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':