-
Notifications
You must be signed in to change notification settings - Fork 149
Upload with preserve-versions not behaving as expected at preserving older version of a package #23
Comments
👍 |
I thought the same, and wanted to fix this, but code is actually working fine. We have versioning like 1.2.3-1234 and hit this same issue but in 1.2.3-1234 first part (1.2.3) IS version and second part (1234) is considered as iteration number. So we decided to change our nomenclature to be more Debian specific (you can change it to 1.2.3+1234 for example) and that should work with current code: https://www.debian.org/doc/manuals/maint-guide/first.en.html#namever So this previous line should look like: @packages.delete_if { |p| p.name == pkg.name && "#{p.version}-#{p.iteration}" == "#{pkg.version}-#{pkg.iteration}" } ...but this is not OK regarding Debian naming convention. |
So, in summary, I am running into this issue because the version numbers I am assigning to my 2 example packages above don't look different to the code? |
Hello @maliksalman , indeed it seems you are having the same issue as we do, we believe the issue is because of the dashes in the version numbers. We are going to fix it by changing our versionning scheme. You might want to look at https://www.debian.org/doc/manuals/maint-guide/first.en.html#namever : "You should choose the upstream version to consist only of alphanumerics (0-9A-Za-z), plus (+), tildes (~), and periods (.). It must start with a digit (0-9)." |
Another report on this. We are using Oracle Java and making packages based on make-java-package (make-jpkg) this generates the following deb-names: Which are prety much quite nicely ingested by any repo system we have used, but unfortunately deb-s3 leaves only the later one uploaded. |
Hi Ken, i've installed it via gem but will check tomorrow from the release and report back. |
Thanks 0.6.1 works, but maybe it should be a bit more visible that there is preserve-versions flag. I.e. in the readme note that this gem mimics reprepro behaviour by default (keeps single version) or make the -p option visible in the default help and not only in upload |
I am trying to create private repo in S3. So starting with just basic stuff and trying to add two debs in an empty S3 bucket. Both of the debs have the same package name but different versions.
I first issue this command ...
This creates the appropriate structure in my bucket ... and using apt-get and https://github.com/krobertson/apt-s3, I can even access that repo and install that package. Then I run this next command ...
This ends up over writing the single package entry in Packages file that it generates. The old deb file is still present in S3 but just no entry for it in Packages file. I was expecting that the preserve-versions flag would allow me to keep the old version.
The listing in S3 look like this after the 2nd call ...
The DEBIAN/control file in the first package was ...
In the second package it was ...
Any insight/help would be appreciated
The text was updated successfully, but these errors were encountered: