abtlinux-svn Mailing List for ABout Time Linux (AbTLinux) (Page 11)
Status: Alpha
Brought to you by:
eschabell
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(12) |
Apr
(4) |
May
(61) |
Jun
(5) |
Jul
(12) |
Aug
(1) |
Sep
|
Oct
(29) |
Nov
(89) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(4) |
Feb
(33) |
Mar
(12) |
Apr
|
May
(2) |
Jun
(13) |
Jul
(76) |
Aug
(7) |
Sep
(21) |
Oct
|
Nov
|
Dec
(33) |
2008 |
Jan
(32) |
Feb
(24) |
Mar
(17) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(10) |
From: <esc...@us...> - 2007-02-28 21:19:06
|
Revision: 311 http://svn.sourceforge.net/abtlinux/?rev=311&view=rev Author: eschabell Date: 2007-02-28 13:17:25 -0800 (Wed, 28 Feb 2007) Log Message: ----------- Refactoring of addPackageToQueue resulted in this test being refactored too! Modified Paths: -------------- src/trunk/TestAbtQueueManager.rb Modified: src/trunk/TestAbtQueueManager.rb =================================================================== --- src/trunk/TestAbtQueueManager.rb 2007-02-28 20:51:05 UTC (rev 310) +++ src/trunk/TestAbtQueueManager.rb 2007-02-28 21:17:25 UTC (rev 311) @@ -40,10 +40,10 @@ end ## - # Test method for 'AbtQueueManager.addPackageToQueue()' + # Test method for 'AbtQueueManager.actionPackageQueue()' ## - def testAddPackageToQueue - assert( @queue.addPackageToQueue( "ipc", "install" ), "testQueueManager()" ) + def testActionPackageQueue + assert( @queue.actionPackageQueue( "ipc", "install", "add" ), "testQueueManager()" ) end end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-28 20:52:57
|
Revision: 310 http://svn.sourceforge.net/abtlinux/?rev=310&view=rev Author: eschabell Date: 2007-02-28 12:51:05 -0800 (Wed, 28 Feb 2007) Log Message: ----------- Now verifing that build and installs are logged. Removed hard coded (was from testing) call to logging methods, based now on package name. Added task TODO for logging package integrity. Commented out debug lines from logging of package install. Implemented build logging method. Down to 29 tests failing! Modified Paths: -------------- src/trunk/AbtLogManager.rb src/trunk/AbtPackageManager.rb Modified: src/trunk/AbtLogManager.rb =================================================================== --- src/trunk/AbtLogManager.rb 2007-02-26 21:18:06 UTC (rev 309) +++ src/trunk/AbtLogManager.rb 2007-02-28 20:51:05 UTC (rev 310) @@ -40,6 +40,7 @@ # otherwise false. ## def logPackageIntegrity( package ) + # TODO: implement logPackageIntegrity. end @@ -96,20 +97,18 @@ # and not part of the excluded range of directories. IO.foreach( tmpInstallLog ) do |line| if ( line.split[1] == 'open' ) - self.logToJournal( "DEBUG: checking: #{line.split[2]} against #{excluded_pattern}." ) + #self.logToJournal( "DEBUG: checking: #{line.split[2]} against #{excluded_pattern}." ) if ( line.split[2] =~ excluded_pattern ) - self.logToJournal( "DEBUG: Found bad logLine!" ) + #self.logToJournal( "DEBUG: Found bad logLine!" ) badLine = true else badLine = false - self.logToJournal( "DEBUG: #{excluded_pattern} not matching #{line.split[2]}") + #self.logToJournal( "DEBUG: #{excluded_pattern} not matching #{line.split[2]}") end if ( !badLine ) - self.logToJournal( "DEBUG: adding line to installFile!") + #self.logToJournal( "DEBUG: adding line to installFile!") installFile.puts line.split[2] - else - self.logToJournal( "DEBUG: found a badLine, not adding #{line.split[2]}") end end end @@ -132,6 +131,18 @@ # otherwise false. ## def logPackageBuild( package ) + require package + sw = eval( "#{package.capitalize}.new" ) + details = sw.details + buildFile = "#{$PACKAGE_INSTALLED}/#{details['Source location']}/#{details['Source location']}.build" + #self.logToJournal( "DEBUG: buildFile is - #{buildFile}" ) + + # make sure the build file exists. + if ( !File.exist?( buildFile ) ) + return false + end + + return true end ## Modified: src/trunk/AbtPackageManager.rb =================================================================== --- src/trunk/AbtPackageManager.rb 2007-02-26 21:18:06 UTC (rev 309) +++ src/trunk/AbtPackageManager.rb 2007-02-28 20:51:05 UTC (rev 310) @@ -91,6 +91,10 @@ logger.logToJournal( "Failed to process build section in the package description of #{package}." ) return false else + if ( !logger.logPackageBuild( sw.name.downcase ) ) + logger.logToJournal( "Failed to create a package build log." ) + return false + end logger.logToJournal( "DEBUG: finished #{package} build section." ) end @@ -109,7 +113,7 @@ logger.logToJournal( "Failed to process install section in the package description of #{package}." ) return false else - logger.logPackageInstall( "ipc" ) + logger.logPackageInstall( sw.name.downcase ) logger.logToJournal( "DEBUG: finished #{package} install section." ) end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-26 21:18:06
|
Revision: 309 http://svn.sourceforge.net/abtlinux/?rev=309&view=rev Author: eschabell Date: 2007-02-26 13:18:06 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Regenerated api docs. Modified Paths: -------------- src/trunk/doc/classes/AbtLogManager.html src/trunk/doc/created.rid src/trunk/doc/files/AbtLogManager_rb.html Modified: src/trunk/doc/classes/AbtLogManager.html =================================================================== --- src/trunk/doc/classes/AbtLogManager.html 2007-02-26 21:17:32 UTC (rev 308) +++ src/trunk/doc/classes/AbtLogManager.html 2007-02-26 21:18:06 UTC (rev 309) @@ -186,9 +186,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000064_source')" id="l_M000064_source">show source</a> ]</p> <div id="M000064_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 148</span> -148: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cachePackage</span>( <span class="ruby-identifier">package</span> ) -149: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 146</span> +146: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cachePackage</span>( <span class="ruby-identifier">package</span> ) +147: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -214,9 +214,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show source</a> ]</p> <div id="M000063_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 136</span> -136: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageBuild</span>( <span class="ruby-identifier">package</span> ) -137: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 134</span> +134: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageBuild</span>( <span class="ruby-identifier">package</span> ) +135: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -263,35 +263,33 @@ 94: 95: <span class="ruby-comment cmt"># include only the file names from open calls</span> 96: <span class="ruby-comment cmt"># and not part of the excluded range of directories.</span> - 97: <span class="ruby-comment cmt">#TODO: FIX THIS, NEEDS TO MATCH EACH LINE.SPLIT[2] TO THE </span> - 98: <span class="ruby-comment cmt"># GIVEN LINE, MATCH MEANS WE DO NOT LOG IT!</span> - 99: <span class="ruby-constant">IO</span>.<span class="ruby-identifier">foreach</span>( <span class="ruby-identifier">tmpInstallLog</span> ) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> -100: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'open'</span> ) -101: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: checking: #{line.split[2]} against #{excluded_pattern}."</span> ) -102: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">=~</span> <span class="ruby-identifier">excluded_pattern</span> ) -103: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-value str">"DEBUG: Found bad logLine!"</span> ) -104: <span class="ruby-identifier">badLine</span> = <span class="ruby-keyword kw">true</span> -105: <span class="ruby-keyword kw">else</span> -106: <span class="ruby-identifier">badLine</span> = <span class="ruby-keyword kw">false</span> -107: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: #{excluded_pattern} not matching #{line.split[2]}"</span>) -108: <span class="ruby-keyword kw">end</span> -109: -110: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">badLine</span> ) -111: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-value str">"DEBUG: adding line to installFile!"</span>) -112: <span class="ruby-identifier">installFile</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>[<span class="ruby-value">2</span>] -113: <span class="ruby-keyword kw">else</span> -114: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: found a badLine, not adding #{line.split[2]}"</span>) -115: <span class="ruby-keyword kw">end</span> -116: <span class="ruby-keyword kw">end</span> -117: <span class="ruby-keyword kw">end</span> -118: -119: <span class="ruby-identifier">installFile</span>.<span class="ruby-identifier">close</span> -120: <span class="ruby-keyword kw">end</span> -121: -122: <span class="ruby-comment cmt"># cleanup the tmp files.</span> -123: <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>( <span class="ruby-identifier">tmpInstallLog</span> ) -124: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>; -125: <span class="ruby-keyword kw">end</span> + 97: <span class="ruby-constant">IO</span>.<span class="ruby-identifier">foreach</span>( <span class="ruby-identifier">tmpInstallLog</span> ) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> + 98: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'open'</span> ) + 99: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: checking: #{line.split[2]} against #{excluded_pattern}."</span> ) +100: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">=~</span> <span class="ruby-identifier">excluded_pattern</span> ) +101: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-value str">"DEBUG: Found bad logLine!"</span> ) +102: <span class="ruby-identifier">badLine</span> = <span class="ruby-keyword kw">true</span> +103: <span class="ruby-keyword kw">else</span> +104: <span class="ruby-identifier">badLine</span> = <span class="ruby-keyword kw">false</span> +105: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: #{excluded_pattern} not matching #{line.split[2]}"</span>) +106: <span class="ruby-keyword kw">end</span> +107: +108: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">badLine</span> ) +109: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-value str">"DEBUG: adding line to installFile!"</span>) +110: <span class="ruby-identifier">installFile</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>[<span class="ruby-value">2</span>] +111: <span class="ruby-keyword kw">else</span> +112: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: found a badLine, not adding #{line.split[2]}"</span>) +113: <span class="ruby-keyword kw">end</span> +114: <span class="ruby-keyword kw">end</span> +115: <span class="ruby-keyword kw">end</span> +116: +117: <span class="ruby-identifier">installFile</span>.<span class="ruby-identifier">close</span> +118: <span class="ruby-keyword kw">end</span> +119: +120: <span class="ruby-comment cmt"># cleanup the tmp files.</span> +121: <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>( <span class="ruby-identifier">tmpInstallLog</span> ) +122: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>; +123: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -316,16 +314,16 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show source</a> ]</p> <div id="M000065_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 159</span> -159: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logToJournal</span>( <span class="ruby-identifier">message</span> ) -160: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">log</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$JOURNAL</span>, <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">WRONLY</span><span class="ruby-operator">|</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">APPEND</span><span class="ruby-operator">|</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">CREAT</span>, <span class="ruby-value">0644</span> ) ) -161: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{$TIMESTAMP} : #{message}"</span> -162: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">close</span> -163: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -164: <span class="ruby-keyword kw">end</span> -165: -166: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -167: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 157</span> +157: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logToJournal</span>( <span class="ruby-identifier">message</span> ) +158: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">log</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$JOURNAL</span>, <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">WRONLY</span><span class="ruby-operator">|</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">APPEND</span><span class="ruby-operator">|</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">CREAT</span>, <span class="ruby-value">0644</span> ) ) +159: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{$TIMESTAMP} : #{message}"</span> +160: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">close</span> +161: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +162: <span class="ruby-keyword kw">end</span> +163: +164: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +165: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/created.rid =================================================================== --- src/trunk/doc/created.rid 2007-02-26 21:17:32 UTC (rev 308) +++ src/trunk/doc/created.rid 2007-02-26 21:18:06 UTC (rev 309) @@ -1 +1 @@ -Mon Feb 26 22:07:05 +0100 2007 +Mon Feb 26 22:15:33 +0100 2007 Modified: src/trunk/doc/files/AbtLogManager_rb.html =================================================================== --- src/trunk/doc/files/AbtLogManager_rb.html 2007-02-26 21:17:32 UTC (rev 308) +++ src/trunk/doc/files/AbtLogManager_rb.html 2007-02-26 21:18:06 UTC (rev 309) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Mon Feb 26 22:06:38 +0100 2007</td> + <td>Mon Feb 26 22:15:30 +0100 2007</td> </tr> </table> </td></tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-26 21:17:31
|
Revision: 308 http://svn.sourceforge.net/abtlinux/?rev=308&view=rev Author: eschabell Date: 2007-02-26 13:17:32 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Cleaned out the TODO as this has been done! Modified Paths: -------------- src/trunk/AbtLogManager.rb Modified: src/trunk/AbtLogManager.rb =================================================================== --- src/trunk/AbtLogManager.rb 2007-02-26 21:09:47 UTC (rev 307) +++ src/trunk/AbtLogManager.rb 2007-02-26 21:17:32 UTC (rev 308) @@ -94,8 +94,6 @@ # include only the file names from open calls # and not part of the excluded range of directories. - #TODO: FIX THIS, NEEDS TO MATCH EACH LINE.SPLIT[2] TO THE - # GIVEN LINE, MATCH MEANS WE DO NOT LOG IT! IO.foreach( tmpInstallLog ) do |line| if ( line.split[1] == 'open' ) self.logToJournal( "DEBUG: checking: #{line.split[2]} against #{excluded_pattern}." ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-26 21:09:49
|
Revision: 307 http://svn.sourceforge.net/abtlinux/?rev=307&view=rev Author: eschabell Date: 2007-02-26 13:09:47 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Regenerated api docs. Modified Paths: -------------- src/trunk/doc/classes/AbtLogManager.html src/trunk/doc/classes/AbtPackage.html src/trunk/doc/classes/AbtPackageManager.html src/trunk/doc/classes/AbtReportManager.html src/trunk/doc/classes/TestAbtLogManager.html src/trunk/doc/classes/TestAbtPackage.html src/trunk/doc/created.rid src/trunk/doc/files/AbtLogManager_rb.html src/trunk/doc/files/AbtPackageManager_rb.html src/trunk/doc/files/AbtPackage_rb.html src/trunk/doc/files/TestAbtLogManager_rb.html src/trunk/doc/files/TestAbtPackage_rb.html src/trunk/doc/fr_method_index.html Modified: src/trunk/doc/classes/AbtLogManager.html =================================================================== --- src/trunk/doc/classes/AbtLogManager.html 2007-02-26 21:07:21 UTC (rev 306) +++ src/trunk/doc/classes/AbtLogManager.html 2007-02-26 21:09:47 UTC (rev 307) @@ -151,9 +151,9 @@ <pre> <span class="ruby-comment cmt"># File AbtLogManager.rb, line 57</span> 57: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> -58: [<span class="ruby-identifier">$ABT_LOGS</span>, <span class="ruby-identifier">$ABT_CACHES</span>, <span class="ruby-identifier">$BUILD_LOCATION</span>, <span class="ruby-identifier">$PACKAGE_INSTALLED</span>, -59: <span class="ruby-identifier">$SOURCES_REPOSITORY</span>].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">dir</span><span class="ruby-operator">|</span> -60: +58: [<span class="ruby-identifier">$ABT_LOGS</span>, <span class="ruby-identifier">$ABT_CACHES</span>, <span class="ruby-identifier">$ABT_STATE</span>, <span class="ruby-identifier">$BUILD_LOCATION</span>, <span class="ruby-identifier">$PACKAGE_INSTALLED</span>, +59: <span class="ruby-identifier">$PACKAGE_CACHED</span>, <span class="ruby-identifier">$ABT_TMP</span>, <span class="ruby-identifier">$SOURCES_REPOSITORY</span>].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">dir</span><span class="ruby-operator">|</span> +60: 61: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-identifier">dir</span> ) ) 62: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>( <span class="ruby-identifier">dir</span> ) 63: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Created directory: #{dir}."</span> ) @@ -186,9 +186,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000064_source')" id="l_M000064_source">show source</a> ]</p> <div id="M000064_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 101</span> -101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cachePackage</span>( <span class="ruby-identifier">package</span> ) -102: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 148</span> +148: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cachePackage</span>( <span class="ruby-identifier">package</span> ) +149: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -214,9 +214,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show source</a> ]</p> <div id="M000063_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 89</span> -89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageBuild</span>( <span class="ruby-identifier">package</span> ) -90: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 136</span> +136: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageBuild</span>( <span class="ruby-identifier">package</span> ) +137: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -242,9 +242,56 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show source</a> ]</p> <div id="M000062_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 77</span> -77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageInstall</span>( <span class="ruby-identifier">package</span> ) -78: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 77</span> + 77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageInstall</span>( <span class="ruby-identifier">package</span> ) + 78: <span class="ruby-comment cmt"># some dirs we will not add to an install log.</span> + 79: <span class="ruby-identifier">excluded_pattern</span> = <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">"^(/dev|/proc|/tmp|/var/tmp|/usr/src|/sys)+"</span> ) + 80: + 81: <span class="ruby-identifier">require</span> <span class="ruby-identifier">package</span> + 82: <span class="ruby-identifier">sw</span> = <span class="ruby-identifier">eval</span>( <span class="ruby-node">"#{package.capitalize}.new"</span> ) + 83: <span class="ruby-identifier">details</span> = <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">details</span> + 84: <span class="ruby-identifier">badLine</span> = <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># used to mark excluded lines from installwatch log.</span> + 85: + 86: <span class="ruby-comment cmt"># our log locations.</span> + 87: <span class="ruby-identifier">installLog</span> = <span class="ruby-node">"#{$PACKAGE_INSTALLED}/#{details['Source location']}/#{details['Source location']}.install"</span> + 88: <span class="ruby-identifier">tmpInstallLog</span> = <span class="ruby-node">"#{$ABT_TMP}/#{details['Source location']}.watch"</span> + 89: + 90: <span class="ruby-comment cmt"># get the installed files from the tmp file</span> + 91: <span class="ruby-comment cmt"># into our install log.</span> + 92: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">tmpInstallLog</span> ) ) + 93: <span class="ruby-identifier">installFile</span> = <span class="ruby-identifier">open</span>( <span class="ruby-identifier">installLog</span>, <span class="ruby-value str">'w'</span>) + 94: + 95: <span class="ruby-comment cmt"># include only the file names from open calls</span> + 96: <span class="ruby-comment cmt"># and not part of the excluded range of directories.</span> + 97: <span class="ruby-comment cmt">#TODO: FIX THIS, NEEDS TO MATCH EACH LINE.SPLIT[2] TO THE </span> + 98: <span class="ruby-comment cmt"># GIVEN LINE, MATCH MEANS WE DO NOT LOG IT!</span> + 99: <span class="ruby-constant">IO</span>.<span class="ruby-identifier">foreach</span>( <span class="ruby-identifier">tmpInstallLog</span> ) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> +100: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'open'</span> ) +101: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: checking: #{line.split[2]} against #{excluded_pattern}."</span> ) +102: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">=~</span> <span class="ruby-identifier">excluded_pattern</span> ) +103: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-value str">"DEBUG: Found bad logLine!"</span> ) +104: <span class="ruby-identifier">badLine</span> = <span class="ruby-keyword kw">true</span> +105: <span class="ruby-keyword kw">else</span> +106: <span class="ruby-identifier">badLine</span> = <span class="ruby-keyword kw">false</span> +107: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: #{excluded_pattern} not matching #{line.split[2]}"</span>) +108: <span class="ruby-keyword kw">end</span> +109: +110: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">badLine</span> ) +111: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-value str">"DEBUG: adding line to installFile!"</span>) +112: <span class="ruby-identifier">installFile</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>[<span class="ruby-value">2</span>] +113: <span class="ruby-keyword kw">else</span> +114: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: found a badLine, not adding #{line.split[2]}"</span>) +115: <span class="ruby-keyword kw">end</span> +116: <span class="ruby-keyword kw">end</span> +117: <span class="ruby-keyword kw">end</span> +118: +119: <span class="ruby-identifier">installFile</span>.<span class="ruby-identifier">close</span> +120: <span class="ruby-keyword kw">end</span> +121: +122: <span class="ruby-comment cmt"># cleanup the tmp files.</span> +123: <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>( <span class="ruby-identifier">tmpInstallLog</span> ) +124: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>; +125: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -269,16 +316,16 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show source</a> ]</p> <div id="M000065_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 112</span> -112: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logToJournal</span>( <span class="ruby-identifier">message</span> ) -113: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">log</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$JOURNAL</span>, <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">WRONLY</span><span class="ruby-operator">|</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">APPEND</span><span class="ruby-operator">|</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">CREAT</span>, <span class="ruby-value">0644</span> ) ) -114: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{$TIMESTAMP} : #{message}"</span> -115: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">close</span> -116: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -117: <span class="ruby-keyword kw">end</span> -118: -119: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -120: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 159</span> +159: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logToJournal</span>( <span class="ruby-identifier">message</span> ) +160: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">log</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$JOURNAL</span>, <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">WRONLY</span><span class="ruby-operator">|</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">APPEND</span><span class="ruby-operator">|</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">CREAT</span>, <span class="ruby-value">0644</span> ) ) +161: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">"#{$TIMESTAMP} : #{message}"</span> +162: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">close</span> +163: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +164: <span class="ruby-keyword kw">end</span> +165: +166: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +167: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/AbtPackage.html =================================================================== --- src/trunk/doc/classes/AbtPackage.html 2007-02-26 21:07:21 UTC (rev 306) +++ src/trunk/doc/classes/AbtPackage.html 2007-02-26 21:09:47 UTC (rev 307) @@ -362,20 +362,19 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000028_source')" id="l_M000028_source">show source</a> ]</p> <div id="M000028_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 248</span> -248: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build</span> -249: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-node">"#{$BUILD_LOCATION}/#{@srcDir}"</span> ) -250: -251: <span class="ruby-comment cmt"># TODO: not some better way to deal with this than system and tee?</span> -252: <span class="ruby-keyword kw">if</span>( <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>( <span class="ruby-node">"make | tee #{$PACKAGE_INSTALLED}/#{@srcDir}.build"</span> ) ) -253: <span class="ruby-comment cmt"># TODO: put this in failure file.</span> -254: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.build] - unable to build."</span> -255: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -256: <span class="ruby-keyword kw">end</span> -257: -258: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.build] - build went fine!"</span> -259: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -260: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 252</span> +252: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build</span> +253: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-node">"#{$BUILD_LOCATION}/#{@srcDir}"</span> ) +254: +255: <span class="ruby-comment cmt"># TODO: not some better way to deal with this than system and tee?</span> +256: <span class="ruby-keyword kw">if</span>( <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>( <span class="ruby-node">"make | tee #{$PACKAGE_INSTALLED}/#{@srcDir}/#{@srcDir}.build"</span> ) ) +257: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.build] - build section failed."</span> +258: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +259: <span class="ruby-keyword kw">end</span> +260: +261: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.build] - build section completed!"</span> +262: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +263: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -403,20 +402,19 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000027_source')" id="l_M000027_source">show source</a> ]</p> <div id="M000027_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 229</span> -229: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span> -230: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-node">"#{$BUILD_LOCATION}/#{@srcDir}"</span> ) -231: -232: <span class="ruby-comment cmt"># TODO: not some better way to deal with this than system and tee?</span> -233: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>( <span class="ruby-node">"./configure --prefix=#{$DEFAULT_PREFIX} | tee #{$PACKAGE_INSTALLED}/#{@srcDir}.configure"</span> ) ) -234: <span class="ruby-comment cmt"># TODO: put this in failure file.</span> -235: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.configure] - unable to configure."</span> -236: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -237: <span class="ruby-keyword kw">end</span> -238: -239: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.configure] - configure went fine!"</span> -240: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -241: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 234</span> +234: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span> +235: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-node">"#{$BUILD_LOCATION}/#{@srcDir}"</span> ) +236: +237: <span class="ruby-comment cmt"># TODO: not some better way to deal with this than system and tee?</span> +238: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>( <span class="ruby-node">"./configure --prefix=#{$DEFAULT_PREFIX} | tee #{$PACKAGE_INSTALLED}/#{@srcDir}/#{@srcDir}.configure"</span> ) ) +239: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.configure] - configure section failed."</span> +240: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +241: <span class="ruby-keyword kw">end</span> +242: +243: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.configure] - configure section completed!"</span> +244: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +245: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -481,9 +479,21 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show source</a> ]</p> <div id="M000030_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 279</span> -279: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install</span> -280: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 282</span> +282: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install</span> +283: <span class="ruby-comment cmt"># TODO: implement.</span> +284: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-node">"#{$BUILD_LOCATION}/#{@srcDir}"</span> ) +285: +286: <span class="ruby-comment cmt"># TODO: can this be done without installwatch?</span> +287: <span class="ruby-keyword kw">if</span>( <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>( <span class="ruby-node">"installwatch --transl=no --backup=no --exclude=/dev,/proc,/tmp,/var/tmp,/usr/src,/sys --logfile=#{$ABT_TMP}/#{@srcDir}.watch make install"</span> ) ) +288: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.install] - install section failed."</span> +289: <span class="ruby-comment cmt"># TODO: rollback any installed files (use install log).</span> +290: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +291: <span class="ruby-keyword kw">end</span> +292: +293: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.install] - install section completed!"</span> +294: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +295: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -506,11 +516,11 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show source</a> ]</p> <div id="M000031_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 287</span> -287: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post</span> -288: <span class="ruby-comment cmt"># TODO: implement me!</span> -289: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -290: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 302</span> +302: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post</span> +303: <span class="ruby-comment cmt"># TODO: implement me!</span> +304: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +305: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -536,22 +546,27 @@ <span class="ruby-comment cmt"># File AbtPackage.rb, line 201</span> 201: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pre</span> 202: <span class="ruby-identifier">downloader</span> = <span class="ruby-constant">AbtDownloadManager</span>.<span class="ruby-identifier">new</span> -203: +203: 204: <span class="ruby-comment cmt"># download sources.</span> 205: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">downloader</span>.<span class="ruby-identifier">retrievePackageSource</span>( <span class="ruby-ivar">@name</span>.<span class="ruby-identifier">downcase</span>, <span class="ruby-identifier">$SOURCES_REPOSITORY</span> ) ) 206: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> 207: <span class="ruby-keyword kw">end</span> -208: +208: 209: <span class="ruby-comment cmt"># unpack sources.</span> 210: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unpackSources</span> ) 211: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> 212: <span class="ruby-keyword kw">end</span> 213: -214: <span class="ruby-comment cmt"># TODO: retrieve patches?</span> -215: <span class="ruby-comment cmt"># TODO: apply patches?</span> -216: -217: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -218: <span class="ruby-keyword kw">end</span> +214: <span class="ruby-comment cmt"># ensure we have an installed directory to use.</span> +215: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-node">"#{$PACKAGE_INSTALLED}/#{@srcDir}"</span> ) ) +216: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>( <span class="ruby-node">"#{$PACKAGE_INSTALLED}/#{@srcDir}"</span> ) +217: <span class="ruby-keyword kw">end</span> +218: +219: <span class="ruby-comment cmt"># TODO: retrieve patches?</span> +220: <span class="ruby-comment cmt"># TODO: apply patches?</span> +221: +222: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +223: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -575,12 +590,12 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000029_source')" id="l_M000029_source">show source</a> ]</p> <div id="M000029_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 268</span> -268: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">preinstall</span> -269: <span class="ruby-comment cmt"># TODO: create_group?</span> -270: <span class="ruby-comment cmt"># TODO: create_user?</span> -271: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>; -272: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 271</span> +271: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">preinstall</span> +272: <span class="ruby-comment cmt"># TODO: create_group?</span> +273: <span class="ruby-comment cmt"># TODO: create_user?</span> +274: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>; +275: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -603,22 +618,22 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show source</a> ]</p> <div id="M000032_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 297</span> -297: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">removeBuild</span> -298: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">$REMOVE_BUILD_SOURCES</span> ) -299: <span class="ruby-identifier">buildSourcesLocation</span> = <span class="ruby-node">"#{$BUILD_LOCATION}/#{srcDir}"</span> -300: -301: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-identifier">buildSourcesLocation</span> ) ) -302: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -303: <span class="ruby-keyword kw">end</span> -304: -305: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span> <span class="ruby-identifier">buildSourcesLocation</span>, <span class="ruby-identifier">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> ) -306: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -307: <span class="ruby-keyword kw">end</span> -308: <span class="ruby-keyword kw">end</span> -309: -310: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -311: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 312</span> +312: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">removeBuild</span> +313: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">$REMOVE_BUILD_SOURCES</span> ) +314: <span class="ruby-identifier">buildSourcesLocation</span> = <span class="ruby-node">"#{$BUILD_LOCATION}/#{srcDir}"</span> +315: +316: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-identifier">buildSourcesLocation</span> ) ) +317: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +318: <span class="ruby-keyword kw">end</span> +319: +320: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span> <span class="ruby-identifier">buildSourcesLocation</span>, <span class="ruby-identifier">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> ) +321: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +322: <span class="ruby-keyword kw">end</span> +323: <span class="ruby-keyword kw">end</span> +324: +325: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +326: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -647,51 +662,51 @@ 40: <span class="ruby-identifier">srcFile</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-ivar">@srcUrl</span> ) 41: <span class="ruby-identifier">sourcesToUnpack</span> = <span class="ruby-node">"#{$SOURCES_REPOSITORY}/#{srcFile}"</span> 42: <span class="ruby-identifier">unpackTool</span> = <span class="ruby-value str">""</span> -43: +43: 44: <span class="ruby-comment cmt"># check for existing file in source repo.</span> 45: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">sourcesToUnpack</span> ) ) 46: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> 47: <span class="ruby-keyword kw">end</span> -48: +48: 49: <span class="ruby-comment cmt"># check if possible existing sources in build directory.</span> 50: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-node">"#{$BUILD_LOCATION}/#{@srcDir}"</span> ) ) 51: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> 52: <span class="ruby-keyword kw">end</span> -53: +53: 54: <span class="ruby-comment cmt"># determine which supported compression used [gz, tar, tgz, bz2, zip].</span> 55: <span class="ruby-identifier">compressionType</span> = <span class="ruby-identifier">srcFile</span>.<span class="ruby-identifier">split</span>( <span class="ruby-value str">'.'</span> ) -56: +56: 57: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">compressionType</span>.<span class="ruby-identifier">last</span> -58: +58: 59: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"gz"</span> 60: <span class="ruby-identifier">unpackTool</span> = <span class="ruby-value str">"tar xzvf"</span> -61: +61: 62: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"tar"</span> 63: <span class="ruby-identifier">unpackTool</span> = <span class="ruby-value str">"tar xvf"</span> -64: +64: 65: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"bz2"</span> 66: <span class="ruby-identifier">unpackTool</span> = <span class="ruby-value str">"tar xjvf"</span> -67: +67: 68: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"tgz"</span> 69: <span class="ruby-identifier">unpackTool</span> = <span class="ruby-value str">"tar xzvf"</span> -70: +70: 71: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"zip"</span> 72: <span class="ruby-identifier">unpackTool</span> = <span class="ruby-value str">"unizp"</span> -73: +73: 74: <span class="ruby-keyword kw">else</span> 75: <span class="ruby-comment cmt"># unsupported format.</span> 76: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> 77: <span class="ruby-keyword kw">end</span> -78: +78: 79: <span class="ruby-comment cmt"># DEBUG:</span> 80: <span class="ruby-comment cmt">#logger = AbtLogManager.new</span> 81: <span class="ruby-comment cmt">#logger.logToJournal( "DEBUG: unpack tool will be '#{unpackTool}'." )</span> -82: +82: 83: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-identifier">$BUILD_LOCATION</span> ) 84: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>( <span class="ruby-node">"#{unpackTool} #{sourcesToUnpack}"</span> ) ) 85: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> 86: <span class="ruby-keyword kw">end</span> -87: +87: 88: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> 89: <span class="ruby-keyword kw">end</span> </pre> Modified: src/trunk/doc/classes/AbtPackageManager.html =================================================================== --- src/trunk/doc/classes/AbtPackageManager.html 2007-02-26 21:07:21 UTC (rev 306) +++ src/trunk/doc/classes/AbtPackageManager.html 2007-02-26 21:09:47 UTC (rev 307) @@ -182,9 +182,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000044_source')" id="l_M000044_source">show source</a> ]</p> <div id="M000044_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 146</span> -146: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downgradePackage</span>( <span class="ruby-identifier">package</span>, <span class="ruby-identifier">version</span> ) -147: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 163</span> +163: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downgradePackage</span>( <span class="ruby-identifier">package</span>, <span class="ruby-identifier">version</span> ) +164: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -210,9 +210,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000045_source')" id="l_M000045_source">show source</a> ]</p> <div id="M000045_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 158</span> -158: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">freezePackage</span>( <span class="ruby-identifier">package</span> ) -159: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 175</span> +175: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">freezePackage</span>( <span class="ruby-identifier">package</span> ) +176: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -243,62 +243,79 @@ 54: <span class="ruby-identifier">sw</span> = <span class="ruby-identifier">eval</span>( <span class="ruby-node">"#{package.capitalize}.new"</span> ) 55: <span class="ruby-identifier">queuer</span> = <span class="ruby-constant">AbtQueueManager</span>.<span class="ruby-identifier">new</span> 56: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">AbtLogManager</span>.<span class="ruby-identifier">new</span> - 57: - 58: <span class="ruby-comment cmt"># TODO: initialize pkg install directory ($PACKAGE_INSTALLED/@srcDir),</span> - 59: <span class="ruby-comment cmt"># should this fail we have to clean this dir up, move to failure</span> - 60: <span class="ruby-comment cmt"># location?</span> - 61: <span class="ruby-comment cmt"># On success, need to cache contents in cache dir.</span> - 62: - 63: <span class="ruby-comment cmt"># get package details.</span> - 64: <span class="ruby-identifier">details</span> = <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">details</span> - 65: - 66: <span class="ruby-comment cmt"># TODO: check deps</span> - 67: - 68: <span class="ruby-comment cmt"># add to install queue.</span> - 69: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">queuer</span>.<span class="ruby-identifier">addPackageToQueue</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">"install"</span> ) ) - 70: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Failed to add #{package} to install queue."</span> ) - 71: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> - 72: <span class="ruby-keyword kw">end</span> - 73: - 74: <span class="ruby-comment cmt"># pre section.</span> - 75: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">sw</span>.<span class="ruby-identifier">pre</span> ) - 76: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Failed to process pre-section in the package description of #{package}."</span> ) - 77: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> - 78: <span class="ruby-keyword kw">else</span> - 79: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: finished #{package} pre section."</span> ) - 80: <span class="ruby-keyword kw">end</span> - 81: - 82: <span class="ruby-comment cmt"># configure section.</span> - 83: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">sw</span>.<span class="ruby-identifier">configure</span> ) - 84: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Failed to process configure section in the package description of #{package}."</span> ) - 85: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> - 86: <span class="ruby-keyword kw">else</span> - 87: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: finished #{package} configure section."</span> ) - 88: <span class="ruby-keyword kw">end</span> - 89: - 90: <span class="ruby-comment cmt"># build section</span> - 91: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">sw</span>.<span class="ruby-identifier">build</span> ) - 92: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Failed to process build section in the package description of #{package}."</span> ) - 93: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> - 94: <span class="ruby-keyword kw">else</span> - 95: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: finished #{package} build section."</span> ) - 96: <span class="ruby-keyword kw">end</span> - 97: - 98: - 99: <span class="ruby-comment cmt"># TODO: finish up the following steps per install scenario:</span> -100: <span class="ruby-comment cmt">#</span> -101: <span class="ruby-comment cmt"># pre install section</span> -102: <span class="ruby-comment cmt"># install section</span> -103: <span class="ruby-comment cmt"># post section</span> -104: <span class="ruby-comment cmt"># remove build sources.</span> -105: <span class="ruby-comment cmt">#</span> -106: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">sw</span>.<span class="ruby-identifier">removeBuild</span> ) -107: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Failed to remove the build sources for #{package}."</span> ) -108: <span class="ruby-comment cmt">#return false # commented out as this is not a reason to fail.</span> -109: <span class="ruby-keyword kw">end</span> -110: -111: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -112: <span class="ruby-keyword kw">end</span> + 57: + 58: <span class="ruby-comment cmt"># get package details.</span> + 59: <span class="ruby-identifier">details</span> = <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">details</span> + 60: + 61: <span class="ruby-comment cmt"># TODO: check deps</span> + 62: + 63: <span class="ruby-comment cmt"># add to install queue.</span> + 64: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\n*** Adding #{package} to the INSTALL QUEUE. ***"</span> + 65: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">queuer</span>.<span class="ruby-identifier">addPackageToQueue</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">"install"</span> ) ) + 66: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Failed to add #{package} to install queue."</span> ) + 67: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> + 68: <span class="ruby-keyword kw">end</span> + 69: + 70: <span class="ruby-comment cmt"># pre section.</span> + 71: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\n*** Processing the PRE section for #{package}. ***"</span> + 72: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">sw</span>.<span class="ruby-identifier">pre</span> ) + 73: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Failed to process pre-section in the package description of #{package}."</span> ) + 74: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> + 75: <span class="ruby-keyword kw">else</span> + 76: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: finished #{package} pre section."</span> ) + 77: <span class="ruby-keyword kw">end</span> + 78: + 79: <span class="ruby-comment cmt"># configure section.</span> + 80: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\n*** Processing the CONFIGURE section for #{package}. ***"</span> + 81: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">sw</span>.<span class="ruby-identifier">configure</span> ) + 82: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Failed to process configure section in the package description of #{package}."</span> ) + 83: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> + 84: <span class="ruby-keyword kw">else</span> + 85: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: finished #{package} configure section."</span> ) + 86: <span class="ruby-keyword kw">end</span> + 87: + 88: <span class="ruby-comment cmt"># build section.</span> + 89: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\n*** Processing the BUILD section for #{package}. ***"</span> + 90: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">sw</span>.<span class="ruby-identifier">build</span> ) + 91: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Failed to process build section in the package description of #{package}."</span> ) + 92: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> + 93: <span class="ruby-keyword kw">else</span> + 94: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: finished #{package} build section."</span> ) + 95: <span class="ruby-keyword kw">end</span> + 96: + 97: <span class="ruby-comment cmt"># preinstall section.</span> + 98: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\n*** Processing the PREINSTALL section for #{package}. ***"</span> + 99: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">sw</span>.<span class="ruby-identifier">preinstall</span> ) +100: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Failed to process preinstall section in the package description of #{package}."</span> ) +101: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +102: <span class="ruby-keyword kw">else</span> +103: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: finished #{package} preinstall section."</span> ) +104: <span class="ruby-keyword kw">end</span> +105: +106: <span class="ruby-comment cmt"># install section.</span> +107: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\n*** Processing the INSTALL section for #{package}. ***"</span> +108: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">sw</span>.<span class="ruby-identifier">install</span> ) +109: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Failed to process install section in the package description of #{package}."</span> ) +110: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +111: <span class="ruby-keyword kw">else</span> +112: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logPackageInstall</span>( <span class="ruby-value str">"ipc"</span> ) +113: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"DEBUG: finished #{package} install section."</span> ) +114: <span class="ruby-keyword kw">end</span> +115: +116: +117: <span class="ruby-comment cmt"># TODO: finish up the following steps per install scenario:</span> +118: <span class="ruby-comment cmt">#</span> +119: <span class="ruby-comment cmt"># post section</span> +120: <span class="ruby-comment cmt"># remove build sources.</span> +121: <span class="ruby-comment cmt">#</span> +122: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\n*** Cleaning up the sources for #{package}. ***"</span> +123: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">sw</span>.<span class="ruby-identifier">removeBuild</span> ) +124: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-node">"Failed to remove the build sources for #{package}."</span> ) +125: <span class="ruby-comment cmt">#return false # commented out as this is not a reason to fail.</span> +126: <span class="ruby-keyword kw">end</span> +127: +128: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +129: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -323,9 +340,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000042_source')" id="l_M000042_source">show source</a> ]</p> <div id="M000042_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 122</span> -122: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reinstallPackage</span>( <span class="ruby-identifier">package</span> ) -123: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 139</span> +139: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reinstallPackage</span>( <span class="ruby-identifier">package</span> ) +140: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -350,9 +367,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000043_source')" id="l_M000043_source">show source</a> ]</p> <div id="M000043_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 133</span> -133: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">removePackage</span>( <span class="ruby-identifier">package</span> ) -134: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 150</span> +150: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">removePackage</span>( <span class="ruby-identifier">package</span> ) +151: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -376,20 +393,20 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000046_source')" id="l_M000046_source">show source</a> ]</p> <div id="M000046_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 168</span> -168: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rootLogin</span>( <span class="ruby-identifier">arguments</span> ) -169: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">Process</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> ) -170: <span class="ruby-identifier">args</span> = <span class="ruby-value str">""</span> -171: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nEnter root password:"</span> -172: -173: <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword kw">in</span> <span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">length</span> -174: <span class="ruby-identifier">args</span> = <span class="ruby-identifier">args</span> <span class="ruby-operator">+</span> <span class="ruby-value str">" "</span> <span class="ruby-operator">+</span> <span class="ruby-constant">ARGV</span>[<span class="ruby-identifier">i</span>] -175: <span class="ruby-keyword kw">end</span> -176: -177: <span class="ruby-identifier">system</span>( <span class="ruby-value str">'su -c "./abt '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">args</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'" root'</span> ) -178: <span class="ruby-identifier">exit</span> -179: <span class="ruby-keyword kw">end</span> -180: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 185</span> +185: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rootLogin</span>( <span class="ruby-identifier">arguments</span> ) +186: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">Process</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> ) +187: <span class="ruby-identifier">args</span> = <span class="ruby-value str">""</span> +188: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nEnter root password:"</span> +189: +190: <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword kw">in</span> <span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">length</span> +191: <span class="ruby-identifier">args</span> = <span class="ruby-identifier">args</span> <span class="ruby-operator">+</span> <span class="ruby-value str">" "</span> <span class="ruby-operator">+</span> <span class="ruby-constant">ARGV</span>[<span class="ruby-identifier">i</span>] +192: <span class="ruby-keyword kw">end</span> +193: +194: <span class="ruby-identifier">system</span>( <span class="ruby-value str">'su -c "./abt '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">args</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'" root'</span> ) +195: <span class="ruby-identifier">exit</span> +196: <span class="ruby-keyword kw">end</span> +197: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/AbtReportManager.html =================================================================== --- src/trunk/doc/classes/AbtReportManager.html 2007-02-26 21:07:21 UTC (rev 306) +++ src/trunk/doc/classes/AbtReportManager.html 2007-02-26 21:09:47 UTC (rev 307) @@ -117,19 +117,19 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000115">generateHTMLPackageListing</a></li> - <li><a href="#M000103">new</a></li> - <li><a href="#M000112">searchPackageDescriptions</a></li> - <li><a href="#M000111">showFileOwner</a></li> - <li><a href="#M000107">showFrozenPackages</a></li> - <li><a href="#M000105">showInstalledPackages</a></li> - <li><a href="#M000110">showJournal</a></li> - <li><a href="#M000108">showPackageDependencies</a></li> - <li><a href="#M000104">showPackageDetails</a></li> - <li><a href="#M000106">showPackageLog</a></li> - <li><a href="#M000113">showQueue</a></li> - <li><a href="#M000109">showUntrackedFiles</a></li> - <li><a href="#M000114">showUpdates</a></li> + <li><a href="#M000114">generateHTMLPackageListing</a></li> + <li><a href="#M000102">new</a></li> + <li><a href="#M000111">searchPackageDescriptions</a></li> + <li><a href="#M000110">showFileOwner</a></li> + <li><a href="#M000106">showFrozenPackages</a></li> + <li><a href="#M000104">showInstalledPackages</a></li> + <li><a href="#M000109">showJournal</a></li> + <li><a href="#M000107">showPackageDependencies</a></li> + <li><a href="#M000103">showPackageDetails</a></li> + <li><a href="#M000105">showPackageLog</a></li> + <li><a href="#M000112">showQueue</a></li> + <li><a href="#M000108">showUntrackedFiles</a></li> + <li><a href="#M000113">showUpdates</a></li> </ul> @@ -140,7 +140,7 @@ <div class="sectiontitle">Public Class methods</div> <div class="method"> <div class="title"> - <a name="M000103"></a><b>new</b>() + <a name="M000102"></a><b>new</b>() </div> <div class="description"> <p> @@ -152,8 +152,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p> - <div id="M000103_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show source</a> ]</p> + <div id="M000102_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 41</span> 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> @@ -165,7 +165,7 @@ <div class="sectiontitle">Public Instance methods</div> <div class="method"> <div class="title"> - <a name="M000115"></a><b>generateHTMLPackageListing</b>() + <a name="M000114"></a><b>generateHTMLPackageListing</b>() </div> <div class="description"> <p> @@ -176,8 +176,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">show source</a> ]</p> - <div id="M000115_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">show source</a> ]</p> + <div id="M000114_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 241</span> 241: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generateHTMLPackageListing</span> @@ -188,7 +188,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000112"></a><b>searchPackageDescriptions</b>( searchText ) + <a name="M000111"></a><b>searchPackageDescriptions</b>( searchText ) </div> <div class="description"> <p> @@ -204,8 +204,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">show source</a> ]</p> - <div id="M000112_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show source</a> ]</p> + <div id="M000111_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 190</span> 190: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">searchPackageDescriptions</span>( <span class="ruby-identifier">searchText</span> ) @@ -216,7 +216,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000111"></a><b>showFileOwner</b>( file ) + <a name="M000110"></a><b>showFileOwner</b>( file ) </div> <div class="description"> <p> @@ -230,8 +230,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show source</a> ]</p> - <div id="M000111_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">show source</a> ]</p> + <div id="M000110_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 178</span> 178: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showFi... [truncated message content] |
From: <esc...@us...> - 2007-02-26 21:07:22
|
Revision: 306 http://svn.sourceforge.net/abtlinux/?rev=306&view=rev Author: eschabell Date: 2007-02-26 13:07:21 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Commented out this test as it needs a setup phase before it can be tested. I need to find out how to do some sort of build up to stub the needed items for testing without running and install package over and over. Modified Paths: -------------- src/trunk/TestAbtLogManager.rb Modified: src/trunk/TestAbtLogManager.rb =================================================================== --- src/trunk/TestAbtLogManager.rb 2007-02-26 20:58:52 UTC (rev 305) +++ src/trunk/TestAbtLogManager.rb 2007-02-26 21:07:21 UTC (rev 306) @@ -46,12 +46,13 @@ assert( false, "testLogPackageIntegrity()" ) end + ## + # Test method for 'AbtLogManager.testLogPackageInstall()' ## - # Test method for 'AbtLogManager.testLogPackageInstall()' - ## - def testLogPackageInstall() - assert( @log.logPackageInstall( "ipc" ), "testLogPackageInstall()" ) - end + # TODO: sort out a setup for this test. + #def testLogPackageInstall() + # assert( @log.logPackageInstall( "ipc" ), "testLogPackageInstall()" ) + #end ## # Test method for 'AbtLogManager.testLogPackageBuild()' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-26 20:58:53
|
Revision: 305 http://svn.sourceforge.net/abtlinux/?rev=305&view=rev Author: eschabell Date: 2007-02-26 12:58:52 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Added user clarification messages to the install package process. Modified Paths: -------------- src/trunk/AbtPackageManager.rb Modified: src/trunk/AbtPackageManager.rb =================================================================== --- src/trunk/AbtPackageManager.rb 2007-02-26 20:58:07 UTC (rev 304) +++ src/trunk/AbtPackageManager.rb 2007-02-26 20:58:52 UTC (rev 305) @@ -55,23 +55,20 @@ queuer = AbtQueueManager.new logger = AbtLogManager.new - # TODO: initialize pkg install directory ($PACKAGE_INSTALLED/@srcDir), - # should this fail we have to clean this dir up, move to failure - # location? - # On success, need to cache contents in cache dir. - # get package details. details = sw.details # TODO: check deps # add to install queue. + puts "\n*** Adding #{package} to the INSTALL QUEUE. ***" if ( !queuer.addPackageToQueue( package, "install" ) ) logger.logToJournal( "Failed to add #{package} to install queue." ) return false end # pre section. + puts "\n*** Processing the PRE section for #{package}. ***" if ( !sw.pre ) logger.logToJournal( "Failed to process pre-section in the package description of #{package}." ) return false @@ -80,6 +77,7 @@ end # configure section. + puts "\n*** Processing the CONFIGURE section for #{package}. ***" if ( !sw.configure ) logger.logToJournal( "Failed to process configure section in the package description of #{package}." ) return false @@ -88,6 +86,7 @@ end # build section. + puts "\n*** Processing the BUILD section for #{package}. ***" if ( !sw.build ) logger.logToJournal( "Failed to process build section in the package description of #{package}." ) return false @@ -96,6 +95,7 @@ end # preinstall section. + puts "\n*** Processing the PREINSTALL section for #{package}. ***" if ( !sw.preinstall ) logger.logToJournal( "Failed to process preinstall section in the package description of #{package}." ) return false @@ -104,6 +104,7 @@ end # install section. + puts "\n*** Processing the INSTALL section for #{package}. ***" if ( !sw.install ) logger.logToJournal( "Failed to process install section in the package description of #{package}." ) return false @@ -118,6 +119,7 @@ # post section # remove build sources. # + puts "\n*** Cleaning up the sources for #{package}. ***" if ( !sw.removeBuild ) logger.logToJournal( "Failed to remove the build sources for #{package}." ) #return false # commented out as this is not a reason to fail. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-26 20:58:09
|
Revision: 304 http://svn.sourceforge.net/abtlinux/?rev=304&view=rev Author: eschabell Date: 2007-02-26 12:58:07 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Added a few new directory checks to the constructor. Now able to log a package installation, creates an install log. Modified Paths: -------------- src/trunk/AbtLogManager.rb Modified: src/trunk/AbtLogManager.rb =================================================================== --- src/trunk/AbtLogManager.rb 2007-02-26 20:56:16 UTC (rev 303) +++ src/trunk/AbtLogManager.rb 2007-02-26 20:58:07 UTC (rev 304) @@ -55,8 +55,8 @@ # <b>RETURN</b> <i>AbtLogManager</i> - an initialized AbtLogManager object. ## def initialize - [$ABT_LOGS, $ABT_CACHES, $BUILD_LOCATION, $PACKAGE_INSTALLED, - $SOURCES_REPOSITORY].each { |dir| + [$ABT_LOGS, $ABT_CACHES, $ABT_STATE, $BUILD_LOCATION, $PACKAGE_INSTALLED, + $PACKAGE_CACHED, $ABT_TMP, $SOURCES_REPOSITORY].each { |dir| if ( ! File.directory?( dir ) ) FileUtils.mkdir_p( dir ) @@ -75,7 +75,8 @@ # otherwise false. ## def logPackageInstall( package ) - excludedDirs = "/dev /proc /tmp /var/tmp /usr/src /sys" + # some dirs we will not add to an install log. + excluded_pattern = Regexp.new( "^(/dev|/proc|/tmp|/var/tmp|/usr/src|/sys)+" ) require package sw = eval( "#{package.capitalize}.new" ) @@ -83,8 +84,8 @@ badLine = false # used to mark excluded lines from installwatch log. # our log locations. - installLog = "#{$PACKAGE_INSTALLED}/#{details['Source location']}.install" - tmpInstallLog = "/tmp/#{details['Source location']}.watch" + installLog = "#{$PACKAGE_INSTALLED}/#{details['Source location']}/#{details['Source location']}.install" + tmpInstallLog = "#{$ABT_TMP}/#{details['Source location']}.watch" # get the installed files from the tmp file # into our install log. @@ -97,12 +98,13 @@ # GIVEN LINE, MATCH MEANS WE DO NOT LOG IT! IO.foreach( tmpInstallLog ) do |line| if ( line.split[1] == 'open' ) - self.logToJournal( "DEBUG: checking: #{line.split[2]} against #{excludedDirs}." ) - if ( line.split[2].match( excludedDirs ) ) + self.logToJournal( "DEBUG: checking: #{line.split[2]} against #{excluded_pattern}." ) + if ( line.split[2] =~ excluded_pattern ) self.logToJournal( "DEBUG: Found bad logLine!" ) badLine = true else - self.logToJournal( "DEBUG: #{excludedDirs} not matching #{line.split[2]}") + badLine = false + self.logToJournal( "DEBUG: #{excluded_pattern} not matching #{line.split[2]}") end if ( !badLine ) @@ -117,6 +119,8 @@ installFile.close end + # cleanup the tmp files. + File.delete( tmpInstallLog ) return true; end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-26 20:56:17
|
Revision: 303 http://svn.sourceforge.net/abtlinux/?rev=303&view=rev Author: eschabell Date: 2007-02-26 12:56:16 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Moved creation of install directory to another class, todo removed here. Migrated all log directories to proper locations now that install is working. Modified Paths: -------------- src/trunk/AbtPackage.rb Modified: src/trunk/AbtPackage.rb =================================================================== --- src/trunk/AbtPackage.rb 2007-02-26 20:54:16 UTC (rev 302) +++ src/trunk/AbtPackage.rb 2007-02-26 20:56:16 UTC (rev 303) @@ -211,6 +211,11 @@ return false end + # ensure we have an installed directory to use. + if ( ! File.directory?( "#{$PACKAGE_INSTALLED}/#{@srcDir}" ) ) + FileUtils.mkdir_p( "#{$PACKAGE_INSTALLED}/#{@srcDir}" ) + end + # TODO: retrieve patches? # TODO: apply patches? @@ -230,7 +235,7 @@ Dir.chdir( "#{$BUILD_LOCATION}/#{@srcDir}" ) # TODO: not some better way to deal with this than system and tee? - if ( !system( "./configure --prefix=#{$DEFAULT_PREFIX} | tee #{$PACKAGE_INSTALLED}/#{@srcDir}.configure" ) ) + if ( !system( "./configure --prefix=#{$DEFAULT_PREFIX} | tee #{$PACKAGE_INSTALLED}/#{@srcDir}/#{@srcDir}.configure" ) ) puts "DEBUG: [AbtPackage.configure] - configure section failed." return false end @@ -248,7 +253,7 @@ Dir.chdir( "#{$BUILD_LOCATION}/#{@srcDir}" ) # TODO: not some better way to deal with this than system and tee? - if( !system( "make | tee #{$PACKAGE_INSTALLED}/#{@srcDir}.build" ) ) + if( !system( "make | tee #{$PACKAGE_INSTALLED}/#{@srcDir}/#{@srcDir}.build" ) ) puts "DEBUG: [AbtPackage.build] - build section failed." return false end @@ -263,7 +268,7 @@ # # <b>RETURNS:</b> <i>boolean</i> - True if the completes sucessfully, otherwise false. ## - def preinstall + def preinstall # TODO: create_group? # TODO: create_user? return true; @@ -279,7 +284,7 @@ Dir.chdir( "#{$BUILD_LOCATION}/#{@srcDir}" ) # TODO: can this be done without installwatch? - if( !system( "installwatch --transl=no --backup=no --exclude=/dev,/proc,/tmp,/var/tmp,/usr/src,/sys --logfile=/tmp/#{@srcDir}.watch make install" ) ) + if( !system( "installwatch --transl=no --backup=no --exclude=/dev,/proc,/tmp,/var/tmp,/usr/src,/sys --logfile=#{$ABT_TMP}/#{@srcDir}.watch make install" ) ) puts "DEBUG: [AbtPackage.install] - install section failed." # TODO: rollback any installed files (use install log). return false This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-26 20:54:15
|
Revision: 302 http://svn.sourceforge.net/abtlinux/?rev=302&view=rev Author: eschabell Date: 2007-02-26 12:54:16 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Placing three stars, ***, for abt messages to terminal during processing. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2007-02-26 20:34:04 UTC (rev 301) +++ src/trunk/abt.rb 2007-02-26 20:54:16 UTC (rev 302) @@ -64,11 +64,11 @@ if ( manager.installPackage( options['package'] ) ) puts "\n\n" - puts "Completed install of #{options['package']}." + puts "*** Completed install of #{options['package']}. ***" puts "\n\n" logger.logToJournal( "Completed install of #{options['package']}." ) else - puts "#{options['package'].capitalize} install failed, see journal." + puts "*** #{options['package'].capitalize} install failed, see journal. ***" end #reporter.showQueue( "install" ); # DEBUG. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-26 20:34:05
|
Revision: 301 http://svn.sourceforge.net/abtlinux/?rev=301&view=rev Author: eschabell Date: 2007-02-26 12:34:04 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Added global tmp location for abt to use. Modified Paths: -------------- src/trunk/abtconfig.rb Modified: src/trunk/abtconfig.rb =================================================================== --- src/trunk/abtconfig.rb 2007-02-26 20:28:10 UTC (rev 300) +++ src/trunk/abtconfig.rb 2007-02-26 20:34:04 UTC (rev 301) @@ -29,6 +29,7 @@ $ABT_LOGS = "/var/log/abt" $ABT_CACHES = "/var/spool/abt" $ABT_STATE = "/var/state/abt" +$ABT_TMP = "/tmp/abt" $ABTNEWS_LOG = "#{$ABT_LOGS}/news.log" $BUILD_LOCATION = "/usr/src" $JOURNAL = "#{$ABT_LOGS}/journal.log" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-26 20:28:14
|
Revision: 300 http://svn.sourceforge.net/abtlinux/?rev=300&view=rev Author: eschabell Date: 2007-02-26 12:28:10 -0800 (Mon, 26 Feb 2007) Log Message: ----------- As the install is now being implemented, it is time to move the install and cached files to their correct locations as per the design. Modified Paths: -------------- src/trunk/abtconfig.rb Modified: src/trunk/abtconfig.rb =================================================================== --- src/trunk/abtconfig.rb 2007-02-26 20:16:27 UTC (rev 299) +++ src/trunk/abtconfig.rb 2007-02-26 20:28:10 UTC (rev 300) @@ -28,10 +28,12 @@ # default paths / locations. $ABT_LOGS = "/var/log/abt" $ABT_CACHES = "/var/spool/abt" +$ABT_STATE = "/var/state/abt" $ABTNEWS_LOG = "#{$ABT_LOGS}/news.log" $BUILD_LOCATION = "/usr/src" $JOURNAL = "#{$ABT_LOGS}/journal.log" -$PACKAGE_INSTALLED = "#{$ABT_CACHES}/installed" +$PACKAGE_INSTALLED = "#{$ABT_STATE}/installed" +$PACKAGE_CACHED = "#{$ABT_STATE}/cached" $PACKAGE_PATH = "./packages/" $SOURCES_REPOSITORY = "#{$ABT_CACHES}/sources" @@ -39,7 +41,7 @@ # default config options. # $ABT_VERSION = "0.1" -$BUILD_ARCHITECTURE = "x86_64" +$BUILD_ARCHITECTURE = "i686" $BUILD_OPTIMIZATIONS = "strip" $DEFAULT_PREFIX = "/usr/local" $REMOVE_BUILD_SOURCES = false This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-26 20:16:32
|
Revision: 299 http://svn.sourceforge.net/abtlinux/?rev=299&view=rev Author: eschabell Date: 2007-02-26 12:16:27 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Small alignment fixes in code. Modified Paths: -------------- src/trunk/abtconfig.rb Modified: src/trunk/abtconfig.rb =================================================================== --- src/trunk/abtconfig.rb 2007-02-26 16:18:20 UTC (rev 298) +++ src/trunk/abtconfig.rb 2007-02-26 20:16:27 UTC (rev 299) @@ -29,8 +29,8 @@ $ABT_LOGS = "/var/log/abt" $ABT_CACHES = "/var/spool/abt" $ABTNEWS_LOG = "#{$ABT_LOGS}/news.log" -$BUILD_LOCATION = "/usr/src" -$JOURNAL = "#{$ABT_LOGS}/journal.log" +$BUILD_LOCATION = "/usr/src" +$JOURNAL = "#{$ABT_LOGS}/journal.log" $PACKAGE_INSTALLED = "#{$ABT_CACHES}/installed" $PACKAGE_PATH = "./packages/" $SOURCES_REPOSITORY = "#{$ABT_CACHES}/sources" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-26 16:18:27
|
Revision: 298 http://svn.sourceforge.net/abtlinux/?rev=298&view=rev Author: eschabell Date: 2007-02-26 08:18:20 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Working on logPackageInstall, still need to get installwatch log parsed to ignore my list of dirs (/dev, /proc, etc). Left big TODO for that. Ran the ruby formatter over these classes, removes whitespaces etc. Added install section processing. Except for the install log above it works fine. Another test done! Modified Paths: -------------- src/trunk/AbtLogManager.rb src/trunk/AbtPackage.rb src/trunk/AbtPackageManager.rb Modified: src/trunk/AbtLogManager.rb =================================================================== --- src/trunk/AbtLogManager.rb 2007-02-26 13:11:00 UTC (rev 297) +++ src/trunk/AbtLogManager.rb 2007-02-26 16:18:20 UTC (rev 298) @@ -26,9 +26,9 @@ # St, Fifth Floor, Boston, MA 02110-1301 USA ## class AbtLogManager - -protected - + + protected + ## # Provides logging of the integrity of all installed files for the given # package. Will be called as part of the logging done during the install @@ -41,12 +41,12 @@ ## def logPackageIntegrity( package ) end - - -private - -public - + + + private + + public + ## # Constructor for the AbtLogManager. It ensures all needed logs paths are # initialized. @@ -56,15 +56,15 @@ ## def initialize [$ABT_LOGS, $ABT_CACHES, $BUILD_LOCATION, $PACKAGE_INSTALLED, - $SOURCES_REPOSITORY].each { |dir| - + $SOURCES_REPOSITORY].each { |dir| + if ( ! File.directory?( dir ) ) FileUtils.mkdir_p( dir ) self.logToJournal( "Created directory: #{dir}." ) end } end - + ## # Provides logging of all files installed by given package. Should be called # as part of the install phase of the build. @@ -75,8 +75,51 @@ # otherwise false. ## def logPackageInstall( package ) + excludedDirs = "/dev /proc /tmp /var/tmp /usr/src /sys" + + require package + sw = eval( "#{package.capitalize}.new" ) + details = sw.details + badLine = false # used to mark excluded lines from installwatch log. + + # our log locations. + installLog = "#{$PACKAGE_INSTALLED}/#{details['Source location']}.install" + tmpInstallLog = "/tmp/#{details['Source location']}.watch" + + # get the installed files from the tmp file + # into our install log. + if ( File.exist?( tmpInstallLog ) ) + installFile = open( installLog, 'w') + + # include only the file names from open calls + # and not part of the excluded range of directories. + #TODO: FIX THIS, NEEDS TO MATCH EACH LINE.SPLIT[2] TO THE + # GIVEN LINE, MATCH MEANS WE DO NOT LOG IT! + IO.foreach( tmpInstallLog ) do |line| + if ( line.split[1] == 'open' ) + self.logToJournal( "DEBUG: checking: #{line.split[2]} against #{excludedDirs}." ) + if ( line.split[2].match( excludedDirs ) ) + self.logToJournal( "DEBUG: Found bad logLine!" ) + badLine = true + else + self.logToJournal( "DEBUG: #{excludedDirs} not matching #{line.split[2]}") + end + + if ( !badLine ) + self.logToJournal( "DEBUG: adding line to installFile!") + installFile.puts line.split[2] + else + self.logToJournal( "DEBUG: found a badLine, not adding #{line.split[2]}") + end + end + end + + installFile.close + end + + return true; end - + ## # Provides logging of all output produced during the build phase of the # given package. Should be called as part of the install phase of the build. @@ -88,7 +131,7 @@ ## def logPackageBuild( package ) end - + ## # Provides a complete log of the given packages build. Includes everything # needed to duplicate the build at a later date. @@ -100,7 +143,7 @@ ## def cachePackage( package ) end - + ## # Provides logging of given message to the AbTLinux journal. Message logged # with date timestamp. @@ -115,7 +158,7 @@ log.close return true end - + return false end end Modified: src/trunk/AbtPackage.rb =================================================================== --- src/trunk/AbtPackage.rb 2007-02-26 13:11:00 UTC (rev 297) +++ src/trunk/AbtPackage.rb 2007-02-26 16:18:20 UTC (rev 298) @@ -28,9 +28,9 @@ # St, Fifth Floor, Boston, MA 02110-1301 USA ## class AbtPackage - + protected - + ## # Unpacks this packages source file into the standard build location. # @@ -40,107 +40,107 @@ srcFile = File.basename( @srcUrl ) sourcesToUnpack = "#{$SOURCES_REPOSITORY}/#{srcFile}" unpackTool = "" - + # check for existing file in source repo. if ( !File.exist?( sourcesToUnpack ) ) return false end - + # check if possible existing sources in build directory. if ( File.directory?( "#{$BUILD_LOCATION}/#{@srcDir}" ) ) return true end - + # determine which supported compression used [gz, tar, tgz, bz2, zip]. compressionType = srcFile.split( '.' ) - + case compressionType.last - + when "gz" unpackTool = "tar xzvf" - + when "tar" unpackTool = "tar xvf" - + when "bz2" unpackTool = "tar xjvf" - + when "tgz" unpackTool = "tar xzvf" - + when "zip" unpackTool = "unizp" - + else # unsupported format. return false end - + # DEBUG: #logger = AbtLogManager.new #logger.logToJournal( "DEBUG: unpack tool will be '#{unpackTool}'." ) - + Dir.chdir( $BUILD_LOCATION ) if ( !system( "#{unpackTool} #{sourcesToUnpack}" ) ) return false end - + return true end - + private - + public - + # the name of the package. attr_reader :name - + # the executable name for the package. attr_reader :execName - + # the package version number. attr_reader :version - + # the source directory for the package. attr_reader :srcDir - + # the packages homepage. attr_reader :homepage - + # the URL where this packages sources can be obtained. attr_reader :srcUrl - + # list of dependsOn (DO) related package dependencies. attr_reader :dependsOn - + # list of reliesOn (RO) related package dependencies. attr_reader :reliesOn - + # list of optional reliesOn (oRO) related package dependencies. attr_reader :optionalDO - + # list of optional dependsOn (oDO) related package dependencies. attr_reader :optionalRO - + # security hash value of package sources. attr_reader :hashCheck - + # list of available patches for this package. attr_reader :patches - + # security hash value of this packages patches. attr_reader :patchesHashCheck - + # available mirrors for this package. attr_reader :mirrorPath - + # type of license this package has. attr_reader :licence - + # the package description. attr_reader :description - - + + ## # Constructor for an AbtPackage, requires all the packge details. # @@ -165,7 +165,7 @@ @license = data['license'] @description = data['description'] end - + ## # Provides all the data needed for this AbtPackage. # @@ -191,7 +191,7 @@ "Description" => @description } end - + ## # Preliminary work will happen here such as downloading the tarball, # unpacking it, downloading and applying patches. @@ -200,12 +200,12 @@ ## def pre downloader = AbtDownloadManager.new - + # download sources. if ( !downloader.retrievePackageSource( @name.downcase, $SOURCES_REPOSITORY ) ) return false end - + # unpack sources. if ( !self.unpackSources ) return false @@ -213,10 +213,10 @@ # TODO: retrieve patches? # TODO: apply patches? - + return true end - + ## # Here we manage the ./configure step (or equivalent). We need to give ./configure # (or autogen.sh, or whatever) the correct options so files are to be placed later in the @@ -228,18 +228,17 @@ ## def configure Dir.chdir( "#{$BUILD_LOCATION}/#{@srcDir}" ) - + # TODO: not some better way to deal with this than system and tee? - if ( !system( "./configure --prefix=#{$DEFAULT_PREFIX} | tee #{$PACKAGE_INSTALLED}/#{@srcDir}.configure" ) ) - # TODO: put this in failure file. - puts "DEBUG: [AbtPackage.configure] - unable to configure." + if ( !system( "./configure --prefix=#{$DEFAULT_PREFIX} | tee #{$PACKAGE_INSTALLED}/#{@srcDir}.configure" ) ) + puts "DEBUG: [AbtPackage.configure] - configure section failed." return false end - - puts "DEBUG: [AbtPackage.configure] - configure went fine!" + + puts "DEBUG: [AbtPackage.configure] - configure section completed!" return true end - + ## # Here is where the actual builing of the software starts, for example running 'make'. # @@ -247,18 +246,17 @@ ## def build Dir.chdir( "#{$BUILD_LOCATION}/#{@srcDir}" ) - + # TODO: not some better way to deal with this than system and tee? - if( !system( "make | tee #{$PACKAGE_INSTALLED}/#{@srcDir}.build" ) ) - # TODO: put this in failure file. - puts "DEBUG: [AbtPackage.build] - unable to build." + if( !system( "make | tee #{$PACKAGE_INSTALLED}/#{@srcDir}.build" ) ) + puts "DEBUG: [AbtPackage.build] - build section failed." return false - end - - puts "DEBUG: [AbtPackage.build] - build went fine!" + end + + puts "DEBUG: [AbtPackage.build] - build section completed!" return true end - + ## # Any actions needed before the installation can occur will happen here, such as creating # new user accounts, dealing with existing configuration files, etc. @@ -270,7 +268,7 @@ # TODO: create_user? return true; end - + ## # All files to be installed are installed here. # @@ -278,9 +276,19 @@ ## def install # TODO: implement. - return true; + Dir.chdir( "#{$BUILD_LOCATION}/#{@srcDir}" ) + + # TODO: can this be done without installwatch? + if( !system( "installwatch --transl=no --backup=no --exclude=/dev,/proc,/tmp,/var/tmp,/usr/src,/sys --logfile=/tmp/#{@srcDir}.watch make install" ) ) + puts "DEBUG: [AbtPackage.install] - install section failed." + # TODO: rollback any installed files (use install log). + return false + end + + puts "DEBUG: [AbtPackage.install] - install section completed!" + return true end - + ## # Last bits of installation. adding the service for automatic start in init.d for example. # @@ -290,7 +298,7 @@ # TODO: implement me! return true end - + ## # Cleans up this packages source build directory. # @@ -299,16 +307,16 @@ def removeBuild if ( $REMOVE_BUILD_SOURCES ) buildSourcesLocation = "#{$BUILD_LOCATION}/#{srcDir}" - + if ( !File.directory?( buildSourcesLocation ) ) return true end - + if ( !FileUtils.rm_rf buildSourcesLocation, :verbose => true ) return false end end - + return true end end Modified: src/trunk/AbtPackageManager.rb =================================================================== --- src/trunk/AbtPackageManager.rb 2007-02-26 13:11:00 UTC (rev 297) +++ src/trunk/AbtPackageManager.rb 2007-02-26 16:18:20 UTC (rev 298) @@ -26,13 +26,13 @@ # St, Fifth Floor, Boston, MA 02110-1301 USA ## class AbtPackageManager - -protected - -private - -public - + + protected + + private + + public + ## # Constructor for AbtPackageManager. # @@ -40,7 +40,7 @@ ## def initialize end - + ## # Installs a given package. # @@ -54,23 +54,23 @@ sw = eval( "#{package.capitalize}.new" ) queuer = AbtQueueManager.new logger = AbtLogManager.new - + # TODO: initialize pkg install directory ($PACKAGE_INSTALLED/@srcDir), # should this fail we have to clean this dir up, move to failure # location? # On success, need to cache contents in cache dir. - + # get package 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 - + # pre section. if ( !sw.pre ) logger.logToJournal( "Failed to process pre-section in the package description of #{package}." ) @@ -78,7 +78,7 @@ else logger.logToJournal( "DEBUG: finished #{package} pre section." ) end - + # configure section. if ( !sw.configure ) logger.logToJournal( "Failed to process configure section in the package description of #{package}." ) @@ -86,15 +86,15 @@ else logger.logToJournal( "DEBUG: finished #{package} configure section." ) end - + # build section. - if ( !sw.build ) + if ( !sw.build ) logger.logToJournal( "Failed to process build section in the package description of #{package}." ) return false else logger.logToJournal( "DEBUG: finished #{package} build section." ) end - + # preinstall section. if ( !sw.preinstall ) logger.logToJournal( "Failed to process preinstall section in the package description of #{package}." ) @@ -103,10 +103,18 @@ logger.logToJournal( "DEBUG: finished #{package} preinstall section." ) end - + # install section. + if ( !sw.install ) + logger.logToJournal( "Failed to process install section in the package description of #{package}." ) + return false + else + logger.logPackageInstall( "ipc" ) + logger.logToJournal( "DEBUG: finished #{package} install section." ) + end + + # TODO: finish up the following steps per install scenario: # - # install section # post section # remove build sources. # @@ -114,10 +122,10 @@ 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 end - + ## # Reinstalls a given package. # @@ -128,7 +136,7 @@ ## def reinstallPackage( package ) end - + ## # Removes a given package. # @@ -139,7 +147,7 @@ ## def removePackage( package ) end - + ## # Downgrades a given package. # @@ -152,7 +160,7 @@ ## def downgradePackage( package, version ) end - + ## # Freezes a given package. If successful will add give package to the frozen # list. @@ -164,7 +172,7 @@ ## def freezePackage( package ) end - + ## # Provides for a log through for root access using su. # @@ -176,11 +184,11 @@ if ( Process.uid != 0 ) args = "" puts "\nEnter root password:" - + for i in 0...ARGV.length args = args + " " + ARGV[i] end - + system( 'su -c "./abt ' + args + '" root' ) exit end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-26 13:11:00
|
Revision: 297 http://svn.sourceforge.net/abtlinux/?rev=297&view=rev Author: eschabell Date: 2007-02-26 05:11:00 -0800 (Mon, 26 Feb 2007) Log Message: ----------- Placed todo in install method for AbtPackage class. Added preinstall to AbtPackageManager installPackage method. Updated tests to test correctly for this. Modified Paths: -------------- src/trunk/AbtPackage.rb src/trunk/AbtPackageManager.rb src/trunk/TestAbtPackage.rb Modified: src/trunk/AbtPackage.rb =================================================================== --- src/trunk/AbtPackage.rb 2007-02-25 22:04:14 UTC (rev 296) +++ src/trunk/AbtPackage.rb 2007-02-26 13:11:00 UTC (rev 297) @@ -277,6 +277,8 @@ # <b>RETURNS:</b> <i>boolean</i> - True if the completes sucessfully, otherwise false. ## def install + # TODO: implement. + return true; end ## Modified: src/trunk/AbtPackageManager.rb =================================================================== --- src/trunk/AbtPackageManager.rb 2007-02-25 22:04:14 UTC (rev 296) +++ src/trunk/AbtPackageManager.rb 2007-02-26 13:11:00 UTC (rev 297) @@ -87,18 +87,25 @@ logger.logToJournal( "DEBUG: finished #{package} configure section." ) end - # build section - if ( !sw.build ) + # build section. + if ( !sw.build ) logger.logToJournal( "Failed to process build section in the package description of #{package}." ) return false else logger.logToJournal( "DEBUG: finished #{package} build section." ) end + # preinstall section. + if ( !sw.preinstall ) + logger.logToJournal( "Failed to process preinstall section in the package description of #{package}." ) + return false + else + logger.logToJournal( "DEBUG: finished #{package} preinstall section." ) + end + # TODO: finish up the following steps per install scenario: # - # pre install section # install section # post section # remove build sources. Modified: src/trunk/TestAbtPackage.rb =================================================================== --- src/trunk/TestAbtPackage.rb 2007-02-25 22:04:14 UTC (rev 296) +++ src/trunk/TestAbtPackage.rb 2007-02-26 13:11:00 UTC (rev 297) @@ -85,10 +85,10 @@ ## def testBuild if ( !@ipc.pre() ) - assert_equals( true, false, "testConfigure()" ) + assert_equals( true, false, "testBuild()" ) end if ( !@ipc.configure() ) - assert_equals( true, false, "testConfigure()" ) + assert_equals( true, false, "testBuild()" ) end assert( @ipc.build(), "testBuild()" ) end @@ -104,13 +104,40 @@ # Test method for 'AbtPackage.testInstall()' ## def testInstall - assert_equal( false, true, "testInstall()" ) + if ( !@ipc.pre() ) + assert_equals( true, false, "testInstall()" ) + end + if ( !@ipc.configure() ) + assert_equals( true, false, "testInstall()" ) + end + if ( !@ipc.build() ) + assert_equals( true, false, "testInstall()" ) + end + if ( !@ipc.preinstall() ) + assert_equals( true, false, "testInstall()" ) + end + assert( @ipc.install(), "testInstall()" ) end ## # Test method for 'AbtPackage.testPost()' ## def testPost + if ( !@ipc.pre() ) + assert_equals( true, false, "testPost()" ) + end + if ( !@ipc.configure() ) + assert_equals( true, false, "testPost()" ) + end + if ( !@ipc.build() ) + assert_equals( true, false, "testPost()" ) + end + if ( !@ipc.preinstall() ) + assert_equals( true, false, "testPost()" ) + end + if ( !@ipc.install() ) + assert_equals( true, false, "testPost()" ) + end assert( @ipc.post(), "testPost()" ) end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-25 22:04:15
|
Revision: 296 http://svn.sourceforge.net/abtlinux/?rev=296&view=rev Author: eschabell Date: 2007-02-25 14:04:14 -0800 (Sun, 25 Feb 2007) Log Message: ----------- Regenerated api docs. Modified Paths: -------------- src/trunk/doc/classes/AbtPackage.html src/trunk/doc/classes/TestAbtDownloadManager.html src/trunk/doc/classes/TestAbtLogManager.html src/trunk/doc/classes/TestAbtPackage.html src/trunk/doc/classes/TestAbtPackageManager.html src/trunk/doc/classes/TestAbtQueueManager.html src/trunk/doc/classes/TestAbtReportManager.html src/trunk/doc/created.rid src/trunk/doc/files/AbtPackage_rb.html src/trunk/doc/files/TestAbtDownloadManager_rb.html src/trunk/doc/files/TestAbtLogManager_rb.html src/trunk/doc/files/TestAbtPackageManager_rb.html src/trunk/doc/files/TestAbtPackage_rb.html src/trunk/doc/files/TestAbtQueueManager_rb.html src/trunk/doc/files/TestAbtReportManager_rb.html Modified: src/trunk/doc/classes/AbtPackage.html =================================================================== --- src/trunk/doc/classes/AbtPackage.html 2007-02-25 22:03:01 UTC (rev 295) +++ src/trunk/doc/classes/AbtPackage.html 2007-02-25 22:04:14 UTC (rev 296) @@ -362,20 +362,20 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000028_source')" id="l_M000028_source">show source</a> ]</p> <div id="M000028_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 250</span> -250: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build</span> -251: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-node">"#{$BUILD_LOCATION}/#{@srcDir}"</span> ) -252: -253: <span class="ruby-comment cmt"># TODO: not some better way to deal with this than system and tee?</span> -254: <span class="ruby-keyword kw">if</span>( <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>( <span class="ruby-node">"make | tee #{$PACKAGE_INSTALLED}/#{@srcDir}.build"</span> ) ) -255: <span class="ruby-comment cmt"># TODO: put this in failure file.</span> -256: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.build] - unable to build."</span> -257: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -258: <span class="ruby-keyword kw">end</span> -259: -260: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.build] - build went fine!"</span> -261: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -262: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 248</span> +248: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build</span> +249: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-node">"#{$BUILD_LOCATION}/#{@srcDir}"</span> ) +250: +251: <span class="ruby-comment cmt"># TODO: not some better way to deal with this than system and tee?</span> +252: <span class="ruby-keyword kw">if</span>( <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>( <span class="ruby-node">"make | tee #{$PACKAGE_INSTALLED}/#{@srcDir}.build"</span> ) ) +253: <span class="ruby-comment cmt"># TODO: put this in failure file.</span> +254: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.build] - unable to build."</span> +255: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +256: <span class="ruby-keyword kw">end</span> +257: +258: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.build] - build went fine!"</span> +259: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +260: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -403,20 +403,20 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000027_source')" id="l_M000027_source">show source</a> ]</p> <div id="M000027_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 231</span> -231: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span> -232: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-node">"#{$BUILD_LOCATION}/#{@srcDir}"</span> ) -233: -234: <span class="ruby-comment cmt"># TODO: not some better way to deal with this than system and tee?</span> -235: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>( <span class="ruby-node">"./configure --prefix=#{$DEFAULT_PREFIX} | tee #{$PACKAGE_INSTALLED}/#{@srcDir}.configure"</span> ) ) -236: <span class="ruby-comment cmt"># TODO: put this in failure file.</span> -237: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.configure] - unable to configure."</span> -238: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -239: <span class="ruby-keyword kw">end</span> -240: -241: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.configure] - configure went fine!"</span> -242: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -243: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 229</span> +229: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span> +230: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-node">"#{$BUILD_LOCATION}/#{@srcDir}"</span> ) +231: +232: <span class="ruby-comment cmt"># TODO: not some better way to deal with this than system and tee?</span> +233: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>( <span class="ruby-node">"./configure --prefix=#{$DEFAULT_PREFIX} | tee #{$PACKAGE_INSTALLED}/#{@srcDir}.configure"</span> ) ) +234: <span class="ruby-comment cmt"># TODO: put this in failure file.</span> +235: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.configure] - unable to configure."</span> +236: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +237: <span class="ruby-keyword kw">end</span> +238: +239: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"DEBUG: [AbtPackage.configure] - configure went fine!"</span> +240: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +241: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -481,9 +481,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show source</a> ]</p> <div id="M000030_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 278</span> -278: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install</span> -279: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 279</span> +279: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install</span> +280: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -506,9 +506,11 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show source</a> ]</p> <div id="M000031_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 286</span> -286: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post</span> -287: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 287</span> +287: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post</span> +288: <span class="ruby-comment cmt"># TODO: implement me!</span> +289: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +290: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -544,14 +546,12 @@ 210: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unpackSources</span> ) 211: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> 212: <span class="ruby-keyword kw">end</span> -213: -214: <span class="ruby-comment cmt"># TODO: create_group?</span> -215: <span class="ruby-comment cmt"># TODO: create_user?</span> -216: <span class="ruby-comment cmt"># TODO: retrieve patches?</span> -217: <span class="ruby-comment cmt"># TODO: apply patches?</span> -218: -219: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -220: <span class="ruby-keyword kw">end</span> +213: +214: <span class="ruby-comment cmt"># TODO: retrieve patches?</span> +215: <span class="ruby-comment cmt"># TODO: apply patches?</span> +216: +217: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +218: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -575,9 +575,12 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000029_source')" id="l_M000029_source">show source</a> ]</p> <div id="M000029_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 270</span> -270: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">preinstall</span> -271: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 268</span> +268: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">preinstall</span> +269: <span class="ruby-comment cmt"># TODO: create_group?</span> +270: <span class="ruby-comment cmt"># TODO: create_user?</span> +271: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>; +272: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -600,22 +603,22 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show source</a> ]</p> <div id="M000032_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 294</span> -294: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">removeBuild</span> -295: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">$REMOVE_BUILD_SOURCES</span> ) -296: <span class="ruby-identifier">buildSourcesLocation</span> = <span class="ruby-node">"#{$BUILD_LOCATION}/#{srcDir}"</span> -297: -298: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-identifier">buildSourcesLocation</span> ) ) -299: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -300: <span class="ruby-keyword kw">end</span> -301: -302: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span> <span class="ruby-identifier">buildSourcesLocation</span>, <span class="ruby-identifier">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> ) -303: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -304: <span class="ruby-keyword kw">end</span> -305: <span class="ruby-keyword kw">end</span> -306: -307: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -308: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 297</span> +297: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">removeBuild</span> +298: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">$REMOVE_BUILD_SOURCES</span> ) +299: <span class="ruby-identifier">buildSourcesLocation</span> = <span class="ruby-node">"#{$BUILD_LOCATION}/#{srcDir}"</span> +300: +301: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-identifier">buildSourcesLocation</span> ) ) +302: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +303: <span class="ruby-keyword kw">end</span> +304: +305: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span> <span class="ruby-identifier">buildSourcesLocation</span>, <span class="ruby-identifier">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> ) +306: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +307: <span class="ruby-keyword kw">end</span> +308: <span class="ruby-keyword kw">end</span> +309: +310: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +311: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/TestAbtDownloadManager.html =================================================================== --- src/trunk/doc/classes/TestAbtDownloadManager.html 2007-02-25 22:03:01 UTC (rev 295) +++ src/trunk/doc/classes/TestAbtDownloadManager.html 2007-02-25 22:04:14 UTC (rev 296) @@ -146,10 +146,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000078_source')" id="l_M000078_source">show source</a> ]</p> <div id="M000078_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 39</span> -39: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> -40: <span class="ruby-ivar">@download</span> = <span class="ruby-constant">AbtDownloadManager</span>.<span class="ruby-identifier">new</span>() -41: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 38</span> +38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> +39: <span class="ruby-ivar">@download</span> = <span class="ruby-constant">AbtDownloadManager</span>.<span class="ruby-identifier">new</span>() +40: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -167,10 +167,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000081_source')" id="l_M000081_source">show source</a> ]</p> <div id="M000081_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 60</span> -60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrieveNewsFeed</span>() -61: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrieveNewsFeed</span>( <span class="ruby-identifier">$ABTNEWS</span> ), <span class="ruby-value str">"testRetrieveNewsFeed()"</span> ) -62: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 59</span> +59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrieveNewsFeed</span>() +60: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrieveNewsFeed</span>( <span class="ruby-identifier">$ABTNEWS</span> ), <span class="ruby-value str">"testRetrieveNewsFeed()"</span> ) +61: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -189,10 +189,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000079_source')" id="l_M000079_source">show source</a> ]</p> <div id="M000079_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 46</span> -46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrievePackageSource</span>() -47: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrievePackageSource</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"/tmp"</span> ), <span class="ruby-value str">"testRetrievePackageSource()"</span> ) -48: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 45</span> +45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrievePackageSource</span>() +46: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrievePackageSource</span>( <span class="ruby-value str">"ipc"</span>, <span class="ruby-value str">"/tmp"</span> ), <span class="ruby-value str">"testRetrievePackageSource()"</span> ) +47: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -210,10 +210,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000080_source')" id="l_M000080_source">show source</a> ]</p> <div id="M000080_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 53</span> -53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrievePackageTree</span>() -54: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrievePackageTree</span>( <span class="ruby-value str">"dummy"</span> ), <span class="ruby-value str">"testRetrievePackageTree()"</span> ) -55: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 52</span> +52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrievePackageTree</span>() +53: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrievePackageTree</span>( <span class="ruby-value str">"dummy"</span> ), <span class="ruby-value str">"testRetrievePackageTree()"</span> ) +54: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -231,10 +231,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000082_source')" id="l_M000082_source">show source</a> ]</p> <div id="M000082_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 67</span> -67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testUpdatePackage</span>() -68: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">updatePackage</span>(), <span class="ruby-value str">"testUpdatePackage()"</span> ) -69: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 66</span> +66: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testUpdatePackage</span>() +67: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">updatePackage</span>(), <span class="ruby-value str">"testUpdatePackage()"</span> ) +68: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -252,10 +252,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000083_source')" id="l_M000083_source">show source</a> ]</p> <div id="M000083_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 74</span> -74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testUpdatePackageTree</span>() -75: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">updatePackageTree</span>(), <span class="ruby-value str">"testUpdatePackageTree()"</span> ) -76: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 73</span> +73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testUpdatePackageTree</span>() +74: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">updatePackageTree</span>(), <span class="ruby-value str">"testUpdatePackageTree()"</span> ) +75: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/TestAbtLogManager.html =================================================================== --- src/trunk/doc/classes/TestAbtLogManager.html 2007-02-25 22:03:01 UTC (rev 295) +++ src/trunk/doc/classes/TestAbtLogManager.html 2007-02-25 22:04:14 UTC (rev 296) @@ -168,7 +168,7 @@ <pre> <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 66</span> 66: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testCachePackage</span>() -67: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">cachePackage</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testCachePackage()"</span> ) +67: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">cachePackage</span>( <span class="ruby-value str">"ipc"</span> ), <span class="ruby-value str">"testCachePackage()"</span> ) 68: <span class="ruby-keyword kw">end</span> </pre> </div> @@ -189,7 +189,7 @@ <pre> <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 59</span> 59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testLogPackageBuild</span>() -60: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">logPackageBuild</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testLogPackageBuild()"</span> ) +60: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">logPackageBuild</span>( <span class="ruby-value str">"ipc"</span> ), <span class="ruby-value str">"testLogPackageBuild()"</span> ) 61: <span class="ruby-keyword kw">end</span> </pre> </div> @@ -210,7 +210,7 @@ <pre> <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 52</span> 52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testLogPackageInstall</span>() -53: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">logPackageInstall</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testLogPackageInstall()"</span> ) +53: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">logPackageInstall</span>( <span class="ruby-value str">"ipc"</span> ), <span class="ruby-value str">"testLogPackageInstall()"</span> ) 54: <span class="ruby-keyword kw">end</span> </pre> </div> @@ -231,7 +231,7 @@ <pre> <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 44</span> 44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testLogPackageIntegrity</span>() -45: <span class="ruby-comment cmt">#assert( @log.logPackageIntegrity( "fortune" ), "testLogPackageIntegrity()" )</span> +45: <span class="ruby-comment cmt">#assert( @log.logPackageIntegrity( "ipc" ), "testLogPackageIntegrity()" )</span> 46: <span class="ruby-identifier">assert</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">"testLogPackageIntegrity()"</span> ) 47: <span class="ruby-keyword kw">end</span> </pre> Modified: src/trunk/doc/classes/TestAbtPackage.html =================================================================== --- src/trunk/doc/classes/TestAbtPackage.html 2007-02-25 22:03:01 UTC (rev 295) +++ src/trunk/doc/classes/TestAbtPackage.html 2007-02-25 22:04:14 UTC (rev 296) @@ -147,10 +147,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000087_source')" id="l_M000087_source">show source</a> ]</p> <div id="M000087_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 59</span> -59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> -60: <span class="ruby-ivar">@fortune</span> = <span class="ruby-constant">AbtPackage</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$data</span> ) -61: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 51</span> +51: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> +52: <span class="ruby-ivar">@ipc</span> = <span class="ruby-constant">Ipc</span>.<span class="ruby-identifier">new</span> +53: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -168,10 +168,16 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000091_source')" id="l_M000091_source">show source</a> ]</p> <div id="M000091_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 102</span> -102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testBuild</span> -103: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">"testBuild()"</span> ) -104: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 86</span> +86: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testBuild</span> +87: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">pre</span>() ) +88: <span class="ruby-identifier">assert_equals</span>( <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">"testConfigure()"</span> ) +89: <span class="ruby-keyword kw">end</span> +90: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">configure</span>() ) +91: <span class="ruby-identifier">assert_equals</span>( <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">"testConfigure()"</span> ) +92: <span class="ruby-keyword kw">end</span> +93: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">build</span>(), <span class="ruby-value str">"testBuild()"</span> ) +94: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -189,10 +195,13 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000090_source')" id="l_M000090_source">show source</a> ]</p> <div id="M000090_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 95</span> -95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testConfigure</span> -96: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">"testConfigure()"</span> ) -97: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 76</span> +76: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testConfigure</span> +77: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">pre</span>() ) +78: <span class="ruby-identifier">assert_equals</span>( <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">"testConfigure()"</span> ) +79: <span class="ruby-keyword kw">end</span> +80: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">configure</span>(), <span class="ruby-value str">"testConfigure()"</span> ) +81: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -210,25 +219,14 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000088_source')" id="l_M000088_source">show source</a> ]</p> <div id="M000088_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 66</span> -66: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testDetails</span> -67: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'name'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Package name'</span>], <span class="ruby-value str">"testDetails()"</span> ) -68: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'execName'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Executable'</span>], <span class="ruby-value str">"testDetails()"</span> ) -69: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'version'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Version'</span>], <span class="ruby-value str">"testDetails()"</span> ) -70: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'srcDir'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Source location'</span>], <span class="ruby-value str">"testDetails()"</span> ) -71: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'homepage'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Homepage'</span>], <span class="ruby-value str">"testDetails()"</span> ) -72: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'srcUrl'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Source uri'</span>], <span class="ruby-value str">"testDetails()"</span> ) -73: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'dependsOn'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Depends On'</span>], <span class="ruby-value str">"testDetails()"</span> ) -74: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'reliesOn'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Relies On'</span>], <span class="ruby-value str">"testDetails()"</span> ) -75: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'optionalDO'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Optional DO'</span>], <span class="ruby-value str">"testDetails()"</span> ) -76: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'optionalRO'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Optional RO'</span>], <span class="ruby-value str">"testDetails()"</span> ) -77: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'hashCheck'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Security hash'</span>], <span class="ruby-value str">"testDetails()"</span> ) -78: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'patches'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Patches'</span>], <span class="ruby-value str">"testDetails()"</span> ) -79: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'patchesHashCheck'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Patches hash'</span>], <span class="ruby-value str">"testDetails()"</span> ) -80: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'mirrorPath'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Mirror'</span>], <span class="ruby-value str">"testDetails()"</span> ) -81: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'license'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'License'</span>], <span class="ruby-value str">"testDetails()"</span> ) -82: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$data</span>[<span class="ruby-value str">'description'</span>], <span class="ruby-ivar">@fortune</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Description'</span>], <span class="ruby-value str">"testDetails()"</span> ) -83: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 58</span> +58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testDetails</span> +59: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$dataTest</span>[<span class="ruby-value str">'name'</span>], <span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Package name'</span>], <span class="ruby-value str">"testDetails()"</span> ) +60: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$dataTest</span>[<span class="ruby-value str">'execName'</span>], <span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Executable'</span>], <span class="ruby-value str">"testDetails()"</span> ) +61: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$dataTest</span>[<span class="ruby-value str">'version'</span>], <span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Version'</span>], <span class="ruby-value str">"testDetails()"</span> ) +62: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$dataTest</span>[<span class="ruby-value str">'srcDir'</span>], <span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Source location'</span>], <span class="ruby-value str">"testDetails()"</span> ) +63: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-identifier">$dataTest</span>[<span class="ruby-value str">'homepage'</span>], <span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">details</span>[<span class="ruby-value str">'Homepage'</span>], <span class="ruby-value str">"testDetails()"</span> ) +64: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -246,10 +244,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000093_source')" id="l_M000093_source">show source</a> ]</p> <div id="M000093_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 116</span> -116: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testInstall</span> -117: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">"testInstall()"</span> ) -118: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 106</span> +106: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testInstall</span> +107: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">"testInstall()"</span> ) +108: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -267,10 +265,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000094_source')" id="l_M000094_source">show source</a> ]</p> <div id="M000094_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 123</span> -123: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testPost</span> -124: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">"testPost()"</span> ) -125: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 113</span> +113: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testPost</span> +114: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">post</span>(), <span class="ruby-value str">"testPost()"</span> ) +115: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -288,10 +286,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000089_source')" id="l_M000089_source">show source</a> ]</p> <div id="M000089_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 88</span> -88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testPre</span> -89: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">"testPre()"</span> ) -90: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 69</span> +69: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testPre</span> +70: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">pre</span>(), <span class="ruby-value str">"testPre()"</span> ) +71: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -309,10 +307,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000092_source')" id="l_M000092_source">show source</a> ]</p> <div id="M000092_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 109</span> -109: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testPreinstall</span> -110: <span class="ruby-identifier">assert_equal</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">"testPreinstall()"</span> ) -111: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtPackage.rb, line 99</span> + 99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testPreinstall</span> +100: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@ipc</span>.<span class="ruby-identifier">preinstall</span>(), <span class="ruby-value str">"testPreinstall()"</span> ) +101: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/TestAbtPackageManager.html =================================================================== --- src/trunk/doc/classes/TestAbtPackageManager.html 2007-02-25 22:03:01 UTC (rev 295) +++ src/trunk/doc/classes/TestAbtPackageManager.html 2007-02-25 22:04:14 UTC (rev 296) @@ -169,7 +169,7 @@ <pre> <span class="ruby-comment cmt"># File TestAbtPackageManager.rb, line 64</span> 64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testDowngradePackage</span> -65: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@pkgMgr</span>.<span class="ruby-identifier">downgradePackage</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"1.2"</span> ), <span class="ruby-value str">"testDowngradePackage()"</span> ) +65: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@pkgMgr</span>.<span class="ruby-identifier">downgradePackage</span>( <span class="ruby-value str">"ipc"</span>, <span class="ruby-value str">"1.2"</span> ), <span class="ruby-value str">"testDowngradePackage()"</span> ) 66: <span class="ruby-keyword kw">end</span> </pre> </div> @@ -190,7 +190,7 @@ <pre> <span class="ruby-comment cmt"># File TestAbtPackageManager.rb, line 71</span> 71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testFreezePackage</span> -72: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@pkgMgr</span>.<span class="ruby-identifier">freezePackage</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testFreezePackage()"</span> ) +72: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@pkgMgr</span>.<span class="ruby-identifier">freezePackage</span>( <span class="ruby-value str">"ipc"</span> ), <span class="ruby-value str">"testFreezePackage()"</span> ) 73: <span class="ruby-keyword kw">end</span> </pre> </div> @@ -211,7 +211,7 @@ <pre> <span class="ruby-comment cmt"># File TestAbtPackageManager.rb, line 43</span> 43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testInstallPackage</span> -44: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@pkgMgr</span>.<span class="ruby-identifier">installPackage</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testInstallPackage()"</span> ) +44: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@pkgMgr</span>.<span class="ruby-identifier">installPackage</span>( <span class="ruby-value str">"ipc"</span> ), <span class="ruby-value str">"testInstallPackage()"</span> ) 45: <span class="ruby-keyword kw">end</span> </pre> </div> @@ -232,7 +232,7 @@ <pre> <span class="ruby-comment cmt"># File TestAbtPackageManager.rb, line 50</span> 50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testReinstallPackage</span> -51: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@pkgMgr</span>.<span class="ruby-identifier">reinstallPackage</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testReinstallPackage()"</span> ) +51: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@pkgMgr</span>.<span class="ruby-identifier">reinstallPackage</span>( <span class="ruby-value str">"ipc"</span> ), <span class="ruby-value str">"testReinstallPackage()"</span> ) 52: <span class="ruby-keyword kw">end</span> </pre> </div> @@ -253,7 +253,7 @@ <pre> <span class="ruby-comment cmt"># File TestAbtPackageManager.rb, line 57</span> 57: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRemovePackage</span> -58: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@pkgMgr</span>.<span class="ruby-identifier">removePackage</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testRemovePackage()"</span> ) +58: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@pkgMgr</span>.<span class="ruby-identifier">removePackage</span>( <span class="ruby-value str">"ipc"</span> ), <span class="ruby-value str">"testRemovePackage()"</span> ) 59: <span class="ruby-keyword kw">end</span> </pre> </div> Modified: src/trunk/doc/classes/TestAbtQueueManager.html =================================================================== --- src/trunk/doc/classes/TestAbtQueueManager.html 2007-02-25 22:03:01 UTC (rev 295) +++ src/trunk/doc/classes/TestAbtQueueManager.html 2007-02-25 22:04:14 UTC (rev 296) @@ -165,7 +165,7 @@ <pre> <span class="ruby-comment cmt"># File TestAbtQueueManager.rb, line 45</span> 45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testAddPackageToQueue</span> -46: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@queue</span>.<span class="ruby-identifier">addPackageToQueue</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"install"</span> ), <span class="ruby-value str">"testQueueManager()"</span> ) +46: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@queue</span>.<span class="ruby-identifier">addPackageToQueue</span>( <span class="ruby-value str">"ipc"</span>, <span class="ruby-value str">"install"</span> ), <span class="ruby-value str">"testQueueManager()"</span> ) 47: <span class="ruby-keyword kw">end</span> </pre> </div> Modified: src/trunk/doc/classes/TestAbtReportManager.html =================================================================== --- src/trunk/doc/classes/TestAbtReportManager.html 2007-02-25 22:03:01 UTC (rev 295) +++ src/trunk/doc/classes/TestAbtReportManager.html 2007-02-25 22:04:14 UTC (rev 296) @@ -175,10 +175,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show source</a> ]</p> <div id="M000059_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 128</span> -128: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testGenerateHTMLPackageListing</span> -129: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">generateHTMLPackageListing</span>(), <span class="ruby-value str">"testGenerateHTMLPackageListing()"</span> ) -130: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 127</span> +127: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testGenerateHTMLPackageListing</span> +128: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">generateHTMLPackageListing</span>(), <span class="ruby-value str">"testGenerateHTMLPackageListing()"</span> ) +129: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -197,10 +197,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show source</a> ]</p> <div id="M000056_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 103</span> -103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testSearchPackageDescriptions</span> -104: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">searchPackageDescriptions</span>( <span class="ruby-value str">"Special text"</span> ), <span class="ruby-value str">"testSearchPackageDescriptions()"</span> ) -105: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 102</span> +102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testSearchPackageDescriptions</span> +103: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">searchPackageDescriptions</span>( <span class="ruby-value str">"Special text"</span> ), <span class="ruby-value str">"testSearchPackageDescriptions()"</span> ) +104: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -218,10 +218,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show source</a> ]</p> <div id="M000055_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 96</span> -96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowFileOwner</span> -97: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showFileOwner</span>( <span class="ruby-value str">"fortuneFile"</span> ), <span class="ruby-value str">"testShowFileOwner()"</span> ) -98: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 95</span> +95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowFileOwner</span> +96: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showFileOwner</span>( <span class="ruby-value str">"ipcFile"</span> ), <span class="ruby-value str">"testShowFileOwner()"</span> ) +97: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -281,10 +281,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show source</a> ]</p> <div id="M000054_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 89</span> -89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowJournal</span> -90: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showJournal</span>( <span class="ruby-identifier">$JOURNAL</span> ), <span class="ruby-value str">"testShowJournal()"</span> ) -91: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 88</span> +88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowJournal</span> +89: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showJournal</span>( <span class="ruby-identifier">$JOURNAL</span> ), <span class="ruby-value str">"testShowJournal()"</span> ) +90: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -305,9 +305,8 @@ <pre> <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 74</span> 74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowPackageDependencies</span> -75: <span class="ruby-comment cmt">#assert( @report.showPackageDependencies( "fortune" ), "testShowPackageDependencies()" )</span> -76: <span class="ruby-identifier">assert</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">"testShowPackageDependencies()"</span> ) -77: <span class="ruby-keyword kw">end</span> +75: <span class="ruby-identifier">assert</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">"testShowPackageDependencies()"</span> ) +76: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -327,7 +326,7 @@ <pre> <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 44</span> 44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowPackageDetails</span> -45: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageDetails</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testShowPackageDetails()"</span> ) +45: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageDetails</span>( <span class="ruby-value str">"ipc"</span> ), <span class="ruby-value str">"testShowPackageDetails()"</span> ) 46: <span class="ruby-keyword kw">end</span> </pre> </div> @@ -348,9 +347,9 @@ <pre> <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 58</span> 58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowPackageLog</span> -59: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageLog</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"install"</span> ), <span class="ruby-value str">"testShowPackageLog()"</span> ) -60: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageLog</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"build"</span> ), <span class="ruby-value str">"testShowPackageLog()"</span> ) -61: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageLog</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"integrity"</span> ), <span class="ruby-value str">"testShowPackageLog()"</span> ) +59: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageLog</span>( <span class="ruby-value str">"ipc"</span>, <span class="ruby-value str">"install"</span> ), <span class="ruby-value str">"testShowPackageLog()"</span> ) +60: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageLog</span>( <span class="ruby-value str">"ipc"</span>, <span class="ruby-value str">"build"</span> ), <span class="ruby-value str">"testShowPackageLog()"</span> ) +61: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageLog</span>( <span class="ruby-value str">"ipc"</span>, <span class="ruby-value str">"integrity"</span> ), <span class="ruby-value str">"testShowPackageLog()"</span> ) 62: <span class="ruby-keyword kw">end</span> </pre> </div> @@ -369,14 +368,14 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show source</a> ]</p> <div id="M000057_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 110</span> -110: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowQueue</span> -111: <span class="ruby-keyword kw">if</span> ( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showQueue</span>( <span class="ruby-value str">"install"</span> ) ) -112: <span class="ruby-identifier">assert</span>(<span class="ruby-keyword kw">false</span>, <span class="ruby-value str">"testShowQueue()"</span>) -113: <span class="ruby-keyword kw">else</span> -114: <span class="ruby-identifier">assert</span>(<span class="ruby-keyword kw">true</span>, <span class="ruby-value str">"testShowQueue()"</span>) -115: <span class="ruby-keyword kw">end</span> -116: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 109</span> +109: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowQueue</span> +110: <span class="ruby-keyword kw">if</span> ( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showQueue</span>( <span class="ruby-value str">"install"</span> ) ) +111: <span class="ruby-identifier">assert</span>(<span class="ruby-keyword kw">false</span>, <span class="ruby-value str">"testShowQueue()"</span>) +112: <span class="ruby-keyword kw">else</span> +113: <span class="ruby-identifier">assert</span>(<span class="ruby-keyword kw">true</span>, <span class="ruby-value str">"testShowQueue()"</span>) +114: <span class="ruby-keyword kw">end</span> +115: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -394,10 +393,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show source</a> ]</p> <div id="M000053_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 82</span> -82: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowUntrackedFiles</span> -83: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showUntrackedFiles</span>(), <span class="ruby-value str">"testShowUntrackedFiles()"</span> ) -84: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 81</span> +81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowUntrackedFiles</span> +82: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showUntrackedFiles</span>(), <span class="ruby-value str">"testShowUntrackedFile... [truncated message content] |
From: <esc...@us...> - 2007-02-25 22:03:01
|
Revision: 295 http://svn.sourceforge.net/abtlinux/?rev=295&view=rev Author: eschabell Date: 2007-02-25 14:03:01 -0800 (Sun, 25 Feb 2007) Log Message: ----------- Refactored all unit tests to move to ipc package for testing as this is a configure, make, make install build that is more complete than the fortune package. Down to 31 tests failing! Modified Paths: -------------- src/trunk/TestAbtDownloadManager.rb src/trunk/TestAbtLogManager.rb src/trunk/TestAbtPackage.rb src/trunk/TestAbtPackageManager.rb src/trunk/TestAbtQueueManager.rb src/trunk/TestAbtReportManager.rb Modified: src/trunk/TestAbtDownloadManager.rb =================================================================== --- src/trunk/TestAbtDownloadManager.rb 2007-02-25 21:26:06 UTC (rev 294) +++ src/trunk/TestAbtDownloadManager.rb 2007-02-25 22:03:01 UTC (rev 295) @@ -5,7 +5,6 @@ require 'abtconfig' require 'AbtDownloadManager' require 'AbtLogManager' -#require 'packages/fortune' ## # TestAbtDownloadManager.rb @@ -44,7 +43,7 @@ # Test method for 'AbtDownloadManager.testRetrievePackageSource()' ## def testRetrievePackageSource() - assert( @download.retrievePackageSource( "fortune", "/tmp" ), "testRetrievePackageSource()" ) + assert( @download.retrievePackageSource( "ipc", "/tmp" ), "testRetrievePackageSource()" ) end ## @@ -74,6 +73,4 @@ def testUpdatePackageTree() assert( @download.updatePackageTree(), "testUpdatePackageTree()" ) end - - end Modified: src/trunk/TestAbtLogManager.rb =================================================================== --- src/trunk/TestAbtLogManager.rb 2007-02-25 21:26:06 UTC (rev 294) +++ src/trunk/TestAbtLogManager.rb 2007-02-25 22:03:01 UTC (rev 295) @@ -42,7 +42,7 @@ # Test method for 'AbtLogManager.testLogPackageIntegrity()' ## def testLogPackageIntegrity() - #assert( @log.logPackageIntegrity( "fortune" ), "testLogPackageIntegrity()" ) + #assert( @log.logPackageIntegrity( "ipc" ), "testLogPackageIntegrity()" ) assert( false, "testLogPackageIntegrity()" ) end @@ -50,21 +50,21 @@ # Test method for 'AbtLogManager.testLogPackageInstall()' ## def testLogPackageInstall() - assert( @log.logPackageInstall( "fortune" ), "testLogPackageInstall()" ) + assert( @log.logPackageInstall( "ipc" ), "testLogPackageInstall()" ) end ## # Test method for 'AbtLogManager.testLogPackageBuild()' ## def testLogPackageBuild() - assert( @log.logPackageBuild( "fortune" ), "testLogPackageBuild()" ) + assert( @log.logPackageBuild( "ipc" ), "testLogPackageBuild()" ) end ## # Test method for 'AbtLogManager.testCachePackage()' ## def testCachePackage() - assert( @log.cachePackage( "fortune" ), "testCachePackage()" ) + assert( @log.cachePackage( "ipc" ), "testCachePackage()" ) end ## Modified: src/trunk/TestAbtPackage.rb =================================================================== --- src/trunk/TestAbtPackage.rb 2007-02-25 21:26:06 UTC (rev 294) +++ src/trunk/TestAbtPackage.rb 2007-02-25 22:03:01 UTC (rev 295) @@ -37,7 +37,7 @@ $versionTest = "1.4" $srcDirTest = "#{$nameTest.downcase}-#{$versionTest}" - $data = { + $dataTest = { 'name' => $nameTest, 'execName' => $nameTest.downcase, 'version' => $versionTest, @@ -49,55 +49,55 @@ # setup method for testing AbtPackage. ## def setup - @sw = Ipc.new + @ipc = Ipc.new end ## # Test method for 'AbtPackage.testDetails()' ## def testDetails - assert_equal( $data['name'], @sw.details['Package name'], "testDetails()" ) - assert_equal( $data['execName'], @sw.details['Executable'], "testDetails()" ) - assert_equal( $data['version'], @sw.details['Version'], "testDetails()" ) - assert_equal( $data['srcDir'], @sw.details['Source location'], "testDetails()" ) - assert_equal( $data['homepage'], @sw.details['Homepage'], "testDetails()" ) + assert_equal( $dataTest['name'], @ipc.details['Package name'], "testDetails()" ) + assert_equal( $dataTest['execName'], @ipc.details['Executable'], "testDetails()" ) + assert_equal( $dataTest['version'], @ipc.details['Version'], "testDetails()" ) + assert_equal( $dataTest['srcDir'], @ipc.details['Source location'], "testDetails()" ) + assert_equal( $dataTest['homepage'], @ipc.details['Homepage'], "testDetails()" ) end ## # Test method for 'AbtPackage.testPre()' ## def testPre - assert( @sw.pre(), "testPre()" ) + assert( @ipc.pre(), "testPre()" ) end ## # Test method for 'AbtPackage.testConfigure()' ## def testConfigure - if ( !@sw.pre() ) + if ( !@ipc.pre() ) assert_equals( true, false, "testConfigure()" ) end - assert( @sw.configure(), "testConfigure()" ) + assert( @ipc.configure(), "testConfigure()" ) end ## # Test method for 'AbtPackage.testBuild()' ## def testBuild - if ( !@sw.pre() ) + if ( !@ipc.pre() ) assert_equals( true, false, "testConfigure()" ) end - if ( !@sw.configure() ) + if ( !@ipc.configure() ) assert_equals( true, false, "testConfigure()" ) end - assert( @sw.build(), "testBuild()" ) + assert( @ipc.build(), "testBuild()" ) end ## # Test method for 'AbtPackage.testPreinstall()' ## def testPreinstall - assert( @sw.preinstall(), "testPreinstall()" ) + assert( @ipc.preinstall(), "testPreinstall()" ) end ## @@ -111,7 +111,7 @@ # Test method for 'AbtPackage.testPost()' ## def testPost - assert( @sw.post(), "testPost()" ) + assert( @ipc.post(), "testPost()" ) end end Modified: src/trunk/TestAbtPackageManager.rb =================================================================== --- src/trunk/TestAbtPackageManager.rb 2007-02-25 21:26:06 UTC (rev 294) +++ src/trunk/TestAbtPackageManager.rb 2007-02-25 22:03:01 UTC (rev 295) @@ -41,35 +41,35 @@ # Test method for 'AbtPackageManager.testInstallPackage()' ## def testInstallPackage - assert( @pkgMgr.installPackage( "fortune" ), "testInstallPackage()" ) + assert( @pkgMgr.installPackage( "ipc" ), "testInstallPackage()" ) end ## # Test method for 'AbtPackageManager.testReinstallPackage()' ## def testReinstallPackage - assert( @pkgMgr.reinstallPackage( "fortune" ), "testReinstallPackage()" ) + assert( @pkgMgr.reinstallPackage( "ipc" ), "testReinstallPackage()" ) end ## # Test method for 'AbtPackageManager.testRemovePackage()' ## def testRemovePackage - assert( @pkgMgr.removePackage( "fortune" ), "testRemovePackage()" ) + assert( @pkgMgr.removePackage( "ipc" ), "testRemovePackage()" ) end ## # Test method for 'AbtPackageManager.testDowngradePackage()' ## def testDowngradePackage - assert( @pkgMgr.downgradePackage( "fortune", "1.2" ), "testDowngradePackage()" ) + assert( @pkgMgr.downgradePackage( "ipc", "1.2" ), "testDowngradePackage()" ) end ## # Test method for 'AbtPackageManager.testFreezePackage()' ## def testFreezePackage - assert( @pkgMgr.freezePackage( "fortune" ), "testFreezePackage()" ) + assert( @pkgMgr.freezePackage( "ipc" ), "testFreezePackage()" ) end end Modified: src/trunk/TestAbtQueueManager.rb =================================================================== --- src/trunk/TestAbtQueueManager.rb 2007-02-25 21:26:06 UTC (rev 294) +++ src/trunk/TestAbtQueueManager.rb 2007-02-25 22:03:01 UTC (rev 295) @@ -43,7 +43,7 @@ # Test method for 'AbtQueueManager.addPackageToQueue()' ## def testAddPackageToQueue - assert( @queue.addPackageToQueue( "fortune", "install" ), "testQueueManager()" ) + assert( @queue.addPackageToQueue( "ipc", "install" ), "testQueueManager()" ) end end Modified: src/trunk/TestAbtReportManager.rb =================================================================== --- src/trunk/TestAbtReportManager.rb 2007-02-25 21:26:06 UTC (rev 294) +++ src/trunk/TestAbtReportManager.rb 2007-02-25 22:03:01 UTC (rev 295) @@ -42,7 +42,7 @@ # Test method for 'AbtReportManager.testShowPackageDetails()' ## def testShowPackageDetails - assert( @report.showPackageDetails( "fortune" ), "testShowPackageDetails()" ) + assert( @report.showPackageDetails( "ipc" ), "testShowPackageDetails()" ) end ## @@ -56,9 +56,9 @@ # Test method for 'AbtReportManager.testShowPackageLog()' ## def testShowPackageLog - assert( @report.showPackageLog( "fortune", "install" ), "testShowPackageLog()" ) - assert( @report.showPackageLog( "fortune", "build" ), "testShowPackageLog()" ) - assert( @report.showPackageLog( "fortune", "integrity" ), "testShowPackageLog()" ) + assert( @report.showPackageLog( "ipc", "install" ), "testShowPackageLog()" ) + assert( @report.showPackageLog( "ipc", "build" ), "testShowPackageLog()" ) + assert( @report.showPackageLog( "ipc", "integrity" ), "testShowPackageLog()" ) end ## @@ -72,7 +72,6 @@ # Test method for 'AbtReportManager.testShowPackageDependencies()' ## def testShowPackageDependencies - #assert( @report.showPackageDependencies( "fortune" ), "testShowPackageDependencies()" ) assert( false, "testShowPackageDependencies()" ) end @@ -94,7 +93,7 @@ # Test method for 'AbtReportManager.testShowFileOwner()' ## def testShowFileOwner - assert( @report.showFileOwner( "fortuneFile" ), "testShowFileOwner()" ) + assert( @report.showFileOwner( "ipcFile" ), "testShowFileOwner()" ) end ## @@ -119,7 +118,7 @@ # Test method for 'AbtReportManager.testShowUpdates()' ## def testShowUpdates - assert( @report.showUpdates( "fortune" ), "testShowUpdates()" ) + assert( @report.showUpdates( "ipc" ), "testShowUpdates()" ) end ## This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-25 21:26:06
|
Revision: 294 http://svn.sourceforge.net/abtlinux/?rev=294&view=rev Author: eschabell Date: 2007-02-25 13:26:06 -0800 (Sun, 25 Feb 2007) Log Message: ----------- Added needed required libs to get tests to run solo. Now they are only failing on the known problem of being unable to find the path to packages. Refactored tests to make use of valid Ipc.rb package. Passing pre, configure, build, preinsall and post tests. Modified Paths: -------------- src/trunk/TestAbtPackage.rb Modified: src/trunk/TestAbtPackage.rb =================================================================== --- src/trunk/TestAbtPackage.rb 2007-02-25 21:22:30 UTC (rev 293) +++ src/trunk/TestAbtPackage.rb 2007-02-25 21:26:06 UTC (rev 294) @@ -2,7 +2,10 @@ require 'test/unit/testcase' require 'test/unit/autorunner' +require 'abtconfig' require 'AbtPackage' +require 'AbtDownloadManager' +require 'packages/ipc' ## # TestAbtPackage.rb @@ -30,84 +33,71 @@ ## class TestAbtPackage < Test::Unit::TestCase - $name = "Fortune" - $version = "mod-9708" - $srcDir = "#{$name.downcase}-#{$version}" + $nameTest = "Ipc" + $versionTest = "1.4" + $srcDirTest = "#{$nameTest.downcase}-#{$versionTest}" $data = { - 'name' => "Fortune", - 'execName' => $name.downcase, - 'version' => $version, - 'srcDir' => $srcDir, - 'homepage' => "http://www.ibiblio.org/pub/Linux/games/amusements/#{$name.downcase}/", - 'srcUrl' => "http://www.ibiblio.org/pub/Linux/games/amusements/#{$srcDir}.tar.gz", - 'dependsOn' => "none", - 'reliesOn' => "none", - 'optionalDO' => "none", - 'optionalRO' => "none", - 'hashCheck' => "sha512:80c5b71d84eeb3092b2dfe483f0dad8ed42e2ef", - 'patches' => "http://patches.abtlinux.org/#{$srcDir}-patches-1.tar.gz", - 'patchesHashCheck' => "sha512:80c5b71d84eeb3092b2dfe483f0dad8ed42", - 'mirrorPath' => "http://mirror.abtlinux.org/#{$srcDir}.tar.gz", - 'license' => "GPL", - 'description' => "Prints a random, hopefully interesting, adage." + 'name' => $nameTest, + 'execName' => $nameTest.downcase, + 'version' => $versionTest, + 'srcDir' => $srcDirTest, + 'homepage' => "http://isotopatcalc.sourceforge.net/" } ## # setup method for testing AbtPackage. ## def setup - @fortune = AbtPackage.new( $data ) + @sw = Ipc.new end ## # Test method for 'AbtPackage.testDetails()' ## def testDetails - assert_equal( $data['name'], @fortune.details['Package name'], "testDetails()" ) - assert_equal( $data['execName'], @fortune.details['Executable'], "testDetails()" ) - assert_equal( $data['version'], @fortune.details['Version'], "testDetails()" ) - assert_equal( $data['srcDir'], @fortune.details['Source location'], "testDetails()" ) - assert_equal( $data['homepage'], @fortune.details['Homepage'], "testDetails()" ) - assert_equal( $data['srcUrl'], @fortune.details['Source uri'], "testDetails()" ) - assert_equal( $data['dependsOn'], @fortune.details['Depends On'], "testDetails()" ) - assert_equal( $data['reliesOn'], @fortune.details['Relies On'], "testDetails()" ) - assert_equal( $data['optionalDO'], @fortune.details['Optional DO'], "testDetails()" ) - assert_equal( $data['optionalRO'], @fortune.details['Optional RO'], "testDetails()" ) - assert_equal( $data['hashCheck'], @fortune.details['Security hash'], "testDetails()" ) - assert_equal( $data['patches'], @fortune.details['Patches'], "testDetails()" ) - assert_equal( $data['patchesHashCheck'], @fortune.details['Patches hash'], "testDetails()" ) - assert_equal( $data['mirrorPath'], @fortune.details['Mirror'], "testDetails()" ) - assert_equal( $data['license'], @fortune.details['License'], "testDetails()" ) - assert_equal( $data['description'], @fortune.details['Description'], "testDetails()" ) + assert_equal( $data['name'], @sw.details['Package name'], "testDetails()" ) + assert_equal( $data['execName'], @sw.details['Executable'], "testDetails()" ) + assert_equal( $data['version'], @sw.details['Version'], "testDetails()" ) + assert_equal( $data['srcDir'], @sw.details['Source location'], "testDetails()" ) + assert_equal( $data['homepage'], @sw.details['Homepage'], "testDetails()" ) end ## # Test method for 'AbtPackage.testPre()' ## def testPre - assert( @fortune.pre(), "testPre()" ) + assert( @sw.pre(), "testPre()" ) end ## # Test method for 'AbtPackage.testConfigure()' ## def testConfigure - assert_equal( true, true, "testConfigure()" ) + if ( !@sw.pre() ) + assert_equals( true, false, "testConfigure()" ) + end + assert( @sw.configure(), "testConfigure()" ) end ## # Test method for 'AbtPackage.testBuild()' ## def testBuild - assert_equal( false, true, "testBuild()" ) + if ( !@sw.pre() ) + assert_equals( true, false, "testConfigure()" ) + end + if ( !@sw.configure() ) + assert_equals( true, false, "testConfigure()" ) + end + assert( @sw.build(), "testBuild()" ) end ## # Test method for 'AbtPackage.testPreinstall()' ## def testPreinstall - assert_equal( false, true, "testPreinstall()" ) + assert( @sw.preinstall(), "testPreinstall()" ) end ## @@ -121,7 +111,7 @@ # Test method for 'AbtPackage.testPost()' ## def testPost - assert_equal( false, true, "testPost()" ) + assert( @sw.post(), "testPost()" ) end end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-25 21:22:30
|
Revision: 293 http://svn.sourceforge.net/abtlinux/?rev=293&view=rev Author: eschabell Date: 2007-02-25 13:22:30 -0800 (Sun, 25 Feb 2007) Log Message: ----------- Added todo for post action. Modified Paths: -------------- src/trunk/AbtPackage.rb Modified: src/trunk/AbtPackage.rb =================================================================== --- src/trunk/AbtPackage.rb 2007-02-25 20:58:56 UTC (rev 292) +++ src/trunk/AbtPackage.rb 2007-02-25 21:22:30 UTC (rev 293) @@ -285,6 +285,8 @@ # <b>RETURNS:</b> <i>boolean</i> - True if the completes sucessfully, otherwise false. ## def post + # TODO: implement me! + return true end ## This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-25 20:58:55
|
Revision: 292 http://svn.sourceforge.net/abtlinux/?rev=292&view=rev Author: eschabell Date: 2007-02-25 12:58:56 -0800 (Sun, 25 Feb 2007) Log Message: ----------- Some whitespace cleanup. Modified Paths: -------------- src/trunk/packages/fortune.rb Modified: src/trunk/packages/fortune.rb =================================================================== --- src/trunk/packages/fortune.rb 2007-02-25 20:31:08 UTC (rev 291) +++ src/trunk/packages/fortune.rb 2007-02-25 20:58:56 UTC (rev 292) @@ -33,25 +33,25 @@ private - $name = "Fortune" + $name = "Fortune" $version = "mod-9708" - $srcDir = "#{$name.downcase}-#{$version}" - $packageData = { - 'name' => $name, + $srcDir = "#{$name.downcase}-#{$version}" + $packageData = { + 'name' => $name, 'execName' => $name.downcase, - 'version' => $version, - 'srcDir' => $srcDir, + 'version' => $version, + 'srcDir' => $srcDir, 'homepage' => "http://www.ibiblio.org/pub/Linux/games/amusements/#{$name.downcase}/", - 'srcUrl' => "http://www.ibiblio.org/pub/Linux/games/amusements/#{$name.downcase}/#{$srcDir}.tar.gz", + 'srcUrl' => "http://www.ibiblio.org/pub/Linux/games/amusements/#{$name.downcase}/#{$srcDir}.tar.gz", 'dependsOn' => "", 'reliesOn' => "", 'optionalDO' => "", 'optionalRO' => "", 'hashCheck' => "sha512:80c5b71d84eeb3092b2dfe483f0dad8ed42e2efeaa1f8791c2", - 'patches' => "http://patches.abtlinux.org/#{$srcDir}-patches-1.tar.gz", - 'patchesHashCheck' => "", + 'patches' => "http://patches.abtlinux.org/#{$srcDir}-patches-1.tar.gz", + 'patchesHashCheck' => "", 'mirrorPath' => "http://mirror.abtlinux.org/#{$srcDir}.tar.gz", - 'license' => "GPL", + 'license' => "GPL", 'description' => "Prints a random, hopefully interesting, adage." } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-25 20:31:09
|
Revision: 291 http://svn.sourceforge.net/abtlinux/?rev=291&view=rev Author: eschabell Date: 2007-02-25 12:31:08 -0800 (Sun, 25 Feb 2007) Log Message: ----------- Moved the todo's for create user/group to preinstall. Updated test to use pre method, now passing another test! Modified Paths: -------------- src/trunk/AbtPackage.rb src/trunk/TestAbtPackage.rb Modified: src/trunk/AbtPackage.rb =================================================================== --- src/trunk/AbtPackage.rb 2007-02-25 13:30:20 UTC (rev 290) +++ src/trunk/AbtPackage.rb 2007-02-25 20:31:08 UTC (rev 291) @@ -210,9 +210,7 @@ if ( !self.unpackSources ) return false end - - # TODO: create_group? - # TODO: create_user? + # TODO: retrieve patches? # TODO: apply patches? @@ -268,6 +266,9 @@ # <b>RETURNS:</b> <i>boolean</i> - True if the completes sucessfully, otherwise false. ## def preinstall + # TODO: create_group? + # TODO: create_user? + return true; end ## Modified: src/trunk/TestAbtPackage.rb =================================================================== --- src/trunk/TestAbtPackage.rb 2007-02-25 13:30:20 UTC (rev 290) +++ src/trunk/TestAbtPackage.rb 2007-02-25 20:31:08 UTC (rev 291) @@ -86,7 +86,7 @@ # Test method for 'AbtPackage.testPre()' ## def testPre - assert_equal( false, true, "testPre()" ) + assert( @fortune.pre(), "testPre()" ) end ## This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-25 13:30:19
|
Revision: 290 http://svn.sourceforge.net/abtlinux/?rev=290&view=rev Author: eschabell Date: 2007-02-25 05:30:20 -0800 (Sun, 25 Feb 2007) Log Message: ----------- Regenerated api docs. Modified Paths: -------------- src/trunk/doc/classes/AbtDepEngine.html src/trunk/doc/classes/AbtDownloadManager.html src/trunk/doc/classes/AbtLogManager.html src/trunk/doc/classes/AbtPackage.html src/trunk/doc/classes/AbtPackageManager.html src/trunk/doc/classes/AbtQueueManager.html src/trunk/doc/classes/AbtReportManager.html src/trunk/doc/classes/AbtSystemManager.html src/trunk/doc/classes/AbtUsage.html src/trunk/doc/classes/TestAbtDepEngine.html src/trunk/doc/classes/TestAbtDownloadManager.html src/trunk/doc/classes/TestAbtLogManager.html src/trunk/doc/classes/TestAbtPackage.html src/trunk/doc/classes/TestAbtPackageManager.html src/trunk/doc/classes/TestAbtQueueManager.html src/trunk/doc/classes/TestAbtReportManager.html src/trunk/doc/classes/TestAbtSystemManager.html src/trunk/doc/created.rid src/trunk/doc/dot/f_0.dot src/trunk/doc/dot/f_0.png src/trunk/doc/dot/f_1.dot src/trunk/doc/dot/f_1.png src/trunk/doc/dot/f_10.dot src/trunk/doc/dot/f_10.png src/trunk/doc/dot/f_11.dot src/trunk/doc/dot/f_11.png src/trunk/doc/dot/f_12.dot src/trunk/doc/dot/f_12.png src/trunk/doc/dot/f_13.dot src/trunk/doc/dot/f_13.png src/trunk/doc/dot/f_14.dot src/trunk/doc/dot/f_14.png src/trunk/doc/dot/f_15.dot src/trunk/doc/dot/f_15.png src/trunk/doc/dot/f_16.dot src/trunk/doc/dot/f_16.png src/trunk/doc/dot/f_2.dot src/trunk/doc/dot/f_2.png src/trunk/doc/dot/f_3.dot src/trunk/doc/dot/f_3.png src/trunk/doc/dot/f_4.dot src/trunk/doc/dot/f_4.png src/trunk/doc/dot/f_5.dot src/trunk/doc/dot/f_5.png src/trunk/doc/dot/f_6.dot src/trunk/doc/dot/f_6.png src/trunk/doc/dot/f_7.dot src/trunk/doc/dot/f_7.png src/trunk/doc/dot/f_8.dot src/trunk/doc/dot/f_8.png src/trunk/doc/dot/f_9.dot src/trunk/doc/dot/f_9.png src/trunk/doc/files/AbtDepEngine_rb.html src/trunk/doc/files/AbtDownloadManager_rb.html src/trunk/doc/files/AbtLogManager_rb.html src/trunk/doc/files/AbtPackageManager_rb.html src/trunk/doc/files/AbtPackage_rb.html src/trunk/doc/files/AbtQueueManager_rb.html src/trunk/doc/files/AbtReportManager_rb.html src/trunk/doc/files/AbtSystemManager_rb.html src/trunk/doc/files/AbtUsage_rb.html src/trunk/doc/files/TestAbtDepEngine_rb.html src/trunk/doc/files/TestAbtDownloadManager_rb.html src/trunk/doc/files/TestAbtLogManager_rb.html src/trunk/doc/files/TestAbtPackageManager_rb.html src/trunk/doc/files/TestAbtPackage_rb.html src/trunk/doc/files/TestAbtQueueManager_rb.html src/trunk/doc/files/TestAbtReportManager_rb.html src/trunk/doc/files/TestAbtSystemManager_rb.html Modified: src/trunk/doc/classes/AbtDepEngine.html =================================================================== --- src/trunk/doc/classes/AbtDepEngine.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/AbtDepEngine.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,9 +76,9 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,50,128,98" href="AbtDepEngine.html" alt="AbtDepEngine"> + <area shape="rect" coords="27,50,136,98" href="AbtDepEngine.html" alt="AbtDepEngine" /> </map> -<img src="../dot/f_0.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_0.png" usemap="#map" border="0" alt="dot/f_0.png"> </td></tr></table> <div class="description"><p> @@ -86,7 +86,7 @@ </p> <p> <a href="AbtDepEngine.html">AbtDepEngine</a> class handles all dependency -aspects of the AbTLinux system. It is part of a sub-project with it’s +aspects of the AbTLinux system. It is part of a sub-project with it‘s own requirements document. </p> <p> Modified: src/trunk/doc/classes/AbtDownloadManager.html =================================================================== --- src/trunk/doc/classes/AbtDownloadManager.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/AbtDownloadManager.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,9 +76,9 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,50,163,98" href="AbtDownloadManager.html" alt="AbtDownloadManager"> + <area shape="rect" coords="27,50,176,98" href="AbtDownloadManager.html" alt="AbtDownloadManager" /> </map> -<img src="../dot/f_1.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_1.png" usemap="#map" border="0" alt="dot/f_1.png"> </td></tr></table> <div class="description"><p> Modified: src/trunk/doc/classes/AbtLogManager.html =================================================================== --- src/trunk/doc/classes/AbtLogManager.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/AbtLogManager.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,9 +76,9 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,50,133,98" href="AbtLogManager.html" alt="AbtLogManager"> + <area shape="rect" coords="27,50,144,98" href="AbtLogManager.html" alt="AbtLogManager" /> </map> -<img src="../dot/f_2.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_2.png" usemap="#map" border="0" alt="dot/f_2.png"> </td></tr></table> <div class="description"><p> Modified: src/trunk/doc/classes/AbtPackage.html =================================================================== --- src/trunk/doc/classes/AbtPackage.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/AbtPackage.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,9 +76,9 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,50,115,98" href="AbtPackage.html" alt="AbtPackage"> + <area shape="rect" coords="27,50,120,98" href="AbtPackage.html" alt="AbtPackage" /> </map> -<img src="../dot/f_3.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_3.png" usemap="#map" border="0" alt="dot/f_3.png"> </td></tr></table> <div class="description"><p> @@ -90,7 +90,8 @@ inheriting from this class (class Fortune < <a href="AbtPackage.html">AbtPackage</a>) one picks up all supported standard functions for the abt <a href="AbtPackage.html">AbtPackage</a> manager to -make use of the new <a href="AbtPackage.html">AbtPackage</a>. +make use of the <a href="AbtPackage.html#M000024">new</a> <a +href="AbtPackage.html">AbtPackage</a>. </p> <p> Created by Eric D. Schabell <er...@ab...> Copyright 2006, GPL. @@ -107,8 +108,8 @@ <p> AbTLinux is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -details. +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more <a +href="AbtPackage.html#M000025">details</a>. </p> <p> You should have received a copy of the GNU General Public License along @@ -309,7 +310,7 @@ <div class="description"> <p> Constructor for an <a href="AbtPackage.html">AbtPackage</a>, requires all -the packge details. +the packge <a href="AbtPackage.html#M000025">details</a>. </p> <p> <b>PARAM</b> <em>Hash</em> - hash containing all package data. @@ -385,12 +386,13 @@ </div> <div class="description"> <p> -Here we manage the ./configure step (or equivalent). We need to give -./configure (or autogen.sh, or whatever) the correct options so files are -to be placed later in the right directories, so doc files and man pages are -all in the same common location, etc. Don‘t forget too that -it’s here where we interact with the user in case there are optionnal -dependencies. +Here we manage the ./<a href="AbtPackage.html#M000027">configure</a> step +(or equivalent). We need to give ./<a +href="AbtPackage.html#M000027">configure</a> (or autogen.sh, or whatever) +the correct options so files are to be placed later in the right +directories, so doc files and man pages are all in the same common +location, etc. Don‘t forget too that it‘s here where we +interact with the user in case there are optionnal dependencies. </p> <p> <b>RETURNS:</b> <em>boolean</em> - True if the completes sucessfully, @@ -561,8 +563,8 @@ <div class="description"> <p> Any actions needed before the installation can occur will happen here, such -as creating new user accounts, dealing with existing configuration files, -etc. +as creating <a href="AbtPackage.html#M000024">new</a> user accounts, +dealing with existing configuration files, etc. </p> <p> <b>RETURNS:</b> <em>boolean</em> - True if the completes sucessfully, @@ -586,7 +588,8 @@ </div> <div class="description"> <p> -Cleans up this packages source build directory. +Cleans up this packages source <a href="AbtPackage.html#M000028">build</a> +directory. </p> <p> <b>RETURNS:</b> <em>boolean</em> - True if the completes sucessfully, @@ -624,7 +627,8 @@ </div> <div class="description"> <p> -Unpacks this packages source file into the standard build location. +Unpacks this packages source file into the standard <a +href="AbtPackage.html#M000028">build</a> location. </p> <p> <b>RETURNS:</b> <em>boolean</em> - True if the completes sucessfully, @@ -637,9 +641,9 @@ <pre> <span class="ruby-comment cmt"># File AbtPackage.rb, line 39</span> 39: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unpackSources</span> -40: <span class="ruby-identifier">srcFile</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-ivar">@srcUrl</span> ) +40: <span class="ruby-identifier">srcFile</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-ivar">@srcUrl</span> ) 41: <span class="ruby-identifier">sourcesToUnpack</span> = <span class="ruby-node">"#{$SOURCES_REPOSITORY}/#{srcFile}"</span> -42: <span class="ruby-identifier">unpackTool</span> = <span class="ruby-value str">""</span> +42: <span class="ruby-identifier">unpackTool</span> = <span class="ruby-value str">""</span> 43: 44: <span class="ruby-comment cmt"># check for existing file in source repo.</span> 45: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">sourcesToUnpack</span> ) ) Modified: src/trunk/doc/classes/AbtPackageManager.html =================================================================== --- src/trunk/doc/classes/AbtPackageManager.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/AbtPackageManager.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,9 +76,9 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,50,157,98" href="AbtPackageManager.html" alt="AbtPackageManager"> + <area shape="rect" coords="27,50,168,98" href="AbtPackageManager.html" alt="AbtPackageManager" /> </map> -<img src="../dot/f_4.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_4.png" usemap="#map" border="0" alt="dot/f_4.png"> </td></tr></table> <div class="description"><p> Modified: src/trunk/doc/classes/AbtQueueManager.html =================================================================== --- src/trunk/doc/classes/AbtQueueManager.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/AbtQueueManager.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,9 +76,9 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,50,147,98" href="AbtQueueManager.html" alt="AbtQueueManager"> + <area shape="rect" coords="27,50,160,98" href="AbtQueueManager.html" alt="AbtQueueManager" /> </map> -<img src="../dot/f_5.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_5.png" usemap="#map" border="0" alt="dot/f_5.png"> </td></tr></table> <div class="description"><p> @@ -178,13 +178,13 @@ <span class="ruby-comment cmt"># File AbtQueueManager.rb, line 54</span> 54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">addPackageToQueue</span>( <span class="ruby-identifier">package</span>, <span class="ruby-identifier">queue</span> ) 55: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">AbtLogManager</span>.<span class="ruby-identifier">new</span> -56: -57: <span class="ruby-comment cmt"># want to name install queue differently from log files.</span> -58: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">queue</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'install'</span> ) -59: <span class="ruby-identifier">queueFile</span> = <span class="ruby-node">"#{$ABT_LOGS}/#{queue}.queue"</span> -60: <span class="ruby-keyword kw">else</span> +56: +57: <span class="ruby-comment cmt"># want to name install queue differently from log files.</span> +58: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">queue</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'install'</span> ) +59: <span class="ruby-identifier">queueFile</span> = <span class="ruby-node">"#{$ABT_LOGS}/#{queue}.queue"</span> +60: <span class="ruby-keyword kw">else</span> 61: <span class="ruby-identifier">queueFile</span> = <span class="ruby-node">"#{$ABT_LOGS}/#{queue}.log"</span> -62: <span class="ruby-keyword kw">end</span> +62: <span class="ruby-keyword kw">end</span> 63: 64: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">log</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">queueFile</span>, <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">WRONLY</span><span class="ruby-operator">|</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">APPEND</span><span class="ruby-operator">|</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">CREAT</span>, <span class="ruby-value">0644</span> ) ) 65: <span class="ruby-comment cmt"># pickup queue contents to ensure no duplicates.</span> Modified: src/trunk/doc/classes/AbtReportManager.html =================================================================== --- src/trunk/doc/classes/AbtReportManager.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/AbtReportManager.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,9 +76,9 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,50,147,98" href="AbtReportManager.html" alt="AbtReportManager"> + <area shape="rect" coords="27,50,160,98" href="AbtReportManager.html" alt="AbtReportManager" /> </map> -<img src="../dot/f_6.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_6.png" usemap="#map" border="0" alt="dot/f_6.png"> </td></tr></table> <div class="description"><p> Modified: src/trunk/doc/classes/AbtSystemManager.html =================================================================== --- src/trunk/doc/classes/AbtSystemManager.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/AbtSystemManager.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,9 +76,9 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,50,152,98" href="AbtSystemManager.html" alt="AbtSystemManager"> + <area shape="rect" coords="27,50,163,98" href="AbtSystemManager.html" alt="AbtSystemManager" /> </map> -<img src="../dot/f_7.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_7.png" usemap="#map" border="0" alt="dot/f_7.png"> </td></tr></table> <div class="description"><p> Modified: src/trunk/doc/classes/AbtUsage.html =================================================================== --- src/trunk/doc/classes/AbtUsage.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/AbtUsage.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,16 +76,16 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,50,107,98" href="AbtUsage.html" alt="AbtUsage"> + <area shape="rect" coords="27,50,109,98" href="AbtUsage.html" alt="AbtUsage" /> </map> -<img src="../dot/f_8.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_8.png" usemap="#map" border="0" alt="dot/f_8.png"> </td></tr></table> <div class="description"><p> AbtUsage.rb </p> <p> -The usage reporting class for AbTLinux. +The <a href="AbtUsage.html#M000033">usage</a> reporting class for AbTLinux. </p> <p> Created by Eric D. Schabell <er...@ab...> Copyright November @@ -138,7 +138,8 @@ </div> <div class="description"> <p> -The main usage method, displays either a given section or all sections. +The main <a href="AbtUsage.html#M000033">usage</a> method, displays either +a given section or all sections. </p> <p> <b>PARAM</b> <em>String</em> - the name of the help section to be shown. @@ -194,7 +195,8 @@ </div> <div class="description"> <p> -The usage information for the download commands. +The <a href="AbtUsage.html#M000033">usage</a> information for the download +commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -221,7 +223,8 @@ </div> <div class="description"> <p> -The usage information for the fix commands. +The <a href="AbtUsage.html#M000033">usage</a> information for the fix +commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -252,7 +255,8 @@ </div> <div class="description"> <p> -The usage information for the generation commands. +The <a href="AbtUsage.html#M000033">usage</a> information for the +generation commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -279,7 +283,8 @@ </div> <div class="description"> <p> -The usage information for the maintenance commands. +The <a href="AbtUsage.html#M000033">usage</a> information for the +maintenance commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -308,7 +313,8 @@ </div> <div class="description"> <p> -The usage information for the packages commands. +The <a href="AbtUsage.html#M000033">usage</a> information for the packages +commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -337,7 +343,8 @@ </div> <div class="description"> <p> -The usage information for the query commands. +The <a href="AbtUsage.html#M000033">usage</a> information for the query +commands. </p> <p> <b>RETURN</b> <em>void</em> Modified: src/trunk/doc/classes/TestAbtDepEngine.html =================================================================== --- src/trunk/doc/classes/TestAbtDepEngine.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/TestAbtDepEngine.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,10 +76,10 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,102,147,150" href="TestAbtDepEngine.html" alt="TestAbtDepEngine"> - <area shape="RECT" coords="23,6,151,54" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase"> + <area shape="rect" coords="27,124,157,172" href="TestAbtDepEngine.html" alt="TestAbtDepEngine" /> + <area shape="rect" coords="21,5,163,53" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase" /> </map> -<img src="../dot/f_9.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_9.png" usemap="#map" border="0" alt="dot/f_9.png"> </td></tr></table> <div class="description"><p> @@ -133,7 +133,8 @@ </div> <div class="description"> <p> -setup method for testing <a href="AbtDepEngine.html">AbtDepEngine</a>. +<a href="TestAbtDepEngine.html#M000095">setup</a> method for testing <a +href="AbtDepEngine.html">AbtDepEngine</a>. </p> </div> <div class="sourcecode"> Modified: src/trunk/doc/classes/TestAbtDownloadManager.html =================================================================== --- src/trunk/doc/classes/TestAbtDownloadManager.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/TestAbtDownloadManager.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,10 +76,10 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,102,181,150" href="TestAbtDownloadManager.html" alt="TestAbtDownloadManager"> - <area shape="RECT" coords="40,6,168,54" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase"> + <area shape="rect" coords="27,124,200,172" href="TestAbtDownloadManager.html" alt="TestAbtDownloadManager" /> + <area shape="rect" coords="43,5,184,53" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase" /> </map> -<img src="../dot/f_10.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_10.png" usemap="#map" border="0" alt="dot/f_10.png"> </td></tr></table> <div class="description"><p> @@ -138,18 +138,18 @@ </div> <div class="description"> <p> -setup method for testing <a -href="AbtDownloadManager.html">AbtDownloadManager</a>. +<a href="TestAbtDownloadManager.html#M000078">setup</a> method for testing +<a href="AbtDownloadManager.html">AbtDownloadManager</a>. </p> </div> <div class="sourcecode"> <p class="source-link">[ <a href="javascript:toggleSource('M000078_source')" id="l_M000078_source">show source</a> ]</p> <div id="M000078_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 36</span> -36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> -37: <span class="ruby-ivar">@download</span> = <span class="ruby-constant">AbtDownloadManager</span>.<span class="ruby-identifier">new</span>() -38: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 39</span> +39: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> +40: <span class="ruby-ivar">@download</span> = <span class="ruby-constant">AbtDownloadManager</span>.<span class="ruby-identifier">new</span>() +41: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -167,10 +167,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000081_source')" id="l_M000081_source">show source</a> ]</p> <div id="M000081_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 57</span> -57: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrieveNewsFeed</span>() -58: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrieveNewsFeed</span>( <span class="ruby-identifier">$ABTNEWS</span> ), <span class="ruby-value str">"testRetrieveNewsFeed()"</span> ) -59: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 60</span> +60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrieveNewsFeed</span>() +61: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrieveNewsFeed</span>( <span class="ruby-identifier">$ABTNEWS</span> ), <span class="ruby-value str">"testRetrieveNewsFeed()"</span> ) +62: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -189,10 +189,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000079_source')" id="l_M000079_source">show source</a> ]</p> <div id="M000079_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 43</span> -43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrievePackageSource</span>() -44: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrievePackageSource</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"/tmp"</span> ), <span class="ruby-value str">"testRetrievePackageSource()"</span> ) -45: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 46</span> +46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrievePackageSource</span>() +47: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrievePackageSource</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"/tmp"</span> ), <span class="ruby-value str">"testRetrievePackageSource()"</span> ) +48: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -210,10 +210,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000080_source')" id="l_M000080_source">show source</a> ]</p> <div id="M000080_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 50</span> -50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrievePackageTree</span>() -51: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrievePackageTree</span>( <span class="ruby-value str">"dummy"</span> ), <span class="ruby-value str">"testRetrievePackageTree()"</span> ) -52: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 53</span> +53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrievePackageTree</span>() +54: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrievePackageTree</span>( <span class="ruby-value str">"dummy"</span> ), <span class="ruby-value str">"testRetrievePackageTree()"</span> ) +55: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -231,10 +231,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000082_source')" id="l_M000082_source">show source</a> ]</p> <div id="M000082_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 64</span> -64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testUpdatePackage</span>() -65: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">updatePackage</span>(), <span class="ruby-value str">"testUpdatePackage()"</span> ) -66: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 67</span> +67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testUpdatePackage</span>() +68: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">updatePackage</span>(), <span class="ruby-value str">"testUpdatePackage()"</span> ) +69: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -252,10 +252,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000083_source')" id="l_M000083_source">show source</a> ]</p> <div id="M000083_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 71</span> -71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testUpdatePackageTree</span>() -72: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">updatePackageTree</span>(), <span class="ruby-value str">"testUpdatePackageTree()"</span> ) -73: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 74</span> +74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testUpdatePackageTree</span>() +75: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">updatePackageTree</span>(), <span class="ruby-value str">"testUpdatePackageTree()"</span> ) +76: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/TestAbtLogManager.html =================================================================== --- src/trunk/doc/classes/TestAbtLogManager.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/TestAbtLogManager.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,10 +76,10 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,102,152,150" href="TestAbtLogManager.html" alt="TestAbtLogManager"> - <area shape="RECT" coords="26,6,154,54" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase"> + <area shape="rect" coords="27,124,165,172" href="TestAbtLogManager.html" alt="TestAbtLogManager" /> + <area shape="rect" coords="25,5,167,53" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase" /> </map> -<img src="../dot/f_11.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_11.png" usemap="#map" border="0" alt="dot/f_11.png"> </td></tr></table> <div class="description"><p> @@ -137,17 +137,18 @@ </div> <div class="description"> <p> -setup method for testing <a href="AbtLogManager.html">AbtLogManager</a>. +<a href="TestAbtLogManager.html#M000097">setup</a> method for testing <a +href="AbtLogManager.html">AbtLogManager</a>. </p> </div> <div class="sourcecode"> <p class="source-link">[ <a href="javascript:toggleSource('M000097_source')" id="l_M000097_source">show source</a> ]</p> <div id="M000097_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 36</span> -36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> -37: <span class="ruby-ivar">@log</span> = <span class="ruby-constant">AbtLogManager</span>.<span class="ruby-identifier">new</span>() -38: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 37</span> +37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> +38: <span class="ruby-ivar">@log</span> = <span class="ruby-constant">AbtLogManager</span>.<span class="ruby-identifier">new</span>() +39: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -165,10 +166,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">show source</a> ]</p> <div id="M000101_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 65</span> -65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testCachePackage</span>() -66: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">cachePackage</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testCachePackage()"</span> ) -67: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 66</span> +66: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testCachePackage</span>() +67: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">cachePackage</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testCachePackage()"</span> ) +68: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -186,10 +187,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show source</a> ]</p> <div id="M000100_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 58</span> -58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testLogPackageBuild</span>() -59: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">logPackageBuild</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testLogPackageBuild()"</span> ) -60: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 59</span> +59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testLogPackageBuild</span>() +60: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">logPackageBuild</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testLogPackageBuild()"</span> ) +61: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -207,10 +208,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">show source</a> ]</p> <div id="M000099_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 51</span> -51: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testLogPackageInstall</span>() -52: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">logPackageInstall</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testLogPackageInstall()"</span> ) -53: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 52</span> +52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testLogPackageInstall</span>() +53: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">logPackageInstall</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testLogPackageInstall()"</span> ) +54: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -228,11 +229,11 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">show source</a> ]</p> <div id="M000098_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 43</span> -43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testLogPackageIntegrity</span>() -44: <span class="ruby-comment cmt">#assert( @log.logPackageIntegrity( "fortune" ), "testLogPackageIntegrity()" )</span> -45: <span class="ruby-identifier">assert</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">"testLogPackageIntegrity()"</span> ) -46: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 44</span> +44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testLogPackageIntegrity</span>() +45: <span class="ruby-comment cmt">#assert( @log.logPackageIntegrity( "fortune" ), "testLogPackageIntegrity()" )</span> +46: <span class="ruby-identifier">assert</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">"testLogPackageIntegrity()"</span> ) +47: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -250,10 +251,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show source</a> ]</p> <div id="M000102_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 72</span> -72: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testLogToJournal</span>() -73: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-value str">"Test message from AbtTestSuite."</span> ), <span class="ruby-value str">"testLogToJournal()"</span> ) -74: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtLogManager.rb, line 73</span> +73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testLogToJournal</span>() +74: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-value str">"Test message from AbtTestSuite."</span> ), <span class="ruby-value str">"testLogToJournal()"</span> ) +75: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/TestAbtPackage.html =================================================================== --- src/trunk/doc/classes/TestAbtPackage.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/TestAbtPackage.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,10 +76,10 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,102,136,150" href="TestAbtPackage.html" alt="TestAbtPackage"> - <area shape="RECT" coords="18,6,146,54" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase"> + <area shape="rect" coords="27,124,144,172" href="TestAbtPackage.html" alt="TestAbtPackage" /> + <area shape="rect" coords="15,5,156,53" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase" /> </map> -<img src="../dot/f_12.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_12.png" usemap="#map" border="0" alt="dot/f_12.png"> </td></tr></table> <div class="description"><p> @@ -139,7 +139,8 @@ </div> <div class="description"> <p> -setup method for testing <a href="AbtPackage.html">AbtPackage</a>. +<a href="TestAbtPackage.html#M000087">setup</a> method for testing <a +href="AbtPackage.html">AbtPackage</a>. </p> </div> <div class="sourcecode"> Modified: src/trunk/doc/classes/TestAbtPackageManager.html =================================================================== --- src/trunk/doc/classes/TestAbtPackageManager.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/TestAbtPackageManager.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,10 +76,10 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,102,176,150" href="TestAbtPackageManager.html" alt="TestAbtPackageManager"> - <area shape="RECT" coords="38,6,166,54" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase"> + <area shape="rect" coords="27,124,192,172" href="TestAbtPackageManager.html" alt="TestAbtPackageManager" /> + <area shape="rect" coords="39,5,180,53" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase" /> </map> -<img src="../dot/f_13.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_13.png" usemap="#map" border="0" alt="dot/f_13.png"> </td></tr></table> <div class="description"><p> @@ -138,8 +138,8 @@ </div> <div class="description"> <p> -setup method for testing <a -href="AbtPackageManager.html">AbtPackageManager</a>. +<a href="TestAbtPackageManager.html#M000017">setup</a> method for testing +<a href="AbtPackageManager.html">AbtPackageManager</a>. </p> </div> <div class="sourcecode"> Modified: src/trunk/doc/classes/TestAbtQueueManager.html =================================================================== --- src/trunk/doc/classes/TestAbtQueueManager.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/TestAbtQueueManager.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,10 +76,10 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,102,168,150" href="TestAbtQueueManager.html" alt="TestAbtQueueManager"> - <area shape="RECT" coords="34,6,162,54" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase"> + <area shape="rect" coords="27,124,181,172" href="TestAbtQueueManager.html" alt="TestAbtQueueManager" /> + <area shape="rect" coords="33,5,175,53" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase" /> </map> -<img src="../dot/f_14.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_14.png" usemap="#map" border="0" alt="dot/f_14.png"> </td></tr></table> <div class="description"><p> @@ -133,7 +133,7 @@ </div> <div class="description"> <p> -setup method for testing <a +<a href="TestAbtQueueManager.html#M000076">setup</a> method for testing <a href="AbtQueueManager.html">AbtQueueManager</a>. </p> </div> @@ -141,10 +141,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000076_source')" id="l_M000076_source">show source</a> ]</p> <div id="M000076_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtQueueManager.rb, line 36</span> -36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> -37: <span class="ruby-ivar">@queue</span> = <span class="ruby-constant">AbtQueueManager</span>.<span class="ruby-identifier">new</span>() -38: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtQueueManager.rb, line 38</span> +38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> +39: <span class="ruby-ivar">@queue</span> = <span class="ruby-constant">AbtQueueManager</span>.<span class="ruby-identifier">new</span>() +40: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -163,10 +163,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000077_source')" id="l_M000077_source">show source</a> ]</p> <div id="M000077_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtQueueManager.rb, line 43</span> -43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testAddPackageToQueue</span> -44: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@queue</span>.<span class="ruby-identifier">addPackageToQueue</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"install"</span> ), <span class="ruby-value str">"testQueueManager()"</span> ) -45: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtQueueManager.rb, line 45</span> +45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testAddPackageToQueue</span> +46: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@queue</span>.<span class="ruby-identifier">addPackageToQueue</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"install"</span> ), <span class="ruby-value str">"testQueueManager()"</span> ) +47: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/TestAbtReportManager.html =================================================================== --- src/trunk/doc/classes/TestAbtReportManager.html 2007-02-25 13:10:55 UTC (rev 289) +++ src/trunk/doc/classes/TestAbtReportManager.html 2007-02-25 13:30:20 UTC (rev 290) @@ -76,10 +76,10 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="27,102,168,150" href="TestAbtReportManager.html" alt="TestAbtReportManager"> - <area shape="RECT" coords="34,6,162,54" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase"> + <area shape="rect" coords="27,124,184,172" href="TestAbtReportManager.html" alt="TestAbtReportManager" /> + <area shape="rect" coords="35,5,176,53" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase" /> </map> -<img src="../dot/f_15.png" usemap="#map" border=0 alt="TopLevel"> +<img src="../dot/f_15.png" usemap="#map" border="0" alt="dot/f_15.png"> </td></tr></table> <div class="description"><p> @@ -145,7 +145,7 @@ </div> <div class="description"> <p> -setup method for testing <a +<a href="TestAbtReportManager.html#M000047">setup</a> method for testing <a href="AbtReportManager.html">AbtReportManager</a>. </p> </div> @@ -153,10 +153,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000047_source')" id="l_M000047_source">show source</a> ]</p> <div id="M000047_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 36</span> -36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> -37: <span class="ruby-ivar">@report</span> = <span class="ruby-constant">AbtReportManager</span>.<span class="ruby-identifier">new</span>() -38: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 37</span> +37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> +38: <span class="ruby-ivar">@report</span> = <span class="ruby-constant">AbtReportManager</span>.<span class="ruby-identifier">new</span>() +39: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -175,10 +175,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show source</a> ]</p> <div id="M000059_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 127</span> -127: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testGenerateHTMLPackageListing</span> -128: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">generateHTMLPackageListing</span>(), <span class="ruby-value str">"testGenerateHTMLPackageListing()"</span> ) -129: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 128</span> +128: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testGenerateHTMLPackageListing</span> +129: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">generateHTMLPackageListing</span>(), <span class="ruby-value str">"testGenerateHTMLPackageListing()"</span> ) +130: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -197,10 +197,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show source</a> ]</p> <div id="M000056_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 102</span> -102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testSearchPackageDescriptions</span> -103: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">searchPackageDescriptions</span>( <span class="ruby-value str">"Special text"</span> ), <span class="ruby-value str">"testSearchPackageDescriptions()"</span> ) -104: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 103</span> +103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testSearchPackageDescriptions</span> +104: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">searchPackageDescriptions</span>( <span class="ruby-value str">"Special text"</span> ), <span class="ruby-value str">"testSearchPackageDescriptions()"</span> ) +105: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -218,10 +218,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000055_source')" id="l_M000055_source">show source</a> ]</p> <div id="M000055_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 95</span> -95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowFileOwner</span> -96: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showFileOwner</span>( <span class="ruby-value str">"fortuneFile"</span> ), <span class="ruby-value str">"testShowFileOwner()"</span> ) -97: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 96</span> +96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowFileOwner</span> +97: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showFileOwner</span>( <span class="ruby-value str">"fortuneFile"</span> ), <span class="ruby-value str">"testShowFileOwner()"</span> ) +98: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -239,10 +239,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show source</a> ]</p> <div id="M000051_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 66</span> -66: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowFrozenPackages</span> -67: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showFrozenPackages</span>(), <span class="ruby-value str">"testShowFrozenPackages()"</span> ) -68: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 67</span> +67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowFrozenPackages</span> +68: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showFrozenPackages</span>(), <span class="ruby-value str">"testShowFrozenPackages()"</span> ) +69: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -260,10 +260,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000049_source')" id="l_M000049_source">show source</a> ]</p> <div id="M000049_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 50</span> -50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowInstalledPackages</span> -51: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showInstalledPackages</span>(), <span class="ruby-value str">"testShowInstalledPackages()"</span> ) -52: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 51</span> +51: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowInstalledPackages</span> +52: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showInstalledPackages</span>(), <span class="ruby-value str">"testShowInstalledPackages()"</span> ) +53: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -281,10 +281,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show source</a> ]</p> <div id="M000054_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 88</span> -88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowJournal</span> -89: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showJournal</span>( <span class="ruby-identifier">$JOURNAL</span> ), <span class="ruby-value str">"testShowJournal()"</span> ) -90: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 89</span> +89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowJournal</span> +90: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showJournal</span>( <span class="ruby-identifier">$JOURNAL</span> ), <span class="ruby-value str">"testShowJournal()"</span> ) +91: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -303,11 +303,11 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000052_source')" id="l_M000052_source">show source</a> ]</p> <div id="M000052_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 73</span> -73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowPackageDependencies</span> -74: <span class="ruby-comment cmt">#assert( @report.showPackageDependencies( "fortune" ), "testShowPackageDependencies()" )</span> -75: <span class="ruby-identifier">assert</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">"testShowPackageDependencies()"</span> ) -76: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 74</span> +74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowPackageDependencies</span> +75: <span class="ruby-comment cmt">#assert( @report.showPackageDependencies( "fortune" ), "testShowPackageDependencies()" )</span> +76: <span class="ruby-identifier">assert</span>( <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">"testShowPackageDependencies()"</span> ) +77: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -325,10 +325,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000048_source')" id="l_M000048_source">show source</a> ]</p> <div id="M000048_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 43</span> -43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowPackageDetails</span> -44: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageDetails</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testShowPackageDetails()"</span> ) -45: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 44</span> +44: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowPackageDetails</span> +45: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageDetails</span>( <span class="ruby-value str">"fortune"</span> ), <span class="ruby-value str">"testShowPackageDetails()"</span> ) +46: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -346,12 +346,12 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show source</a> ]</p> <div id="M000050_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 57</span> -57: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowPackageLog</span> -58: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageLog</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"install"</span> ), <span class="ruby-value str">"testShowPackageLog()"</span> ) -59: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageLog</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"build"</span> ), <span class="ruby-value str">"testShowPackageLog()"</span> ) -60: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageLog</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"integrity"</span> ), <span class="ruby-value str">"testShowPackageLog()"</span> ) -61: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 58</span> +58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowPackageLog</span> +59: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageLog</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"install"</span> ), <span class="ruby-value str">"testShowPackageLog()"</span> ) +60: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageLog</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"build"</span> ), <span class="ruby-value str">"testShowPackageLog()"</span> ) +61: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showPackageLog</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"integrity"</span> ), <span class="ruby-value str">"testShowPackageLog()"</span> ) +62: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -369,14 +369,14 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show source</a> ]</p> <div id="M000057_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File TestAbtReportManager.rb, line 109</span> -109: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testShowQueue</span> -110: <span class="ruby-keyword kw">if</span> ( <span class="ruby-ivar">@report</span>.<span class="ruby-identifier">showQueue</span>( <span class="ruby-value str">"install"</span> ) ) -111: ... [truncated message content] |
From: <esc...@us...> - 2007-02-25 13:10:55
|
Revision: 289 http://svn.sourceforge.net/abtlinux/?rev=289&view=rev Author: eschabell Date: 2007-02-25 05:10:55 -0800 (Sun, 25 Feb 2007) Log Message: ----------- Small fixes to get tests for AbtReportManger to run solo. Test for showPackageDetails fails also due to not including proper path to packages. This problems is known, I have no solution yet. Modified Paths: -------------- src/trunk/TestAbtReportManager.rb Modified: src/trunk/TestAbtReportManager.rb =================================================================== --- src/trunk/TestAbtReportManager.rb 2007-02-25 13:07:40 UTC (rev 288) +++ src/trunk/TestAbtReportManager.rb 2007-02-25 13:10:55 UTC (rev 289) @@ -1,7 +1,8 @@ -#!/usr/bin/ruby -wI./packages +#!/usr/bin/ruby -w require 'test/unit/testcase' require 'test/unit/autorunner' +require 'abtconfig' require 'AbtReportManager' ## This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-25 13:07:39
|
Revision: 288 http://svn.sourceforge.net/abtlinux/?rev=288&view=rev Author: eschabell Date: 2007-02-25 05:07:40 -0800 (Sun, 25 Feb 2007) Log Message: ----------- Small code cleanup. Modified Paths: -------------- src/trunk/AbtPackage.rb Modified: src/trunk/AbtPackage.rb =================================================================== --- src/trunk/AbtPackage.rb 2007-02-25 13:06:17 UTC (rev 287) +++ src/trunk/AbtPackage.rb 2007-02-25 13:07:40 UTC (rev 288) @@ -37,9 +37,9 @@ # <b>RETURNS:</b> <i>boolean</i> - True if the completes sucessfully, otherwise false. ## def unpackSources - srcFile = File.basename( @srcUrl ) + srcFile = File.basename( @srcUrl ) sourcesToUnpack = "#{$SOURCES_REPOSITORY}/#{srcFile}" - unpackTool = "" + unpackTool = "" # check for existing file in source repo. if ( !File.exist?( sourcesToUnpack ) ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-02-25 13:06:18
|
Revision: 287 http://svn.sourceforge.net/abtlinux/?rev=287&view=rev Author: eschabell Date: 2007-02-25 05:06:17 -0800 (Sun, 25 Feb 2007) Log Message: ----------- Small fixes to get tests for AbtQueueManager running solo. Modified Paths: -------------- src/trunk/AbtQueueManager.rb src/trunk/TestAbtQueueManager.rb Modified: src/trunk/AbtQueueManager.rb =================================================================== --- src/trunk/AbtQueueManager.rb 2007-02-25 12:45:43 UTC (rev 286) +++ src/trunk/AbtQueueManager.rb 2007-02-25 13:06:17 UTC (rev 287) @@ -53,13 +53,13 @@ ## def addPackageToQueue( package, queue ) logger = AbtLogManager.new - - # want to name install queue differently from log files. - if ( queue == 'install' ) - queueFile = "#{$ABT_LOGS}/#{queue}.queue" - else + + # want to name install queue differently from log files. + if ( queue == 'install' ) + queueFile = "#{$ABT_LOGS}/#{queue}.queue" + else queueFile = "#{$ABT_LOGS}/#{queue}.log" - end + end if ( log = File.new( queueFile, File::WRONLY|File::APPEND|File::CREAT, 0644 ) ) # pickup queue contents to ensure no duplicates. Modified: src/trunk/TestAbtQueueManager.rb =================================================================== --- src/trunk/TestAbtQueueManager.rb 2007-02-25 12:45:43 UTC (rev 286) +++ src/trunk/TestAbtQueueManager.rb 2007-02-25 13:06:17 UTC (rev 287) @@ -2,7 +2,9 @@ require 'test/unit/testcase' require 'test/unit/autorunner' +require 'abtconfig' require 'AbtQueueManager' +require 'AbtLogManager' ## # TestAbtQueueManager.rb This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |