aptly-dev / aptly

aptly - Debian repository management tool
https://www.aptly.info/
MIT License
2.54k stars 369 forks source link

FeatureRequest: add possibility to add the codename to the name of a downloaded package #1260

Open geosone opened 3 months ago

geosone commented 3 months ago

Detailed Description

As there are some broken debain repos for different releases (buster bookworn ...) and these repos put everything into there own repos with dist/pool dirs so the deb packages have the same name across all the repos (a good examplle is the microsoft mssql dotnet repos) so it would be great if the deb file gets renamed (only the file not the package control file) with for ex the codename added so these repos can be integrated into one pool directory. at the moent when i try to merge thes repos it would not merge these repos becuase of 2-3 deb files with same name und differnt checksums.

Context

this would make it possibel to merge these broken repos into one pool direcotry. this would also help other users with the smae problem.

Possible Implementation

add a paramter like pkgrename=auto or rename=yourname/codename and in case of auto if it trays downloading a deb with a filename already presnet it would rename the file and add it to the pool

Your Environment

using it to create a local repo for the big external repos for security reasons. with point snapshots.

neolynx commented 2 months ago

good idea! I wonder what the limitations/drawbacks are...

fti-sfuke commented 1 month ago

We want to create a local apt mirror with tagged packages for each client installation. This ensures that when different releases like Debian 12.4 and Debian 12.5 require different versions of a package, they pull the appropriate one during installation.

However, we want to avoid duplicating the same packages in different repositories to prevent wasting storage space. Our preference is to add tags to existing packages and pull them based on these tags.