Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] xbps-src: allow loading xbp-src.conf from XDG compliant dirs
@ 2020-05-08 14:12 Johnnynator
  2020-05-08 14:14 ` [PR PATCH] [Updated] " Johnnynator
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Johnnynator @ 2020-05-08 14:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

There is a new pull request by Johnnynator against master on the void-packages repository

https://github.com/Johnnynator/void-packages xdg
https://github.com/void-linux/void-packages/pull/21746

xbps-src: allow loading xbp-src.conf from XDG compliant dirs
None

A patch file from https://github.com/void-linux/void-packages/pull/21746.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-xdg-21746.patch --]
[-- Type: text/x-diff, Size: 956 bytes --]

From f98dd80fd75c4d26c2b7a2fde695a1934c4d6dc1 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Fri, 8 May 2020 16:09:48 +0200
Subject: [PATCH] xbps-src: allow loading xbp-src.conf from XDG compliant dirs

---
 xbps-src | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xbps-src b/xbps-src
index 68765b6c248..20319101128 100755
--- a/xbps-src
+++ b/xbps-src
@@ -428,6 +428,10 @@ else
     elif [ -s $XBPS_DISTDIR/etc/conf ]; then
         # ... otherwise read generic user configuration...
         readonly XBPS_CONFIG_FILE=$XBPS_DISTDIR/etc/conf
+    elif [ -s $XDG_CONFIG_HOME/xbps-src.conf ]; then
+        readonly XBPS_CONFIG_FILE=$XDG_CONFIG_HOME/xbps-src.conf
+    elif [ -s $HOME/.config/xbps-src.conf ]; then
+        readonly XBPS_CONFIG_FILE=$HOME/.config/xbps-src.conf
     elif [ -s $HOME/.xbps-src.conf ]; then
         # ... fallback to ~/.xbps-src.conf otherwise.
         readonly XBPS_CONFIG_FILE=$HOME/.xbps-src.conf

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-08 22:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08 14:12 [PR PATCH] xbps-src: allow loading xbp-src.conf from XDG compliant dirs Johnnynator
2020-05-08 14:14 ` [PR PATCH] [Updated] " Johnnynator
2020-05-08 16:33 ` Chocimier
2020-05-08 16:46 ` [PR PATCH] [Updated] " Johnnynator
2020-05-08 22:16 ` [PR PATCH] [Merged]: " Johnnynator

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).