~ruther/guix-local

cba363bea8b93d367d0e64e94a8b31ef91707329 — Ludovic Courtès 12 years ago 929c0f6
package: Fix default profile ownership check when it's just been created.

* guix/scripts/package.scm (guix-package)[ensure-default-profile]: Check
  whether S is true before checking its owner.  Fixes the case where we
  built %PROFILE-DIRECTORY just above.
1 files changed, 1 insertions(+), 1 deletions(-)

M guix/scripts/package.scm
M guix/scripts/package.scm => guix/scripts/package.scm +1 -1
@@ 644,7 644,7 @@ more information.~%"))
            (rtfm))))

      ;; Bail out if it's not owned by the user.
      (unless (= (stat:uid s) (getuid))
      (unless (or (not s) (= (stat:uid s) (getuid)))
        (format (current-error-port)
                (_ "error: directory `~a' is not owned by you~%")
                %profile-directory)