summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-10-15 02:41:39 -0400
committerAndrew Cady <d@jerkface.net>2019-10-15 03:02:23 -0400
commit79ddffdec78b05f12243acbbe0e82dfdc238e76f (patch)
tree4d45f0485763d2b3b704adc739dc210a234d7d99
parentb16f32f48c0555c9007225f3028fc5a0e25ac85d (diff)
$(debarch) support
-rw-r--r--fsmgr.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/fsmgr.hs b/fsmgr.hs
index d28c0e4..a96bc1b 100644
--- a/fsmgr.hs
+++ b/fsmgr.hs
@@ -34,7 +34,12 @@ noParent (EmptyImageOfBytes _) = True
34noParent (ParentImageConfigFile _) = False 34noParent (ParentImageConfigFile _) = False
35 35
36dynamicNames :: FilePath -> FilePath 36dynamicNames :: FilePath -> FilePath
37dynamicNames = replace "$(karch)" uname 37dynamicNames = replace "$(karch)" uname . replace "$(debarch)" debarch
38
39debarch :: String
40debarch = unsafePerformIO $ do
41 Stdout out <- cmd "dpkg-architecture -q DEB_BUILD_ARCH"
42 return out
38 43
39uname :: String 44uname :: String
40uname = unsafePerformIO $ do 45uname = unsafePerformIO $ do