5/1/2026 at 3:14:59 PM
First I saw that it's written in Perl. Then I realized that the last release was 11 years ago and that the repository domains are hardcoded in the one-file script.by chb
5/1/2026 at 4:29:36 PM
Does it still work, though?Where else would you put the repository domains?
by Intralexical
5/2/2026 at 8:00:07 AM
I would put them into a configuration file. You know, so people can configure which repositories are being searched.Generally I advice against hard doing stuff that changes often and may need to be adjusted for different users or organizations.
by atoav
5/2/2026 at 4:43:09 PM
The search APIs are separate from the repository URLs, and the different distros' APIs need to be parsed in different ways. And before you ask, the search APIs have to be separate from the repositories, if you don't want to waste disk, network, and time keeping hundreds of local index files up-to-date every week.They can't just be "configured" by changing a URL. I guess maybe you could self-host the search page for some of the distros, and reuse the parser, but are people really doing that? Otherwise, you'd have to write new code to parse the results, at which point you might as well soft-fork the script anyway.
> Generally I advice against hard doing stuff that changes often and may need to be adjusted for different users or organizations.
YAGNI. And if your org does need it for some reason, you're probably better off running something specifically tailored for your own needs instead of whatever implementation makes it in.
The whole script's only 1300 lines. Would adding spending 150 lines on configuration and littering the user's dotfiles be worth it? Now what happens if the configuration's missing/corrupted? When you update the script, do you keep the old dotfile that might be using a deprecated API, or do you replace the old configuration and clobber any customization the user's done? Oops, there go another 1,000 lines, on edge cases, option flags, conf merging, warning messages... And good luck getting bug reporters to explain their configuration changes!
Also, this stuff doesn't "change often". The distros literally can't change it often, because doing so might break LTS stability. I know it's fun to point out perceived flaws in other people's work, but in this case, the URLs are tightly bound to the parsing logic, which is the right place to put them IMO.
by Intralexical
5/1/2026 at 6:21:07 PM
Are you asking if this tool can find something on ubuntu 26.04 when the urls it has were hardcoded 11 years ago?by halJordan
5/1/2026 at 7:16:59 PM
The URL to search for packages in Ubuntu for example hasn't changed to my knowledge. Are you assuming it's only looking for packages in releases that were current at the time?by c-hendricks
5/1/2026 at 9:13:06 PM
The site it hardcodes is https://packages.ubuntu.com, so yes I would expect it to work fineby yjftsjthsd-h
5/1/2026 at 5:38:16 PM
In about a hundred or so separate microservices, of course…by pimlottc
5/1/2026 at 7:00:50 PM
The last commit was four years ago.by thilog