avail_td(nl2br($dist->getDescription())); $has_unsupported_dists = true; } else { avail_td(nl2br($dist->getDescription() . ' *'), '', 'color:gray; '); } if (!isset($rel_type)) $rel_type = ""; $pkey = 'pdb-package-bundle-' . $pobj['name'] . '-' . $dist->getName() . '-' . $rel_type . '-' . $dist->getArchitecture() . $showall; $packagelist = memcache_get_key($pkey); if (!is_array($packagelist) || count($packagelist) == 0) { $packagelist = array(); foreach(array("bindist", "stable", "unstable") as $rel_type) { $pack = fetch_package($pobj['name'], null, $dist->getName(), $rel_type, $dist->getArchitecture(), $showall); array_push($packagelist, $pack); } memcache_set_key($pkey, $packagelist); } foreach ($packagelist as $pack) { if ($pack == null) { avail_td(" "); continue; } if (is_array($pack) && !isset($pack['doc_id'])) { $pack = array_pop($pack); } list($open_tag, $close_tag) = version_tags($pack); $pkginfo = $open_tag . get_full_version($pack) . $close_tag; if ($rel_type == "bindist") { $pkginfo .= ' (bindist ' . $pack['rel_version'] . ')'; } avail_td($pkginfo);
browse.php?maintainer=None&nochildren=on">packages without maintainers</a>.</p> <? $pkgcount = memcache_get_key('pdb-package-count'); if (!$pkgcount) { $names = array(); $q = new SolrQuery(); $q->addQuery("dist_visible:true", true); $q->addField("name_e"); $q->setUnique(true); $r = $q->fetch(); if ($r != null) { $pkgcount = count($r); if ($pkgcount > 0) { memcache_set_key('pdb-package-count', $pkgcount, false, $cache_timeout); } } } $dyndate = date_create($update_date)->format('U'); $seccount = count($sections); ?> <p> The database was last updated <? print format_solr_date($update_date) ?> and currently lists <?php echo $pkgcount; ?>