[Abtlinux-svn] SF.net SVN: abtlinux: [211] src/trunk/AbtPackageManager.rb
Status: Alpha
Brought to you by:
eschabell
From: <esc...@us...> - 2006-11-18 19:16:44
|
Revision: 211 http://svn.sourceforge.net/abtlinux/?rev=211&view=rev Author: eschabell Date: 2006-11-18 11:16:41 -0800 (Sat, 18 Nov 2006) Log Message: ----------- Install package is now up to unpacking and removal of the build sources into the global build directory. Modified Paths: -------------- src/trunk/AbtPackageManager.rb Modified: src/trunk/AbtPackageManager.rb =================================================================== --- src/trunk/AbtPackageManager.rb 2006-11-18 19:15:21 UTC (rev 210) +++ src/trunk/AbtPackageManager.rb 2006-11-18 19:16:41 UTC (rev 211) @@ -51,33 +51,40 @@ ## def installPackage( package ) require package - packager = eval( "#{package.capitalize}.new" ) + sw = eval( "#{package.capitalize}.new" ) queuer = AbtQueueManager.new logger = AbtLogManager.new # get package details. - details = packager.details + details = sw.details + # TODO: check deps + # add to install queue. if ( !queuer.addPackageToQueue( package, "install" ) ) logger.logToJournal( "Failed to add #{package} to install queue." ) return false end + if ( !sw.pre ) + logger.logToJournal( "Failed to process pre-section in the package description of #{package}." ) + return false + end + + if ( !sw.removeBuildSources ) + logger.logToJournal( "Failed to remove the build sources for #{package}." ) + #return false # commented out as this is not a reason to fail. + end + return true # TODO: finish up the following steps per install scenario: # - # check deps - # add missing deps to install queue - # get details - # pre section # configure section # build section # pre install section # install section # post section - # clean source build directory end ## This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |