Commits

Peter Bex  committed d0925e1

Fix pax_global_header problem

  • Participants
  • Parent commits f7e0690
  • Tags 0.4.1

Comments (0)

Files changed (2)

File henrietta-cache.scm

       ;; Some people extract to the current directory, some include the
       ;; directory
       (let* ((contents (directory tmp-dir))
-             (contents-dir (if (= 1 (length contents))
-                               (make-pathname tmp-dir (car contents))
-                               tmp-dir))
+             (contents-dir (match contents
+                             ;; Silly pax archives contain this bogus entry.
+                             ;; Some pax-aware tar(1)s skip it, others don't.
+                             ((or (dir "pax_global_header")
+                                  ("pax_global_header" dir)
+                                  (dir))
+                              (make-pathname tmp-dir dir))
+                             (else tmp-dir)))
              (cmd (sprintf "mv ~A/* ~A" (qs contents-dir) (qs cache-dir)))
              (status (system cmd)))
         (unless (zero? status)

File henrietta-cache.setup

 (install-program
  'henrietta-cache
  '("henrietta-cache")
- '((version "0.4")))
+ '((version "0.4.1")))