[bug#38781,core-updates] build-system/gnu: Make 'first-subdirectory' optional.
diff mbox series

Message ID 20191228214622.4061-1-dannym@scratchpost.org
State New
Headers show
Series
  • [bug#38781,core-updates] build-system/gnu: Make 'first-subdirectory' optional.
Related show

Commit Message

Danny Milosavljevic Dec. 28, 2019, 9:46 p.m. UTC
* guix/build/gnu-build-system.scm (unpack): Make 'first-subdirectory'
optional.
---
 guix/build/gnu-build-system.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marius Bakke Jan. 30, 2020, 12:19 p.m. UTC | #1
Danny Milosavljevic <dannym@scratchpost.org> writes:

> * guix/build/gnu-build-system.scm (unpack): Make 'first-subdirectory'
> optional.

Do you have a use case for this change?

Patch
diff mbox series

diff --git a/guix/build/gnu-build-system.scm b/guix/build/gnu-build-system.scm
index 4df0bb4904..4ebaa455b0 100644
--- a/guix/build/gnu-build-system.scm
+++ b/guix/build/gnu-build-system.scm
@@ -160,7 +160,7 @@  working directory."
         (if (string-suffix? ".zip" source)
             (invoke "unzip" source)
             (invoke "tar" "xvf" source))
-        (chdir (first-subdirectory "."))))
+        (chdir (or (first-subdirectory ".") "."))))
   #t)
 
 (define %bootstrap-scripts