From c619a661fb444ef892d336cd6a9ad953af898b49 Mon Sep 17 00:00:00 2001 From: picca Date: Fri, 2 Oct 2015 08:45:10 +0000 Subject: --- doc/forum/Problem_with_cmdProperty_and_rm.mdwn | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/forum/Problem_with_cmdProperty_and_rm.mdwn (limited to 'doc/forum/Problem_with_cmdProperty_and_rm.mdwn') diff --git a/doc/forum/Problem_with_cmdProperty_and_rm.mdwn b/doc/forum/Problem_with_cmdProperty_and_rm.mdwn new file mode 100644 index 00000000..65635fc9 --- /dev/null +++ b/doc/forum/Problem_with_cmdProperty_and_rm.mdwn @@ -0,0 +1,25 @@ +I am using this property in order to remove a bunch of file + + cmdProperty "rm" ["-f", "-v", "/etc/schroot/chroot.d" (chrootname ++ "-sbuild-*")] + +during the process it is ok + + xxx@xxxx rm -f -v /etc/schroot/chroot.d/jessie-i386-sbuild-* ... done + +but + + ~$ ls /etc/schroot/chroot.d/jessie-i386-sbuild-* + /etc/schroot/chroot.d/jessie-i386-sbuild-0ClOnm /etc/schroot/chroot.d/jessie-i386-sbuild-fAxdL6 /etc/schroot/chroot.d/jessie-i386-sbuild-PG9d8D /etc/schroot/chroot.d/jessie-i386-sbuild-tweTLd + /etc/schroot/chroot.d/jessie-i386-sbuild-1qXV4i /etc/schroot/chroot.d/jessie-i386-sbuild-hLZtEV /etc/schroot/chroot.d/jessie-i386-sbuild-thaExp /etc/schroot/chroot.d/jessie-i386-sbuild-uJHP6m + /etc/schroot/chroot.d/jessie-i386-sbuild-6wSjGH /etc/schroot/chroot.d/jessie-i386-sbuild-KNUVIo /etc/schroot/chroot.d/jessie-i386-sbuild-tUcBcL /etc/schroot/chroot.d/jessie-i386-sbuild-UnfRTK + +So it seems that this property did not worked. + +So I ran propellor with PROPELLOR_DEBUG=1 and the return code of the rm command is a Success + +When I use a scriptProperty it works + + scriptProperty + [ "rm -f -v " ++ "/etc/schroot/chroot.d" (chrootname ++ "-sbuild-*") ] + +So it seems that something is wrong with the cmdProperty -- cgit v1.2.3