diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-12-03 11:25:27 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-12-03 11:25:27 -0400 |
| commit | f71d10672e035d81c4ee20d1394e5b100d3a7b2f (patch) | |
| tree | b2740a14e74d4102ba70930958f561d2379b136d | |
| parent | 52a339cbecd52c836153516a933c9c13b46fe00f (diff) | |
comment
| -rw-r--r-- | doc/todo/pull_request:_patch_Apt.buildDep_to_only_proceed_if_installable/comment_10_eb58216ef1172ee5b882090dab7219ce._comment | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/todo/pull_request:_patch_Apt.buildDep_to_only_proceed_if_installable/comment_10_eb58216ef1172ee5b882090dab7219ce._comment b/doc/todo/pull_request:_patch_Apt.buildDep_to_only_proceed_if_installable/comment_10_eb58216ef1172ee5b882090dab7219ce._comment new file mode 100644 index 00000000..3799a012 --- /dev/null +++ b/doc/todo/pull_request:_patch_Apt.buildDep_to_only_proceed_if_installable/comment_10_eb58216ef1172ee5b882090dab7219ce._comment @@ -0,0 +1,32 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 10""" + date="2015-12-03T15:05:21Z" + content=""" + + trivial (trivial p `changesFile` f) `changesFile` f' + +The parenthesized property here is all marked trivial, so a change to f +won't result in MadeChange, though a change to f' will. + +The only way propellor might intercept the output of a program is if you're +using the new Concurrent module. In that case it should buffer program output +and display it all at once. There could potentially be a bug there that +hid program output. I certianly can't reproduce changesFile hiding the output +of a program: + + *Propellor.Property.Apt> runPropellor (Host "localhost" [] mempty) $ ensureProperty $ trivial (buildDep ["git-annex"]) `changesFile` "/var/lib/dpkg/status" + Reading package lists... Done + Building dependency tree + Reading state information... Done + 0 upgraded, 0 newly installed, 0 to remove and 707 not upgraded. + NoChange + + *Propellor.Property.Apt Propellor.Property.Concurrent> withConcurrentOutput $ runPropellor (Host "localhost" [] mempty) $ ensureProperty $ (trivial (buildDep ["git-annex"]) `changesFile` "/var/lib/dpkg/status") `concurrently` cmdProperty "echo" ["hi"] + hi + Reading package lists... + Building dependency tree... + Reading state information... + 0 upgraded, 0 newly installed, 0 to remove and 707 not upgraded. + MadeChange +"""]] |
