summaryrefslogtreecommitdiff
path: root/doc/forum/chroot_for_sbuild/comment_1_7612dc49e14e896be8693be87200c7d3._comment
diff options
context:
space:
mode:
Diffstat (limited to 'doc/forum/chroot_for_sbuild/comment_1_7612dc49e14e896be8693be87200c7d3._comment')
-rw-r--r--doc/forum/chroot_for_sbuild/comment_1_7612dc49e14e896be8693be87200c7d3._comment25
1 files changed, 25 insertions, 0 deletions
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.
+"""]]