GithubHelp home page GithubHelp logo

Avoid overwriting old versions about deb-s3 HOT 6 CLOSED

tfheen avatar tfheen commented on July 20, 2024
Avoid overwriting old versions

from deb-s3.

Comments (6)

joscarsson avatar joscarsson commented on July 20, 2024

You already have the flag --preserve-versions, but you want it the other way around?

from deb-s3.

tfheen avatar tfheen commented on July 20, 2024

--preserve-versions is for not getting rid of old versions of packages from the manifest. It doesn't prevent me from uploading foo_1.0 if there already is a foo_1.0 in the archive, which is what I'd like.

from deb-s3.

joscarsson avatar joscarsson commented on July 20, 2024

I see. Does it really upload and overwrite the .deb if the .deb is already there? The transfer of the .deb was suspiciously quick, for me at least. I will investigate more, as soon as I get it working (#54).

from deb-s3.

tfheen avatar tfheen commented on July 20, 2024

I'm fairly sure it does. I haven't tested it recently and so don't have backlogs to prove it.

from deb-s3.

whiteley avatar whiteley commented on July 20, 2024

The package is overwritten but so are the manifests and the repository is left in a valid state. As long as the user has run apt-get update since the upload, the install will succeed without issue. I think the default behavior should be to not upload existing packages whether they have changed or not, both to save on transfers and to allow deb-s3 upload *.deb behavior.

@krobertson would you be fine with the --force-overwrite option as described? If so, I'm happy to put it together. Also, great package - thanks! 👍

from deb-s3.

BrianAdams avatar BrianAdams commented on July 20, 2024

Just to add, if when overwriting, the system should check all of the other places that might have links to that same package and the manifest for those need to be refreshed with the new package. This is because a package with the same file name may have a different hash value (perhaps because it was signed at a different time) and the overwrite will break the other manifests if they are not updated.

from deb-s3.

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.