From 0126f29fd30a01f5122b83cd4f6d98c9b7f9d632 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 21 May 2016 21:49:10 +0900 Subject: File.isCopyOf usage replaced with cmdProperty File.isCopyOf doesn't work when the first argument doesn't exist yet --- src/Propellor/Property/Sbuild.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Propellor/Property/Sbuild.hs b/src/Propellor/Property/Sbuild.hs index ea688f7a..0449425c 100644 --- a/src/Propellor/Property/Sbuild.hs +++ b/src/Propellor/Property/Sbuild.hs @@ -271,7 +271,7 @@ piupartsConf s u = go File.basedOn (dir "fstab") (orig "fstab", filter (/= aptCacheLine)) - create = File.isCopyOf f (schrootConf s) + create = cmdProperty "cp" [f, schrootConf s] `assume` MadeChange `before` File.fileProperty "replace suffix" (map munge) f orig = "/etc/schroot/chroot.d/sbuild" -- cgit v1.2.3