From fe54ed07fa28df41fc2fba85bb2b166e76d1d89e Mon Sep 17 00:00:00 2001 From: picca Date: Tue, 29 Sep 2015 12:35:27 +0000 Subject: Added a comment --- ...ent_1_7612dc49e14e896be8693be87200c7d3._comment | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/forum/chroot_for_sbuild/comment_1_7612dc49e14e896be8693be87200c7d3._comment (limited to 'doc') diff --git a/doc/forum/chroot_for_sbuild/comment_1_7612dc49e14e896be8693be87200c7d3._comment b/doc/forum/chroot_for_sbuild/comment_1_7612dc49e14e896be8693be87200c7d3._comment new file mode 100644 index 00000000..6604fab4 --- /dev/null +++ b/doc/forum/chroot_for_sbuild/comment_1_7612dc49e14e896be8693be87200c7d3._comment @@ -0,0 +1,25 @@ +[[!comment format=mdwn + username="picca" + subject="comment 1" + date="2015-09-29T12:35:27Z" + content=""" +ok, so I created this property but it does not work + + sbuild :: System -> FilePath -> Property NoInfo + sbuild system tarball = + chroot `onChange` Tar.create chrootdir tarball + where + chroot = Chroot.debootstrapped system Debootstrap.BuilddD chrootdir + chrootdir = \"/tmp/chroot\" + +it fails with this error message + + src/config.hs:167:3: + Couldn't match expected type `Property x0' + with actual type `Chroot.Chroot' + In the first argument of `onChange', namely `chroot' + In the expression: chroot `onChange` Tar.create chrootdir tarball + +What I understand it that onChange expect a Property instead of a Chroot. +So what is the right way to tell propellor look at this chrootdir directory and create a tarball if its containt changed. +"""]] -- cgit v1.2.3