Bug 11559

Summary: sb2-build-libtool should cleanup also after failure
Product: Scratchbox 2 Reporter: Marc-Andre Lureau <marcandre.lureau>
Component: genericAssignee: Lauri Leukkunen <lle>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: medium    
Version: 1.99.0.x   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Marc-Andre Lureau 2007-07-12 06:21:04 UTC
Downloaded file could be placed under /tmp/sbox2-$USER/... to avoid duplicated download

instead of:

elmarco@elmarco-laptop:/tmp$ find . -name 'libtool-1.5.22.tar.gz'
./sb2_libtool_build.dvC1202/libtool-1.5.22.tar.gz
./sb2_libtool_build.yJD5492/libtool-1.5.22.tar.gz
./sb2_libtool_build.pB14587/libtool-1.5.22.tar.gz
./sb2_libtool_build.lh22922/libtool-1.5.22.tar.gz
./sb2_libtool_build.bm23306/libtool-1.5.22.tar.gz
./sb2_libtool_build.fX23704/libtool-1.5.22.tar.gz
./sb2_libtool_build.Jt24256/libtool-1.5.22.tar.gz
./sb2_libtool_build.lf26728/libtool-1.5.22.tar.gz
./sb2_libtool_build.an27190/libtool-1.5.22.tar.gz

I would like to see
elmarco@elmarco-laptop:/tmp$ find . -name 'libtool-1.5.22.tar.gz
./sb2-elmarco/cache/libtool-1.5.22.tar.gz
Comment 1 Lauri Leukkunen 2007-07-13 19:40:50 UTC
The real fix would be to add a signal handler to the sb2-build-libtool script
which would cleanup when the script breaks or is interrupted by the user.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.