Git Product home page Git Product logo

Comments (6)

sollidsnake avatar sollidsnake commented on August 19, 2024

First of all, apologies for taking so long to answer. I've been very busy these days.

Being able to update packages is a goal of this project, but I haven't worked this issue yet. Currently, pipman only generates the PKGBUILD, and doesn't actually track anything. I'd like to avoid databases and keep this simplicity if possible.

I'm thinking in adding pipman-package as an identifier in pacman's group or maybe pacman's provider, and when the update command is invoked, pipman would search for all the packages with this identifier and update them. Do you think would be a good approach?

from pipman.

n3f4s avatar n3f4s commented on August 19, 2024

I have little to no idea how pacman's database work. I tried to read pacman's python implementation but I didn't have time (but I'm planning to read it).
Won't pacman try to update everything in his database when doing an update ?
If not, your approach is (IMHO) the best.

I've tried to read pacaur and yaourt source code to see how they do the update but they are written in bash and the code his quite hard to read.

from pipman.

sollidsnake avatar sollidsnake commented on August 19, 2024

Pacman, yaourt and pacaur use their own database of packages. To update a package, they compare the name and version of a package with your local one -- if the name matches and the repository version is greater than the installed one, it updates.

Pipman has nothing to do with those repositories. It only generates a package that is installed locally only with pacman. That package will only update through pacman (or yaourt) if a package with the same name and greater version was added to the repository.

I'll look further into this approach I mentioned and see if it works.

from pipman.

n3f4s avatar n3f4s commented on August 19, 2024

I think I misunderstood your idea the first time. Lets see if I understood it right this time.

The idea would be, when creating the PKGBUILD to add pipman-package in a field. When updating pipman will list the packages that have pipman-package in this field and check (with pip) if they need to be updated (and update the package by re-installing it if needed).

Have I understood your idea ?

If yes, it's a good idea. It shouldn't be too hard to implement.

from pipman.

sollidsnake avatar sollidsnake commented on August 19, 2024

Yes, it's how you described. Although I'm not sure if this approach goes against pacman's guidelines, I think it's the best one. I'll go on with it.

from pipman.

sollidsnake avatar sollidsnake commented on August 19, 2024

This feature was implemented on the latest commit. Now you can update the packages installed through pipman with pipman -Su. Note that this will only work for new packages installed using the new version, your old packages won't be updated. Please let me know if you find any issue.

from pipman.

Related Issues (16)

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.