# HG changeset patch # User Pascal Bellard # Date 1216293836 0 # Node ID 05c1d9e27c1ffa32bbaf8e72febd51b0bb240baa # Parent 34e504bf5887ed259d39d3086c85f001c3b692d8 linux-source: fix removal diff -r 34e504bf5887 -r 05c1d9e27c1f linux-source/receipt --- a/linux-source/receipt Thu Jul 17 09:13:52 2008 +0000 +++ b/linux-source/receipt Thu Jul 17 11:23:56 2008 +0000 @@ -39,9 +39,13 @@ cp slitaz/config .config } +pre_remove() +{ + rm $(basename $(cat /usr/src/linux-$VERSION-slitaz/slitaz/url)) +} + post_remove() { - rm $(basename $(cat /usr/src/linux-$VERSION-slitaz/slitaz/url)) rm -rf /usr/src/linux-$VERSION-slitaz }