Aptly 1.6.0 - Cannot Create Snapshot on Mirror with no Packages (Example debian-security non-free) #1416
Labels
bug
please confirm resolved
We believe the issue is resolved ! if so, please close the issue, thanks ;-)
Milestone
Detailed Description
When mirroring a repo that doesn't currently have any packages (In my case, debian-security's non-free component), Aptly 1.6.0 fails to create a snapshot, stating that the mirror has not been updated.
Aptly 1.6.0 behavior:
Create mirror:
Update mirror:
Create snapshot:
In the previous release of Aptly (1.5.0+ds1-1+b4), aptly will successfully create a snapshot of an empty mirror.
Aptly 1.5.0 behavior:
Create mirror:
Update mirror:
Create snapshot:
Troubleshooting steps
Context
Even though the repo currently doesn't contain any packages, it may at some point. Back in Aptly 1.5.0, I could continue with the rest of the steps for merging the snapshots and publish but with 1.6.0, this prevents a later snapshot merge because that snapshot was never created in the first place.
Possible Implementation
Aptly should still consider a mirror updated when the mirror contains no packages.
Your Environment
In my environment, I use aptly to mirror the debian repo (bookwork, bookworm-updates, bookworm-security) split by components and then merge the components (with latest only) of 3 sources together and finally publish it.
The text was updated successfully, but these errors were encountered: