Coder Social home page Coder Social logo

Comments (2)

zqqw avatar zqqw commented on August 25, 2024

Arch, Artix and Parabola store the PKGBUILD's for the packages online in various different formats, in git repos which can be queried to checkout any version that is in there, and have to be. Arch changed it's arrangements recently thus breaking Pakku -Sn -Sz for a while. Artix was not previously supported. Parabola was, but I've not yet got round to installing Parabola to test if that even works (although nobody has ever complained either) so that is functioning as it originally was. Arch repo's were originally laid out like Parabola ones but are now more like Artix but not quite.
So you have the original long and convoluted code path to download the right branch of the overall git repo (because the original Arch PKGBUILD's were all in one giant repo) and checkout the correct version. Then overlaid and intertwined with that (which is now routed for Parabola only) it will download and checkout the individual per package git repos that are now used in Arch and Artix.
I tried to put in plenty of comments in the code for the bits I added. It's basically determining what distro is in use, what repo the package is in, and how to get the right PKGBUILD for it at the right version. AUR PKGBUILDS are obtained in a totally different manner again but that is mostly separate so is still pretty much original kitsunyan code barring small changes for Nim version updates.
Also those isArch etc bools are no longer used and I just forgot to delete the declarations, they were used earlier on as it was simple to have some global variables when a lot of things were getting changed but it was kind of "namespace pollution."
There are also some libalpm functions that have been wrapped but aren't used anywhere I saw, perhaps they could be commented out in case they came in useful later which might cut build times by a tiny tiny amount. Possibly other unused things are around too. There are some parts of the code that only runs at build time though.

from pakku.

hochata avatar hochata commented on August 25, 2024

Thanks! I'll try to clean up the code when I have time. It seems there is not really anything to document, other that non-standard repos requiring specific support.

from pakku.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.