Skip to content

Commit dc530c8

Browse files
use repository url from repo.json
Follow up of termux/termux-packages@350443b
1 parent 67f32e8 commit dc530c8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

generate-db.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const https = require("node:https");
44
const path = require("node:path");
55
const zlib = require("node:zlib");
66

7-
const repositoryURL = "https://packages-cf.termux.dev/apt";
87
// TODO(@thunder-coding): Do not hardcode list of known architectures.
98
const archs = ["aarch64", "arm", "i686", "x86_64"];
109
const scriptdir = process.env["TERMUX_SCRIPTDIR"];
@@ -24,7 +23,7 @@ for (const repo_path in repoJSON) {
2423
const repo = repoJSON[repo_path];
2524
for (const arch of archs) {
2625
https.get(
27-
`${repositoryURL}/${repo.name}/dists/${repo.distribution}/Contents-${arch}.gz`,
26+
`${repo.url}/dists/${repo.distribution}/Contents-${arch}.gz`,
2827
(res) => {
2928
if (res.statusCode != 200) {
3029
throw new Error(`${res.url} returned ${res.statusCode}`);

0 commit comments

Comments
 (0)