From fd9e7d443e6ac96f163781a27674c27b43ee101f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 30 Sep 2015 11:24:54 -0400 Subject: comment --- .../comment_1_bc541cd7e3fdaa8e1664e95bebecb2bc._comment | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/forum/property_which_create_a_file/comment_1_bc541cd7e3fdaa8e1664e95bebecb2bc._comment (limited to 'doc/forum/property_which_create_a_file/comment_1_bc541cd7e3fdaa8e1664e95bebecb2bc._comment') diff --git a/doc/forum/property_which_create_a_file/comment_1_bc541cd7e3fdaa8e1664e95bebecb2bc._comment b/doc/forum/property_which_create_a_file/comment_1_bc541cd7e3fdaa8e1664e95bebecb2bc._comment new file mode 100644 index 00000000..cb8bd32f --- /dev/null +++ b/doc/forum/property_which_create_a_file/comment_1_bc541cd7e3fdaa8e1664e95bebecb2bc._comment @@ -0,0 +1,14 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2015-09-30T14:53:02Z" + content=""" +My suggestion in the specific case of the sbuild property would be to +generate the file whenever the property that generates the chroot has to +make a change. The `onChange` combinator accomplishes that. + +But if you really want to only run the property if the file doesn't exist, +you can do that by using the `check` combinator. For example: + + check (not <$> doesFileExist f) (createtarball f) +"""]] -- cgit v1.2.3