aboutsummaryrefslogtreecommitdiff
path: root/misc
Commit message (Collapse)AuthorAgeFilesLines
* Revert "emerge-webrsync: actually honour the sync-webrsync-verify-signature ↵Sam James2024-10-021-5/+4
| | | | | | | | | | | | | attribute" This reverts commit f99eb91227918d5bf0cc531e78bd597c73b7ce1f. Revert for now as we understand the status quo better, and this breaks syncing w/ emerge-webrsync. I'll come back to this but I'd rather work with a known quantity for now than rush a fix. Bug: https://bugs.gentoo.org/940120 Signed-off-by: Sam James <sam@gentoo.org>
* emerge-webrsync: actually honour the sync-webrsync-verify-signature attributeKerin Millar2024-07-261-4/+5
| | | | | | | | | | | | | | | The repo_has_webrsync_verify variable was always being set as the empty string, despite later being compared to 1 in the arithmetic context. Have it work in the way that was originally intended. This also eliminates a superfluous use of the has() function, which was the reason for my inspecting the code in the first place. Also, apply the exact same fix to emerge-delta-webrsync. Fixes: b5cd549e07f3d835cbe04e5b718cdd47d7ee69f5 Fixes: 0347637fe5033d3d8eb4fdafa1e86de171934819 Signed-off-by: Kerin Millar <kfm@plushkava.net> Signed-off-by: Sam James <sam@gentoo.org>
* emerge-delta-webrsync: cd to TMPDIR before rsyncZac Medico2024-01-281-0/+1
| | | | | | | | | | | | | The cd to TMPDIR before rsync was erroneously removed in commit fa0f8720e168c95bcd6a8bd57d5abf09c488fd32. Apparently this problem was not reported earlier because this code path only executes when tarsync is not installed, and the emerge-delta-webrsync postinstall suggests to install tarsync since version 3.7.3 released near the end of 2015. Bug: https://bugs.gentoo.org/922923 Fixes: fa0f8720e168 ("emerge-delta-webrsync: handle gentoo-YYYYMMDD directory name") Signed-off-by: Zac Medico <zmedico@gentoo.org>
* misc/emerge-delta-webrsync: fix typosSam James2023-11-111-2/+2
| | | | | | Thanks to codespell. Signed-off-by: Sam James <sam@gentoo.org>
* emerge-webrsync: Avoid double slash when expanding EPREFIXUlrich Müller2023-08-241-3/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* misc/emerge-delta-webrsync: fix incorrect warning in --helpSam James2023-08-191-1/+1
| | | | | | | | I was wrong - the full thing is indeed verified, because we check both the base + final signatures. Fixes: 0347637fe5033d3d8eb4fdafa1e86de171934819 Signed-off-by: Sam James <sam@gentoo.org>
* misc/emerge-delta-webrsync: drop dead --keyserver codeSam James2023-08-191-5/+0
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* misc/emerge-delta-webrsync: sync with emerge-webrsync for proxy supportSam James2023-08-191-2/+8
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* misc/emerge-delta-webrsync: fix copyright header, whitespaceSam James2023-08-191-2/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* misc/emerge-delta-webrsync: fix pgp verificationSam James2023-08-191-57/+238
| | | | | | | | Sync the logic with bin/emerge-webrsync to bring in the recent updates from portage-3.0.47 onwards. Bug: https://bugs.gentoo.org/911335 Signed-off-by: Sam James <sam@gentoo.org>
* *: use /usr/bin/env bash iso /bin/bashFabian Groffen2022-07-251-1/+1
| | | | | | | For Prefix systems it's better not to use host-provided bash (if it exists at all), and this is in line with python usage as well. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* emerge-delta-webrsync: chmod 755 temp dir (bug 704256)Zac Medico2019-12-301-0/+1
| | | | | | | | | Before the rsync call, chmod 755 the temporary directory so that the root directory of the repository will have appropriate permissions. Fixes: fa0f8720e168 ("emerge-delta-webrsync: handle gentoo-YYYYMMDD directory name") Bug: https://bugs.gentoo.org/704256 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* emerge-delta-webrsync: handle gentoo-YYYYMMDD directory nameZac Medico2019-12-091-7/+6
| | | | | Bug: https://bugs.gentoo.org/693454 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* repos.conf: default sync-webrsync-verify-signatureZac Medico2019-07-101-3/+16
| | | | | | | | | | | | | | | | | | Enable sync-webrsync-verify-signature by default in repos.conf (due to dependencies the ebuild will make this conditional on USE=rsync-verify in the same way as the default sync-rsync-verify-metamanifest value). Use a new PORTAGE_TEMP_GPG_DIR variable to distinguish indirect emerge-webrsync calls that use gemato for secure key refresh, and disable direct emerge-webrsync calls. Deprecate FEATURES=webrsync-gpg and use it to trigger a backward-compatibility mode where direct emerge-webrsync calls are allowed (but trigger a warning message). Since direct emerge-webrsync calls do not use gemato for secure key refresh, this behavior will not be supported in a future release. Bug: https://bugs.gentoo.org/689506 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* emerge-delta-webrsync: fix vecho command substitutionZac Medico2018-07-271-1/+1
| | | | | | | Since vecho now outputs to stderr, the output has to be redirected to stdout when command substitution is intended. Fixes: 2b6210463300 ("isolated-functions.sh: Ensure informational command output to stderr")
* webrsync: support emerge-delta-webrsync (bug 661838)Zac Medico2018-07-271-1/+16
| | | | | | | | | Add a repos.conf sync-webrsync-delta setting that makes the webrsync module call emerge-delta-webrsync, so that emerge-delta-webrsync users can benefit from sync-openpgp-key-path support in the webrsync module. Bug: https://bugs.gentoo.org/661838 Reviewed-by: Brian Dolbec <dolsen@gentoo.org>
* emerge-delta-webrsync: exit early for signature problem (bug 661838)Zac Medico2018-07-271-0/+7
| | | | | | | | | Exit early after signature verification failure, since it's typically inappropriate to try other mirrors in this case (it may indicate a keyring problem). Bug: https://bugs.gentoo.org/661838 Reviewed-by: Brian Dolbec <dolsen@gentoo.org>
* emerge-delta-webrsync: uses gpg --status-fdZac Medico2018-01-311-1/+10
|
* Revert "portage.repository.config: Clean reading of repository (...) "Michał Górny2015-12-131-2/+2
| | | | | | This reverts commit 2cde1f65e9c585e78415857fdcac1fe5deaa60da. This was unreviewed and is a breaking change made without any discussion or announcement.
* portage.repository.config: Clean reading of repository names and drop ↵Arfrever Frehtes Taifersar Arahesis2015-12-081-2/+2
| | | | support for repositories with missing or invalid names.
* emerge-delta-webrsync: fix incorrect bzip2 file path argumentXiami2015-11-051-1/+1
|
* emerge-delta-webrsync: fix bug #506192Zac Medico2014-10-191-1/+1
| | | | | | | | | | | | | This fixes the sync_local function so that it doesn't prematurely remove the whole TMPDIR when tarsync is not installed. In this case, we really only want to remove the "${TMPDIR}"/portage directory which contains a temporary copy of the portage tree. The faulty code was introduced in commit 24f6a9599bcf445c468022264cd6952aad4d4076 when a bunch of code from emerge-webrsync was merged into emerge-delta-webrsync. Fixes: 24f6a9599bcf ("emerge-delta-webrsync: check full snapshot sig") X-Gentoo-Bug: 506192 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=506192
* emerge-webrsync: fix bug #523494Zac Medico2014-09-241-2/+2
| | | | | | | | Use PATH instead of PORTAGE_BIN_PATH to locate emerge. Fixes: 0cc4c1ac21a2 ("Install Portage using setup.py") X-Gentoo-Bug: 523494 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=523494
* Rename a private function.Arfrever Frehtes Taifersar Arahesis2014-02-051-2/+2
|
* emerge-webrsync: use PORTAGE_REPOSITORIES varZac Medico2013-07-221-19/+20
| | | | | Using this variable allows us to get all required configuration data with a singe portageq envvar call.
* emerge-webrsync and emerge-delta-webrsync: Stop using PORTDIR.Arfrever Frehtes Taifersar Arahesis2013-07-171-12/+18
|
* emerge-delta-webrsync: cleanup deltasZac Medico2013-07-101-0/+4
|
* emerge-delta-webrsync: rm empty file, bug #476416Zac Medico2013-07-101-1/+6
|
* emerge-webrsync: fetch_file rm absolute pathZac Medico2013-06-211-1/+1
|
* emerge-delta-webrsync: clean TMPDIR morev2.2.0_alpha184Zac Medico2013-06-211-2/+5
|
* emerge-delta-webrsync: check full snapshot sigZac Medico2013-06-211-153/+323
| | | | | | This patch merges a lot of code from emerge-webrsync, so that the same code is used when it's necessary to download a full snapshot and check the signature. This will fix bug #286373.
* emerge-delta-webrsync: fix STATE_DIR for EPREFIXZac Medico2013-01-281-1/+1
|
* emerge-webrsync: rsync -o -g, bug #442190Zac Medico2012-11-071-3/+6
| | | | | This fixes a regression since the -a option was removed in commit e672b5ccbbbe38eda5c733fc799a20d92a8bdf75.
* emerge-delta-webrsync: fix vecho breakageZac Medico2012-09-141-0/+4
| | | | Broken since commit 9b19ac5696c487dab58d7c10990fe07fd7f1f731.
* emerge-delta-webrsync: tweak "recompressing" msgZac Medico2012-08-181-1/+2
| | | | FEATURES=webrsync-gpg forces it to recompress in the foreground.
* emerge-delta-webrsync: improve date calculationsZac Medico2012-08-181-41/+43
| | | | This borrows some code from emerge-webrsync, and will fix bug #153513.
* emerge-*webrsync: use ${PORTAGE_BIN_PATH}/emergeZac Medico2012-08-181-2/+4
|
* emerge-*webrsync: fix post_sync for prefixZac Medico2012-08-181-3/+3
|
* emerge-delta-webrsync: mktemp in PORTAGE_TMPDIRZac Medico2012-08-181-23/+20
| | | | This will fix bug #198362.
* emerge-delta-webrsync: fix make.globals pathZac Medico2012-08-181-2/+3
|
* emerge-delta-webrsync: rm -f for non-interactiveZac Medico2012-08-181-10/+10
| | | | This prevents interactive mode as reported in bug #176008.
* emerge-delta-webrsync: normalize fetch URIZac Medico2012-08-171-1/+1
| | | | This will fix bug #124072.
* emerge-delta-webrsync: PORTAGE_RSYNC_OPTSZac Medico2012-08-171-3/+1
|
* emerge-delta-webrsync: add -q/--quiet optionZac Medico2012-08-171-0/+6
|
* emerge-delta-webrsync: check write permissionZac Medico2012-08-171-4/+15
| | | | This will fix bug #176008.
* emerge-delta-webrsync: handle FEATURES=usersyncZac Medico2012-08-171-3/+19
|
* emerge-delta-webrsync: support gpg verificationZac Medico2012-08-171-3/+59
| | | | | | | | This will fix bug #286373. BUG: Signature verification will fail if the local bzip2 program does not produce output that is perfectly identical to the bzip2 program used to compress the signed tar file.
* emerge-delta-webrsync: remove umd5sumAlexey Solovyev2012-08-171-1/+1
| | | | This will fix bug #189084.
* emerge-delta-webrsync: call portageq for configZac Medico2012-08-171-15/+26
|
* emerge-delta-webrsync: import version 3.5.1-r3Zac Medico2012-08-171-0/+512