Skip to content

Commit fec18f8

Browse files
committed
One more speedtest
1 parent 4d3e064 commit fec18f8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

routes/repos.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ router.get('/bin/macosx/:distro/contrib/:major/:pkg.tgz', function(req, res, nex
111111
router.get('/bin/linux/:distro/:major/src/contrib/:pkg.tar.gz', function(req, res, next) {
112112
var [pkg, version] = req.params.pkg.split("_");
113113
var [distro, arch] = parse_distro(req.params.distro);
114+
var target = (distro == 'noble') ? {_distro: distro} : {_portable: true};
114115
var query = {Package: pkg, Version: version, '$or': [
115116
{_type: 'src'},
116-
{_type: 'linux', _distro: distro, _arch: arch, _major : req.params.major},
117+
{_type: 'linux', _arch: arch, _major : req.params.major, ...target}
117118
]};
118119
return send_binary(query, req, res);
119120
});
@@ -174,9 +175,10 @@ router.get('/bin/macosx/:distro/contrib/:major{/:format}', function(req, res, ne
174175
/* Linux binaries with fallback on source packages */
175176
router.get('/bin/linux/:distro/:major/src/contrib{/:format}', function(req, res, next) {
176177
var [distro, arch] = parse_distro(req.params.distro);
178+
var target = (distro == 'noble') ? {_distro: distro} : {_portable: true};
177179
var query = {'$or': [
178180
{_type: 'src'},
179-
{_type: 'linux', _distro: distro, _arch: arch, _major: req.params.major},
181+
{_type: 'linux', _arch: arch, _major: req.params.major, ...target},
180182
]};
181183
return packages_index(query, req, res, true, arch);
182184
});

0 commit comments

Comments
 (0)