We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67f32e8 commit dc530c8Copy full SHA for dc530c8
1 file changed
generate-db.js
@@ -4,7 +4,6 @@ const https = require("node:https");
4
const path = require("node:path");
5
const zlib = require("node:zlib");
6
7
-const repositoryURL = "https://packages-cf.termux.dev/apt";
8
// TODO(@thunder-coding): Do not hardcode list of known architectures.
9
const archs = ["aarch64", "arm", "i686", "x86_64"];
10
const scriptdir = process.env["TERMUX_SCRIPTDIR"];
@@ -24,7 +23,7 @@ for (const repo_path in repoJSON) {
24
23
const repo = repoJSON[repo_path];
25
for (const arch of archs) {
26
https.get(
27
- `${repositoryURL}/${repo.name}/dists/${repo.distribution}/Contents-${arch}.gz`,
+ `${repo.url}/dists/${repo.distribution}/Contents-${arch}.gz`,
28
(res) => {
29
if (res.statusCode != 200) {
30
throw new Error(`${res.url} returned ${res.statusCode}`);
0 commit comments