🐛 fix: repository origin

This commit is contained in:
eshanized
2025-01-11 01:00:14 +05:30
parent e2f670e4a9
commit 0440aa8249

View File

@@ -9,6 +9,9 @@ async function fetchFromMirror(url: string): Promise<Package[]> {
const response = await fetch(url);
const text = await response.text();
// determine the repository from the mirror URL (core or extra)
const repository = url.includes('snigdhaos-core') ? 'core' : 'extra';
return text
.split('\n')
.filter(Boolean)
@@ -18,7 +21,7 @@ async function fetchFromMirror(url: string): Promise<Package[]> {
name,
version,
description: descParts.join(' '),
repository: 'core' as const,
repository, // use the determined repository name
};
});
}