From: b-l-a-i-n-e <b-l-a-i-n-e@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] `./xbps-src zap` deletes all files in masterdir
Date: Mon, 13 Dec 2021 07:53:28 +0100 [thread overview]
Message-ID: <20211213065328.zUPesmmznljXStHY06gF7U5r3b0XIOg49OvHfuFu1-s@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34506@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 424 bytes --]
There is an updated pull request by b-l-a-i-n-e against master on the void-packages repository
https://github.com/b-l-a-i-n-e/void-packages xbps-src-zap-34505
https://github.com/void-linux/void-packages/pull/34506
`./xbps-src zap` deletes all files in masterdir
#### Testing the changes
- I tested the changes in this PR: **YES**
A patch file from https://github.com/void-linux/void-packages/pull/34506.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-xbps-src-zap-34505-34506.patch --]
[-- Type: text/x-diff, Size: 861 bytes --]
From 26f072210beca2ea566d13d363227f404e7e160c Mon Sep 17 00:00:00 2001
From: b-l-a-i-n-e <blaine.gilbreth@gmail.com>
Date: Sun, 12 Dec 2021 20:43:45 -0800
Subject: [PATCH] zap: `chmod -R` needed to remove Go modules
We need to `chmod -R` to clean up after Go packages if they get moved
into the masterdir. But since the removal of go packages is unnecessary
in most cases, we only run if the first `rm -rf` fails.
---
xbps-src | 1 +
1 file changed, 1 insertion(+)
diff --git a/xbps-src b/xbps-src
index ff249015ed02..6ee069b54e12 100755
--- a/xbps-src
+++ b/xbps-src
@@ -292,6 +292,7 @@ check_native_arch() {
}
masterdir_zap() {
+ rm -rf "$XBPS_MASTERDIR" || chmod -R +wX "$XBPS_MASTERDIR" # needed to remove go modules
rm -rf "$XBPS_MASTERDIR"
mkdir -p "$XBPS_MASTERDIR"
msg_normal "xbps-src: $XBPS_MASTERDIR masterdir cleaned up.\n"
next prev parent reply other threads:[~2021-12-13 6:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-13 4:44 [PR PATCH] " b-l-a-i-n-e
2021-12-13 6:10 ` ericonr
2021-12-13 6:53 ` b-l-a-i-n-e [this message]
2021-12-13 6:54 ` b-l-a-i-n-e
2022-02-01 16:57 ` [PR PATCH] [Closed]: zap: `chmod -R` needed to remove Go modules b-l-a-i-n-e
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211213065328.zUPesmmznljXStHY06gF7U5r3b0XIOg49OvHfuFu1-s@z \
--to=b-l-a-i-n-e@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).