Old packages are now removed properly #120

Merged
Jef Roosens merged 3 commits from remove-old-packages into dev 2022-04-09 21:20:55 +02:00

This PR fixes the bug where old packages aren't removed from the file system. Because of this, each arch-repo now his its own subdirectory inside the pkg dir, namely /:repo/:arch. Packages with architecture "any" use hard links to prevent having to store the archive data multiple times. This greatly simplifies the codebase, but does require the download & pkg dir to be on the same file system. However, I was already recommending this before because before, files were moved between these directories already.

Closes #79

This PR fixes the bug where old packages aren't removed from the file system. Because of this, each arch-repo now his its own subdirectory inside the pkg dir, namely `/:repo/:arch`. Packages with architecture "any" use hard links to prevent having to store the archive data multiple times. This greatly simplifies the codebase, but does require the download & pkg dir to be on the same file system. However, I was already recommending this before because before, files were moved between these directories already. Closes #79
Jef Roosens added this to the 0.2.0 milestone 2022-04-09 21:11:40 +02:00
Jef Roosens added 2 commits 2022-04-09 21:11:41 +02:00
ci/woodpecker/push/arch unknown status Details
ci/woodpecker/push/docker unknown status Details
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/build Pipeline was successful Details
a65207f961
Solved the "removing old packages" problem (I think)
Jef Roosens added 1 commit 2022-04-09 21:17:31 +02:00
ci/woodpecker/push/arch unknown status Details
ci/woodpecker/push/docker unknown status Details
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/build Pipeline was successful Details
62bee78955
Updated changelog
Jef Roosens merged commit 8e7d3508d2 into dev 2022-04-09 21:20:55 +02:00
Jef Roosens deleted branch remove-old-packages 2022-04-09 21:20:55 +02:00
Sign in to join this conversation.
There is no content yet.