Bug #569
pacman2pacman - Bug #29: Create P2P mirror infrastructure
The torrent making code should be integrated into the other repo scripts
Status:
open
Priority:
bug
Assignee:
-
% Done:
10%
Description
This should not be hard, I'll work out what needs to be done.
History
Updated by xylon almost 9 years ago
I've made an example file of what needs to be done: https://t67.eu/filebin/integrate_pacman2pacman.bash
Updated by xylon almost 9 years ago
I've divided `make_repo_torrents' into two scripts, `make_individual_torrent' to make the actual torrent and a `make_repo_torrents' wrapper to find any updated packages and call `make_individual_torrent' for each. Then, when I work out where to put it, we can get rid of the wrapper script and have it get called during db-sync or wherever.
Updated by xylon over 8 years ago
- % Done changed from 0 to 10
- Assignee set to fauno
lukeshu said on IRC:
put it in db-functions:cleanup(), in the "if (( REPO_MODIFIED ));" section. everything except db-sync calls it.
I guess he means `make_repo_torrents'.
So we need to:- Move `make_repo_torrents' out of the `cron-jobs' folder in dbscripts.
- Remove the cron job from crontab.
- Make `make_repo_torrents' get called from where lukeshu said above.