summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-02db-import-any.conf: add [community-testing]megver83David P
and update comments Signed-off-by: David P <megver83@parabola.nu>
2018-10-02config: Add ppc64le supportDavid P
Signed-off-by: David P <megver83@parabola.nu>
2018-10-02Recycle db-import-archlinux-any-to-oursDavid P
Now called db-import-any, it is used to sync -any packages to non-Arch's architectures The systemd files are based on db-import-keyring Signed-off-by: David P <megver83@parabola.nu>
2018-09-26make_repo_torrents: Fixparabola/20180925.2Luke Shumaker
2018-09-26test: make_repo_torrents: Verify that it recovers from previous failures ↵Luke Shumaker
[ci-skip]
2018-09-26db-import-keyring: FixLuke Shumaker
2018-09-26test: Add tests for db-import-keyring [ci-skip]Luke Shumaker
2018-09-26test/lib/import: Simplify STAGING config setupLuke Shumaker
2018-09-26test: Pull common stuff out of 'db-import-pkg.bats' in to 'import.bash'Luke Shumaker
2018-09-26Revert "Revert "Teach db-cleanup to clean old torrents, rather than having ↵Luke Shumaker
make_repo_torrents do it"" When I reverted this commit, I said: > Since make_repo_torrents will now only place symlinks in TORRENTPOOL, the > dead symlink removal will now handle it automatically, and db-cleanup needs > no special knowledge of TORRENTPOOL. However, that only means that we can *eventually* revert this. There are still currently a ton of old plain files in TORRENTPOOL that need cleaned up first. Consider reverting this when the following comes back empty: find "${FTP_DIR}/${TORRENTPOOL}" -type f This reverts commit 840c13924da569fc38f45181b5ac2a059b6b143e.
2018-09-25make_repo_torrents: Don't abort on symlink errors $TORRENTPOOLparabola/20180925.1Luke Shumaker
These should be errors, but they shouldn't prevent the creation of torrent files in other directories. https://labs.parabola.nu/issues/1253
2018-09-25Fix file permissionsLuke Shumaker
2018-09-25make_repo_torrents: Fixparabola/20180925Luke Shumaker
2018-09-25test: Add make_repo_torrentsLuke Shumaker
2018-09-25Revert "Teach db-cleanup to clean old torrents, rather than having ↵Luke Shumaker
make_repo_torrents do it" Since make_repo_torrents will now only place symlinks in TORRENTPOOL, the dead symlink removal will now handle it automatically, and db-cleanup needs no special knowledge of TORRENTPOOL. This reverts commit 3540ddbf4c2dc25903f3d4f23a86dd795ae620e2.
2018-09-25make_repo_torrents: Place the .torrent alongside the actual package fileLuke Shumaker
Place symlinks in TORRENTPOOL (for compatibility with pacman2pacman 20170705.1 and older). Also pace symlinks to the torrent alongside any symlinks to the package file. Use dynamic programming to crawl symlinks.
2018-09-25Revert "make_repo_torrents: Look directly in /pool/, rather than searching ↵Luke Shumaker
all repos" This reverts commit fa2fbd5d0fd120ec6774f6b28bea4dfaf456ab00.
2018-09-25make_repo_torrents: Don't strip slash just to add it back inLuke Shumaker
2018-09-25make_repo_torrents: Be a little verboseLuke Shumaker
2018-09-25make_repo_torrents: Avoid resolving symlinks unnecessarilyLuke Shumaker
2018-09-25Teach db-cleanup to clean old torrents, rather than having ↵Luke Shumaker
make_repo_torrents do it
2018-09-25db-cleanup: TidyLuke Shumaker
- Use libremessages:setup_traps() instead of doing it ourselves - Use $(dirname ... $0)/../ instead of calling dirname twice - Don't use `&&` or `||` instead of an `if` block - Compare $CLEANUP_DRYRUN against the string 'true', rather than executing it
2018-09-25make_repo_torrents: Make it possible to configure multiple web-seedsLuke Shumaker
2018-09-25make_repo_torrents: Look directly in /pool/, rather than searching all reposLuke Shumaker
2018-09-25make_repo_torrents: TidyLuke Shumaker
2018-09-25Have make_individual_torrent be a function in make_repo_torrentsLuke Shumaker
Rather than it being a separate executable.
2018-09-25make_repo_torrents: Clean up, add configLuke Shumaker
- Don't bother checking which user is running it, that's hacky - set -e * actually bail if we get an error - Make the torrent directory configurable as TORRENTPOOL
2018-09-25Clean up make_individual_torrent, add config drop the second argumentLuke Shumaker
- Add 'torrent.conf' instead of hard-coding the settings - The second argument is $FTP_BASE, just load that from 'config', rather than asking for it.
2018-09-25Normalize to the indentation settings in .editorconfigLuke Shumaker
2018-09-25README: Update information about db-import-*Luke Shumaker
2018-09-25Add a 'db-import-keyring' programLuke Shumaker
It is a bit similar in spirit to the old 'any-to-ours' program. When db-import-pkg imports archlinux32-keyring, it is only released to core-i686, but we need it to be available on all architectures. Currently, this is a manual process. So, add db-import-keyring which imports *only* the -keyring packages, and releases them to [libre] on each architecture.
2018-09-24db-import-pkg: Also stage symlinks to PKGPOOLparabola/20180924Luke Shumaker
2018-09-24test: db-import-pkg: Verify that we can add previously removed packages ↵Luke Shumaker
[ci-skip]
2018-09-24db-import-pkg: Just a little better loggingLuke Shumaker
2018-09-21db-update: Allow packages without PACKAGER set when importing from Arch 32parabola/20180921Luke Shumaker
Work around for: https://bugs.archlinux32.org/index.php?do=details&task_id=52
2018-09-20db-import-pkg: Don't be over-zealous when removing packagesparabola/20180920.1Luke Shumaker
2018-09-20test: db-import-pkg: Be stricter about checking the .db [ci-skip]Luke Shumaker
2018-09-20db-move, db-remove: Require explicitly prefixing "pkgname=" to use pkgnameLuke Shumaker
instead of pkgbase This makes it harder to accidentally do the wrong thing and easier to say "this is exactly what I mean." When using "pkgname=", it won't vcs_move or vcs_remove the package. Which is... fine, since if you gave it a pkgname before it was broken anyway, as they expect a pkgbase. Perhaps they should track which members of a split package have been moved/removed? This reverts commit 2d3abfdc8bb035f4ae0b652c1362c68ca10e76e2.
2018-09-20db-import-pkg: Improve loggingLuke Shumaker
Commit 2bbf81 promoted the call to sync_pool to outside of the tag loop, so it bumped sync_pools's inner msg2 to an msg. Then c9a7db but it back inside of the tag loop, but didn't demote it back down to an msg2.
2018-09-11Update config-list-mirrors-archlinuxarm, switch to the Denmark mirrorparabola/20180920Luke Shumaker
2018-09-03Merge branch 'archlinux'Luke Shumaker
2018-09-03test: db-import-pkg: Give all upstreams multiple tagsLuke Shumaker
2018-09-03db-import-pkg: Make the tests passLuke Shumaker
- Drop pointless -0 flag from xargs (overridden it with -d anyway) - Fix typo in file path (diff vs dif) - Because of the ARCHPKGPOOL fallback, call sync_pool for each tag - Don't call sync_pool if the whitelist doesn't exist (is empty) - Don't call `expac_file ... ${pkgnames[@]}` if pkgnames is empty, it it would return info on all packages
2018-09-03test: db-import-pkg: Add some move and remove tests [ci-skip]Luke Shumaker
2018-09-03test: db-import-pkg: Drop the skipped pool-selection testLuke Shumaker
Pool selection can't fail anymore.
2018-09-02db-import-pkg: Use db-{move,update,remove}Luke Shumaker
2018-09-02db-update: Allow packages to be symlinks for db-importLuke Shumaker
2018-09-02fixup! db-import-pkg: Merge the config in to the main DBSCRIPTS_CONFIG systemLuke Shumaker
2018-09-02db-import-pkg: Use {PKG,SRC}POOL rather than OUR{PKG,SRC}POOLLuke Shumaker
These values should all be the same.
2018-09-02db-import-pkg: Merge the config in to the main DBSCRIPTS_CONFIG systemLuke Shumaker
I know, I'm a hypocrite for violating # Please try to refrain from adding new variables to this file. # Instead, create separate ${toolname}.conf files. Only add a # variable here if multiple tools start needing the option. When db-import-pkg moves to use db-{move,update,remove} internally, it will also need to load an upstream-specific config.local.${UPSTREAM} file (the systemd service already sets Environment=DBSCRIPTS_CONFIG=… appropriately, in anticipation of this. This means that the upstream must be specified *twice* when invoking db-import-pkg; once in the environment, and once in an arg. Right now it (essentially) disregards the environment setting, but that won't always be true. To put a point on that, the test suite currently *doesn't* set the environment differently for each upstream; once it actually uses the environment, the test suite will "break". So, I'd like to unify these, so that the upstream only needs to be specified once. If we do this as an argument, it will have to get very kludgey with overriding DBSCRIPTS_CONFIG internally, so don't do that. That leaves setting the upstream via DBSCRIPTS_CONFIG= as the only sane option. At that point, it becomes silly to have a tertiary config file (db-import-${UPSTREAM}.conf) that is referred to by the secondary config file (config.local.${UPSTREAM}).