abtlinux-svn Mailing List for ABout Time Linux (AbTLinux) (Page 6)
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-09-18 20:23:14
|
Revision: 430 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=430&view=rev Author: eschabell Date: 2007-09-18 13:23:12 -0700 (Tue, 18 Sep 2007) Log Message: ----------- Regenerated api docs. Modified Paths: -------------- src/trunk/doc/classes/AbtDownloadManager.html src/trunk/doc/created.rid src/trunk/doc/files/abtdownloadmanager_rb.html Modified: src/trunk/doc/classes/AbtDownloadManager.html =================================================================== --- src/trunk/doc/classes/AbtDownloadManager.html 2007-09-18 20:22:04 UTC (rev 429) +++ src/trunk/doc/classes/AbtDownloadManager.html 2007-09-18 20:23:12 UTC (rev 430) @@ -179,52 +179,52 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000014_source')" id="l_M000014_source">show source</a> ]</p> <div id="M000014_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 95</span> - 95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrieve_news_feed</span>( <span class="ruby-identifier">uri</span>, <span class="ruby-identifier">cleanLog</span>=<span class="ruby-keyword kw">true</span> ) - 96: <span class="ruby-identifier">require</span> <span class="ruby-value str">'net/http'</span> - 97: <span class="ruby-identifier">require</span> <span class="ruby-value str">'uri'</span> - 98: <span class="ruby-identifier">require</span> <span class="ruby-value str">'rss/1.0'</span> - 99: <span class="ruby-identifier">require</span> <span class="ruby-value str">'rss/2.0'</span> -100: <span class="ruby-identifier">newsLog</span> = <span class="ruby-value str">""</span> -101: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$JOURNAL</span>) -102: -103: <span class="ruby-comment cmt"># ensure we have our news logfile.</span> -104: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">cleanLog</span> ) -105: <span class="ruby-identifier">newsLog</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$ABTNEWS_LOG</span>, <span class="ruby-value str">"w+"</span> ) -106: <span class="ruby-keyword kw">else</span> -107: <span class="ruby-identifier">newsLog</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$ABTNEWS_LOG</span>, <span class="ruby-value str">"a+"</span> ) -108: <span class="ruby-keyword kw">end</span> -109: -110: <span class="ruby-comment cmt"># pick up the abtlinux.org news feed.</span> -111: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">news</span> = <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get</span>( <span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>( <span class="ruby-identifier">uri</span> ) ) ) -112: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-node">"Failed to retrieve news feed #{uri}."</span> ) -113: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -114: <span class="ruby-keyword kw">end</span> -115: -116: <span class="ruby-comment cmt"># display the feeds.</span> -117: <span class="ruby-identifier">rss</span> = <span class="ruby-keyword kw">nil</span> -118: <span class="ruby-keyword kw">begin</span> -119: <span class="ruby-identifier">rss</span> = <span class="ruby-constant">RSS</span><span class="ruby-operator">::</span><span class="ruby-constant">Parser</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">news</span>, <span class="ruby-keyword kw">false</span>) -120: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">RSS</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span> -121: <span class="ruby-keyword kw">end</span> -122: -123: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">rss</span>.<span class="ruby-identifier">nil?</span> ) -124: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-node">"Failed to display news feed as feed #{uri} is not RSS 1.0/2.0."</span> ) -125: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -126: <span class="ruby-keyword kw">else</span> -127: <span class="ruby-identifier">newsLog</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"*** #{rss.channel.title} ***\n"</span> -128: -129: <span class="ruby-identifier">rss</span>.<span class="ruby-identifier">items</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span>, <span class="ruby-identifier">itemCount</span><span class="ruby-operator">|</span> -130: <span class="ruby-identifier">itemCount</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> -131: <span class="ruby-identifier">newsLog</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{itemCount} #{item.link} #{item.title}\n"</span> -132: <span class="ruby-keyword kw">end</span> -133: <span class="ruby-keyword kw">end</span> -134: -135: <span class="ruby-identifier">newsLog</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span> -136: <span class="ruby-identifier">newsLog</span>.<span class="ruby-identifier">close</span> -137: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -138: -139: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 126</span> +126: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrieve_news_feed</span>( <span class="ruby-identifier">uri</span>, <span class="ruby-identifier">cleanLog</span>=<span class="ruby-keyword kw">true</span> ) +127: <span class="ruby-identifier">require</span> <span class="ruby-value str">'net/http'</span> +128: <span class="ruby-identifier">require</span> <span class="ruby-value str">'uri'</span> +129: <span class="ruby-identifier">require</span> <span class="ruby-value str">'rss/1.0'</span> +130: <span class="ruby-identifier">require</span> <span class="ruby-value str">'rss/2.0'</span> +131: <span class="ruby-identifier">newsLog</span> = <span class="ruby-value str">""</span> +132: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$JOURNAL</span>) +133: +134: <span class="ruby-comment cmt"># ensure we have our news logfile.</span> +135: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">cleanLog</span> ) +136: <span class="ruby-identifier">newsLog</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$ABTNEWS_LOG</span>, <span class="ruby-value str">"w+"</span> ) +137: <span class="ruby-keyword kw">else</span> +138: <span class="ruby-identifier">newsLog</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$ABTNEWS_LOG</span>, <span class="ruby-value str">"a+"</span> ) +139: <span class="ruby-keyword kw">end</span> +140: +141: <span class="ruby-comment cmt"># pick up the abtlinux.org news feed.</span> +142: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">news</span> = <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get</span>( <span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>( <span class="ruby-identifier">uri</span> ) ) ) +143: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-node">"Failed to retrieve news feed #{uri}."</span> ) +144: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +145: <span class="ruby-keyword kw">end</span> +146: +147: <span class="ruby-comment cmt"># display the feeds.</span> +148: <span class="ruby-identifier">rss</span> = <span class="ruby-keyword kw">nil</span> +149: <span class="ruby-keyword kw">begin</span> +150: <span class="ruby-identifier">rss</span> = <span class="ruby-constant">RSS</span><span class="ruby-operator">::</span><span class="ruby-constant">Parser</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">news</span>, <span class="ruby-keyword kw">false</span>) +151: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">RSS</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span> +152: <span class="ruby-keyword kw">end</span> +153: +154: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">rss</span>.<span class="ruby-identifier">nil?</span> ) +155: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-node">"Failed to display news feed as feed #{uri} is not RSS 1.0/2.0."</span> ) +156: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +157: <span class="ruby-keyword kw">else</span> +158: <span class="ruby-identifier">newsLog</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"*** #{rss.channel.title} ***\n"</span> +159: +160: <span class="ruby-identifier">rss</span>.<span class="ruby-identifier">items</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span>, <span class="ruby-identifier">itemCount</span><span class="ruby-operator">|</span> +161: <span class="ruby-identifier">itemCount</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> +162: <span class="ruby-identifier">newsLog</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{itemCount} #{item.link} #{item.title}\n"</span> +163: <span class="ruby-keyword kw">end</span> +164: <span class="ruby-keyword kw">end</span> +165: +166: <span class="ruby-identifier">newsLog</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span> +167: <span class="ruby-identifier">newsLog</span>.<span class="ruby-identifier">close</span> +168: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +169: +170: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -277,7 +277,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000013"></a><b>retrieve_package_tree</b>( packageTreeName ) + <a name="M000013"></a><b>retrieve_package_tree</b>( packageTreeName="AbTLinux" ) </div> <div class="description"> <p> @@ -296,9 +296,40 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000013_source')" id="l_M000013_source">show source</a> ]</p> <div id="M000013_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 83</span> -83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrieve_package_tree</span>( <span class="ruby-identifier">packageTreeName</span> ) -84: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 83</span> + 83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrieve_package_tree</span>( <span class="ruby-identifier">packageTreeName</span>=<span class="ruby-value str">"AbTLinux"</span> ) + 84: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">$JOURNAL</span>) + 85: + 86: <span class="ruby-comment cmt"># check if package tree exists.</span> + 87: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-identifier">$PACKAGE_PATH</span> ) + 88: <span class="ruby-comment cmt"># check if svn directory.</span> + 89: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-node">"#{$PACKAGE_PATH}.svn"</span> ) + 90: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">system</span>( <span class="ruby-node">"svn update #{$PACKAGE_PATH}"</span> ) + 91: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span> <span class="ruby-value str">"Package tree updated (svn update)"</span> + 92: <span class="ruby-keyword kw">else</span> + 93: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">error</span> <span class="ruby-value str">"Package tree unable to update (svn update)."</span> + 94: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> + 95: <span class="ruby-keyword kw">end</span> + 96: <span class="ruby-keyword kw">else</span> + 97: <span class="ruby-comment cmt"># package directory exists, but is not a valid tree.</span> + 98: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">error</span> <span class="ruby-value str">"Package tree exists, but is not valid svn tree."</span> + 99: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +100: <span class="ruby-keyword kw">end</span> +101: +102: <span class="ruby-keyword kw">else</span> +103: +104: <span class="ruby-comment cmt"># pacakge directory does not exist, svn co.</span> +105: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">system</span>( <span class="ruby-node">"svn co #{$ABTLINUX_PACKAGES} #{$PACKAGE_PATH}"</span> ) +106: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span> <span class="ruby-value str">"Package tree installed (svn co)"</span> +107: <span class="ruby-keyword kw">else</span> +108: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">error</span> <span class="ruby-value str">"Package tree not installed (svn co), problems!"</span> +109: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +110: <span class="ruby-keyword kw">end</span> +111: +112: <span class="ruby-keyword kw">end</span> +113: +114: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +115: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -323,9 +354,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show source</a> ]</p> <div id="M000015_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 149</span> -149: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_package</span> -150: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 180</span> +180: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_package</span> +181: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -347,9 +378,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show source</a> ]</p> <div id="M000016_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 158</span> -158: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_package_tree</span> -159: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 189</span> +189: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_package_tree</span> +190: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -376,20 +407,20 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show source</a> ]</p> <div id="M000017_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 170</span> -170: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validated</span>( <span class="ruby-identifier">hashvalue</span>, <span class="ruby-identifier">path</span> ) -171: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$JOURNAL</span> ) -172: -173: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">hashvalue</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">SHA1</span>.<span class="ruby-identifier">hexdigest</span>( <span class="ruby-identifier">path</span> ) -174: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Source hash validated successfully..."</span> -175: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-value str">"Validated sources successfully..."</span> ) -176: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -177: <span class="ruby-keyword kw">end</span> -178: -179: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Source hash failed validation..."</span> -180: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-value str">"Validating sources failed..."</span> ) -181: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -182: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 201</span> +201: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validated</span>( <span class="ruby-identifier">hashvalue</span>, <span class="ruby-identifier">path</span> ) +202: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$JOURNAL</span> ) +203: +204: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">hashvalue</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">SHA1</span>.<span class="ruby-identifier">hexdigest</span>( <span class="ruby-identifier">path</span> ) +205: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Source hash validated successfully..."</span> +206: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-value str">"Validated sources successfully..."</span> ) +207: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +208: <span class="ruby-keyword kw">end</span> +209: +210: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Source hash failed validation..."</span> +211: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-value str">"Validating sources failed..."</span> ) +212: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +213: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/created.rid =================================================================== --- src/trunk/doc/created.rid 2007-09-18 20:22:04 UTC (rev 429) +++ src/trunk/doc/created.rid 2007-09-18 20:23:12 UTC (rev 430) @@ -1 +1 @@ -Mon Sep 03 22:12:41 +0200 2007 +Tue Sep 18 22:22:49 +0200 2007 Modified: src/trunk/doc/files/abtdownloadmanager_rb.html =================================================================== --- src/trunk/doc/files/abtdownloadmanager_rb.html 2007-09-18 20:22:04 UTC (rev 429) +++ src/trunk/doc/files/abtdownloadmanager_rb.html 2007-09-18 20:23:12 UTC (rev 430) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Mon Sep 03 21:30:00 +0200 2007</td> + <td>Tue Sep 18 22:14:16 +0200 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-09-18 20:22:02
|
Revision: 429 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=429&view=rev Author: eschabell Date: 2007-09-18 13:22:04 -0700 (Tue, 18 Sep 2007) Log Message: ----------- Implemented retrieve package tree. This is part of the command 'abt package-repo add', the list and remove have been marked with todo's. Fixes another failing unit test, 16 to go! Modified Paths: -------------- src/trunk/abt.rb src/trunk/abtdownloadmanager.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2007-09-18 20:19:00 UTC (rev 428) +++ src/trunk/abt.rb 2007-09-18 20:22:04 UTC (rev 429) @@ -527,8 +527,7 @@ end when "package-repo" - # FIXME : packge repo implementation. - # sort out that we have enough args. + case ARGV.length # add or remove called. @@ -538,8 +537,15 @@ # list called. when 2 + # FIXME: implements this. if ( ARGV[1] == "list" ) options['repoAction'] = ARGV[1] + logger.info "TODO: Listing package repositories." + elsif ARGV[1] == "add" || ARGV[1] == "remove" + # add or remove default repo. + options['repoAction'] = ARGV[1] + options['repoUri'] = "" + logger.info "Default AbTLinux Package Repository : #{options['repoAction']}." else show.usage( "maintenance" ) exit @@ -549,24 +555,51 @@ show.usage( "maintenance" ) exit end # case ARGV.length. - + + logger.info( "Starting package-repo : #{options['repoAction']}.") + # hook location based on action. case options['repoAction'] when "add" - puts "Adding package repository : " + options['repoUri'] - + if options['repoUri'].length > 0 + puts "Adding package repository : " + options['repoUri'] + if downloader.retrieve_package_tree( options['repoUri'] ) + puts "Added package tree : #{options['repoUri']}." + else + puts "Unable to add package tree : #{options['repoUri']}." + logger.error "Unable to add package tree : #{options['repoUri']}." + exit + end + else + puts "Adding package repository : Default AbTLinux Package Tree" + if downloader.retrieve_package_tree + puts "Added package tree : Default AbTLinux Package Tree}." + else + puts "Unable to add package tree : Default AbTLinux Package Tree." + logger.error "Unable to add package tree : Default AbTLinux Package Tree." + exit + end + end when "remove" - puts "Remove package repository : " + options['repoUri'] + # FIXME: implement this. + if options['repoUri'].length > 0 + puts "Removing package repository : " + options['repoUri'] + else + puts "Removing package repository : Default AbTLinux Package Tree" + end when "list" - puts "Display listing of package repositories." + # FIXME: implement this. + puts "TODO: Display listing of package repositories." else show.usage( "maintenance" ) exit end # case repoAction. + logger.info( "Starting package-repo : #{ARGV[1]} - #{ARGV[2]}.") + else show.usage( "all" ) end # case ARGV[0]. Modified: src/trunk/abtdownloadmanager.rb =================================================================== --- src/trunk/abtdownloadmanager.rb 2007-09-18 20:19:00 UTC (rev 428) +++ src/trunk/abtdownloadmanager.rb 2007-09-18 20:22:04 UTC (rev 429) @@ -80,7 +80,38 @@ # <b>RETURN</b> <i>boolean</i> - True if the package tree is retrieved, # otherwise false. ## - def retrieve_package_tree( packageTreeName ) + def retrieve_package_tree( packageTreeName="AbTLinux" ) + logger = Logger.new($JOURNAL) + + # check if package tree exists. + if File.directory?( $PACKAGE_PATH ) + # check if svn directory. + if File.directory?( "#{$PACKAGE_PATH}.svn" ) + if system( "svn update #{$PACKAGE_PATH}" ) + logger.info "Package tree updated (svn update)" + else + logger.error "Package tree unable to update (svn update)." + return false + end + else + # package directory exists, but is not a valid tree. + logger.error "Package tree exists, but is not valid svn tree." + return false + end + + else + + # pacakge directory does not exist, svn co. + if system( "svn co #{$ABTLINUX_PACKAGES} #{$PACKAGE_PATH}" ) + logger.info "Package tree installed (svn co)" + else + logger.error "Package tree not installed (svn co), problems!" + return false + end + + end + + 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-09-18 20:19:02
|
Revision: 428 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=428&view=rev Author: eschabell Date: 2007-09-18 13:19:00 -0700 (Tue, 18 Sep 2007) Log Message: ----------- Fixed file naming problem with the journal global var. Also added url for package repo. Modified Paths: -------------- src/trunk/abtconfig.rb Modified: src/trunk/abtconfig.rb =================================================================== --- src/trunk/abtconfig.rb 2007-09-17 18:15:44 UTC (rev 427) +++ src/trunk/abtconfig.rb 2007-09-18 20:19:00 UTC (rev 428) @@ -48,7 +48,7 @@ $ABT_TMP = "/tmp/abt" $ABTNEWS_LOG = "#{$ABT_LOGS}/news.log" $BUILD_LOCATION = "/usr/src" -$JOURNAL = "#{$ABT_LOGS}/journal.log, File::WRONLY | File::APPEND | File::CREAT" # use logger.info. +$JOURNAL = "#{$ABT_LOGS}/journal.log" # use logger.info. $PACKAGE_INSTALLED = "#{$ABT_STATE}/installed" $PACKAGE_CACHED = "#{$ABT_STATE}/cached" $PACKAGE_PATH = "#{$ABT_CACHES}/packages/" @@ -65,8 +65,8 @@ $TIMESTAMP = Time.now.strftime( "%Y-%m-%d %H:%M:%S (%Z)" ) $PAGER_DEFAULT = "less -R -E -X -f" $LOG_LEVEL = "Logger::DEBUG" +$ABTLINUX_PACKAGES = "https://abtlinux.svn.sourceforge.net/svnroot/abtlinux/src/trunk/packages" - # default URL listing. # $ABTNEWS = "http://abtlinux.org/e107_plugins/rss_menu/rss.php?1.2" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-09-17 18:15:45
|
Revision: 427 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=427&view=rev Author: eschabell Date: 2007-09-17 11:15:44 -0700 (Mon, 17 Sep 2007) Log Message: ----------- Dropped placeholder file. Removed Paths: ------------- src/Readme Deleted: src/Readme =================================================================== --- src/Readme 2007-09-03 20:13:19 UTC (rev 426) +++ src/Readme 2007-09-17 18:15:44 UTC (rev 427) @@ -1 +0,0 @@ -To be added is the source trees here! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: ABout T. L. <esc...@us...> - 2007-09-09 19:16:56
|
IzE1OiBSZWZhY3RvciB1c2Ugb2YgTG9nTWFuYWdlciBvdXQgb2YgY29kZSBiYXNlDQotLS0tLS0t LS0tLS0tLS0tLS0tLSstLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tDQogIFJlcG9ydGVyOiAgZXJpY3MgIHwgICAgICAgT3duZXI6ICBlcmljcyAg ICAgIA0KICAgICAgVHlwZTogIHRhc2sgICB8ICAgICAgU3RhdHVzOiAgYXNzaWduZWQgICANCiAg UHJpb3JpdHk6ICBtYWpvciAgfCAgIE1pbGVzdG9uZTogIHZlcnNpb25fMC45DQogQ29tcG9uZW50 OiAgYWJ0ICAgIHwgICAgIFZlcnNpb246ICAwLjggICAgICAgIA0KUmVzb2x1dGlvbjogICAgICAg ICB8ICAgIEtleXdvcmRzOiAgICAgICAgICAgICANCi0tLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCkNvbW1l bnQgKGJ5IGVyaWNzKToNCg0KIFN0YXJ0ZWQgY2hhbmdpbmcsIGJhc2ljIGpvdXJuYWwgbG9nZ2lu ZyBub3cgdXNpbmcgTG9nZ2VyIGluc3RlYWQgb2YgZmlsZQ0KIGFjY2VzcyBtZXRob2QsIHNlZSBy MTA2NS4NCg0KLS0gDQpUaWNrZXQgVVJMOiA8aHR0cDovL3RyYWMuYWJ0bGludXgub3JnL3RpY2tl dC8xNSNjb21tZW50OjM+DQpBQm91dCBUaW1lIExpbnV4IDxodHRwOi8vd3d3LmFidGxpbnV4Lm9y Zz4NCkl0J3MgYWJvdXQgdGltZSBzb21lb25lIGRpZCBpdCByaWdodC4uLg== |
From: <esc...@us...> - 2007-09-03 20:13:23
|
Revision: 426 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=426&view=rev Author: eschabell Date: 2007-09-03 13:13:19 -0700 (Mon, 03 Sep 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/AbtPackageManager.html src/trunk/doc/classes/AbtQueueManager.html src/trunk/doc/classes/AbtReportManager.html src/trunk/doc/classes/AbtSystemManager.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/TestAbtQueueManager.html src/trunk/doc/classes/TestAbtSystemManager.html src/trunk/doc/created.rid 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/abtqueuemanager_rb.html src/trunk/doc/files/abtreportmanager_rb.html src/trunk/doc/files/abtsystemmanager_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/AbtDepEngine.html =================================================================== --- src/trunk/doc/classes/AbtDepEngine.html 2007-09-03 20:11:20 UTC (rev 425) +++ src/trunk/doc/classes/AbtDepEngine.html 2007-09-03 20:13:19 UTC (rev 426) @@ -118,7 +118,7 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000094">new</a></li> + <li><a href="#M000093">new</a></li> </ul> @@ -129,7 +129,7 @@ <div class="sectiontitle">Public Class methods</div> <div class="method"> <div class="title"> - <a name="M000094"></a><b>new</b>() + <a name="M000093"></a><b>new</b>() </div> <div class="description"> <p> @@ -141,8 +141,8 @@ </p> </div> <div class="sourcecode"> - <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"> + <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 abtdepengine.rb, line 41</span> 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> Modified: src/trunk/doc/classes/AbtDownloadManager.html =================================================================== --- src/trunk/doc/classes/AbtDownloadManager.html 2007-09-03 20:11:20 UTC (rev 425) +++ src/trunk/doc/classes/AbtDownloadManager.html 2007-09-03 20:13:19 UTC (rev 426) @@ -186,7 +186,7 @@ 98: <span class="ruby-identifier">require</span> <span class="ruby-value str">'rss/1.0'</span> 99: <span class="ruby-identifier">require</span> <span class="ruby-value str">'rss/2.0'</span> 100: <span class="ruby-identifier">newsLog</span> = <span class="ruby-value str">""</span> -101: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">AbtLogManager</span>.<span class="ruby-identifier">new</span> +101: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$JOURNAL</span>) 102: 103: <span class="ruby-comment cmt"># ensure we have our news logfile.</span> 104: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">cleanLog</span> ) @@ -197,7 +197,7 @@ 109: 110: <span class="ruby-comment cmt"># pick up the abtlinux.org news feed.</span> 111: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">news</span> = <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get</span>( <span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>( <span class="ruby-identifier">uri</span> ) ) ) -112: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"Failed to retrieve news feed #{uri}."</span> ) +112: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-node">"Failed to retrieve news feed #{uri}."</span> ) 113: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> 114: <span class="ruby-keyword kw">end</span> 115: @@ -209,23 +209,22 @@ 121: <span class="ruby-keyword kw">end</span> 122: 123: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">rss</span>.<span class="ruby-identifier">nil?</span> ) -124: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"Failed to display news feed as feed #{uri} "</span> <span class="ruby-operator">+</span> -125: <span class="ruby-value str">"is not RSS 1.0/2.0."</span> ) -126: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -127: <span class="ruby-keyword kw">else</span> -128: <span class="ruby-identifier">newsLog</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"*** #{rss.channel.title} ***\n"</span> -129: -130: <span class="ruby-identifier">rss</span>.<span class="ruby-identifier">items</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span>, <span class="ruby-identifier">itemCount</span><span class="ruby-operator">|</span> -131: <span class="ruby-identifier">itemCount</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> -132: <span class="ruby-identifier">newsLog</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{itemCount} #{item.link} #{item.title}\n"</span> -133: <span class="ruby-keyword kw">end</span> -134: <span class="ruby-keyword kw">end</span> -135: -136: <span class="ruby-identifier">newsLog</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span> -137: <span class="ruby-identifier">newsLog</span>.<span class="ruby-identifier">close</span> -138: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -139: -140: <span class="ruby-keyword kw">end</span> +124: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-node">"Failed to display news feed as feed #{uri} is not RSS 1.0/2.0."</span> ) +125: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +126: <span class="ruby-keyword kw">else</span> +127: <span class="ruby-identifier">newsLog</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"*** #{rss.channel.title} ***\n"</span> +128: +129: <span class="ruby-identifier">rss</span>.<span class="ruby-identifier">items</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span>, <span class="ruby-identifier">itemCount</span><span class="ruby-operator">|</span> +130: <span class="ruby-identifier">itemCount</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> +131: <span class="ruby-identifier">newsLog</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{itemCount} #{item.link} #{item.title}\n"</span> +132: <span class="ruby-keyword kw">end</span> +133: <span class="ruby-keyword kw">end</span> +134: +135: <span class="ruby-identifier">newsLog</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span> +136: <span class="ruby-identifier">newsLog</span>.<span class="ruby-identifier">close</span> +137: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +138: +139: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -256,17 +255,17 @@ <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 56</span> 56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrieve_package_source</span>( <span class="ruby-identifier">packageName</span>, <span class="ruby-identifier">destination</span> ) 57: <span class="ruby-identifier">require</span> <span class="ruby-node">"#{$PACKAGE_PATH}#{packageName}"</span> -58: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">AbtLogManager</span>.<span class="ruby-identifier">new</span> +58: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">$JOURNAL</span>) 59: <span class="ruby-identifier">package</span> = <span class="ruby-identifier">eval</span>( <span class="ruby-identifier">packageName</span>.<span class="ruby-identifier">capitalize</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'.new'</span> ) 60: 61: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>( <span class="ruby-node">"#{destination}/#{File.basename( package.srcUrl )}"</span> ) ) -62: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"Download not needed, existing source found for #{packageName}"</span> ) +62: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-node">"Download not needed, existing source found for #{packageName}"</span> ) 63: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> 64: <span class="ruby-keyword kw">end</span> 65: 66: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-identifier">destination</span> ) 67: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">system</span>( <span class="ruby-node">"wget #{package.srcUrl}"</span> ) ) -68: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"Download completed for #{packageName}"</span> ) +68: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-node">"Download completed for #{packageName}"</span> ) 69: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> 70: <span class="ruby-keyword kw">end</span> 71: @@ -324,9 +323,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000015_source')" id="l_M000015_source">show source</a> ]</p> <div id="M000015_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 150</span> -150: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_package</span> -151: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 149</span> +149: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_package</span> +150: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -348,9 +347,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show source</a> ]</p> <div id="M000016_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 159</span> -159: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_package_tree</span> -160: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 158</span> +158: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_package_tree</span> +159: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -377,20 +376,20 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show source</a> ]</p> <div id="M000017_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 171</span> -171: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validated</span>( <span class="ruby-identifier">hashvalue</span>, <span class="ruby-identifier">path</span> ) -172: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">AbtLogManager</span>.<span class="ruby-identifier">new</span> -173: -174: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">hashvalue</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">SHA1</span>.<span class="ruby-identifier">hexdigest</span>( <span class="ruby-identifier">path</span> ) -175: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Source hash validated successfully..."</span> -176: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-value str">"Validated sources successfully..."</span> ) -177: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -178: <span class="ruby-keyword kw">end</span> -179: -180: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Source hash failed validation..."</span> -181: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-value str">"Validating sources failed..."</span> ) -182: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -183: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtdownloadmanager.rb, line 170</span> +170: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validated</span>( <span class="ruby-identifier">hashvalue</span>, <span class="ruby-identifier">path</span> ) +171: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$JOURNAL</span> ) +172: +173: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">hashvalue</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">SHA1</span>.<span class="ruby-identifier">hexdigest</span>( <span class="ruby-identifier">path</span> ) +174: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Source hash validated successfully..."</span> +175: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-value str">"Validated sources successfully..."</span> ) +176: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +177: <span class="ruby-keyword kw">end</span> +178: +179: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Source hash failed validation..."</span> +180: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-value str">"Validating sources failed..."</span> ) +181: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +182: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/AbtLogManager.html =================================================================== --- src/trunk/doc/classes/AbtLogManager.html 2007-09-03 20:11:20 UTC (rev 425) +++ src/trunk/doc/classes/AbtLogManager.html 2007-09-03 20:13:19 UTC (rev 426) @@ -123,7 +123,6 @@ <li><a href="#M000066">log_package_install</a></li> <li><a href="#M000065">log_package_integrity</a></li> <li><a href="#M000064">new</a></li> - <li><a href="#M000069">to_journal</a></li> </ul> @@ -152,15 +151,16 @@ <pre> <span class="ruby-comment cmt"># File abtlogmanager.rb, line 80</span> 80: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> -81: [<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>, -82: <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> -83: -84: <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> ) ) -85: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>( <span class="ruby-identifier">dir</span> ) -86: <span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"Created directory: #{dir}."</span> ) -87: <span class="ruby-keyword kw">end</span> -88: } -89: <span class="ruby-keyword kw">end</span> +81: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">$JOURNAL</span> ) +82: [<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>, +83: <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> +84: +85: <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> ) ) +86: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>( <span class="ruby-identifier">dir</span> ) +87: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span>( <span class="ruby-node">"Created directory: #{dir}."</span> ) +88: <span class="ruby-keyword kw">end</span> +89: } +90: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -187,84 +187,84 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000068_source')" id="l_M000068_source">show source</a> ]</p> <div id="M000068_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtlogmanager.rb, line 209</span> -209: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cache_package</span>( <span class="ruby-identifier">package</span> ) -210: <span class="ruby-identifier">system</span> = <span class="ruby-constant">AbtSystemManager</span>.<span class="ruby-identifier">new</span> -211: -212: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">system</span>.<span class="ruby-identifier">package_installed</span>( <span class="ruby-identifier">package</span> ) ) -213: <span class="ruby-identifier">sw</span> = <span class="ruby-identifier">eval</span>( <span class="ruby-node">"#{package.capitalize}.new"</span> ) -214: <span class="ruby-identifier">cachedDir</span> = <span class="ruby-identifier">$PACKAGE_CACHED</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"/"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcDir</span> -215: <span class="ruby-identifier">sourcePath</span> = <span class="ruby-identifier">$SOURCES_REPOSITORY</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"/"</span> <span class="ruby-operator">+</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcUrl</span> ) -216: <span class="ruby-identifier">sourceFile</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcUrl</span> ) -217: <span class="ruby-identifier">installLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'install'</span> ) -218: <span class="ruby-identifier">buildLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'build'</span> ) -219: <span class="ruby-identifier">configureLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'configure'</span> ) -220: <span class="ruby-identifier">integrityLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'integrity'</span> ) -221: <span class="ruby-identifier">packageFile</span> = <span class="ruby-node">"#{$PACKAGE_PATH}#{package}.rb"</span> -222: + <span class="ruby-comment cmt"># File abtlogmanager.rb, line 210</span> +210: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cache_package</span>( <span class="ruby-identifier">package</span> ) +211: <span class="ruby-identifier">system</span> = <span class="ruby-constant">AbtSystemManager</span>.<span class="ruby-identifier">new</span> +212: +213: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">system</span>.<span class="ruby-identifier">package_installed</span>( <span class="ruby-identifier">package</span> ) ) +214: <span class="ruby-identifier">sw</span> = <span class="ruby-identifier">eval</span>( <span class="ruby-node">"#{package.capitalize}.new"</span> ) +215: <span class="ruby-identifier">cachedDir</span> = <span class="ruby-identifier">$PACKAGE_CACHED</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"/"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcDir</span> +216: <span class="ruby-identifier">sourcePath</span> = <span class="ruby-identifier">$SOURCES_REPOSITORY</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"/"</span> <span class="ruby-operator">+</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcUrl</span> ) +217: <span class="ruby-identifier">sourceFile</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcUrl</span> ) +218: <span class="ruby-identifier">installLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'install'</span> ) +219: <span class="ruby-identifier">buildLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'build'</span> ) +220: <span class="ruby-identifier">configureLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'configure'</span> ) +221: <span class="ruby-identifier">integrityLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'integrity'</span> ) +222: <span class="ruby-identifier">packageFile</span> = <span class="ruby-node">"#{$PACKAGE_PATH}#{package}.rb"</span> 223: -224: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>( <span class="ruby-identifier">cachedDir</span> ) -225: -226: <span class="ruby-comment cmt"># collect package source.</span> -227: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">sourcePath</span> ) ) -228: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">sourcePath</span>, <span class="ruby-node">"#{cachedDir}/#{sourceFile}"</span> ) -229: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} source."</span> -230: <span class="ruby-keyword kw">else</span> -231: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} source."</span> -232: <span class="ruby-keyword kw">end</span> -233: -234: <span class="ruby-comment cmt"># collect package install log. </span> -235: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">installLog</span> ) ) -236: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">installLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.install"</span> ) -237: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} install log."</span> -238: <span class="ruby-keyword kw">else</span> -239: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} install log."</span> -240: <span class="ruby-keyword kw">end</span> -241: -242: <span class="ruby-comment cmt"># collect package build log. </span> -243: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">buildLog</span> ) ) -244: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">buildLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.build"</span> ) -245: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} build log."</span> -246: <span class="ruby-keyword kw">else</span> -247: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} build log."</span> -248: <span class="ruby-keyword kw">end</span> -249: -250: <span class="ruby-comment cmt"># collect package configure log. </span> -251: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">configureLog</span> ) ) -252: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">configureLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.configure"</span> ) -253: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} configure log."</span> -254: <span class="ruby-keyword kw">else</span> -255: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} configure log."</span> -256: <span class="ruby-keyword kw">end</span> -257: -258: <span class="ruby-comment cmt"># collect package integrity log.</span> -259: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">integrityLog</span> ) ) -260: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">integrityLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.integrity"</span> ) -261: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} integrity log."</span> -262: <span class="ruby-keyword kw">else</span> -263: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} integrity log."</span> -264: <span class="ruby-keyword kw">end</span> -265: -266: <span class="ruby-comment cmt"># collect package description (class file).</span> -267: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">packageFile</span> ) ) -268: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">packageFile</span>, <span class="ruby-node">"#{cachedDir}/#{package}.rb"</span> ) -269: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} package description."</span> -270: <span class="ruby-keyword kw">else</span> -271: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} package description, from location #{packageFile}"</span> -272: <span class="ruby-keyword kw">end</span> -273: -274: <span class="ruby-comment cmt"># tar and bzip this directory (package-cache-version.tar.bz2) </span> -275: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-identifier">$PACKAGE_CACHED</span> ) -276: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">system</span>( <span class="ruby-node">"tar -cf #{sw.srcDir}.tar #{sw.srcDir}"</span> ) <span class="ruby-operator">&&</span> -277: <span class="ruby-identifier">system</span>( <span class="ruby-node">"bzip2 -f #{sw.srcDir}.tar"</span> ) ) -278: <span class="ruby-comment cmt"># last but not least, remove our tarball directory</span> -279: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span>( <span class="ruby-identifier">cachedDir</span> ) -280: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -281: <span class="ruby-keyword kw">end</span> -282: <span class="ruby-keyword kw">end</span> -283: -284: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># package not installed, can't cache it.</span> -285: <span class="ruby-keyword kw">end</span> +224: +225: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>( <span class="ruby-identifier">cachedDir</span> ) +226: +227: <span class="ruby-comment cmt"># collect package source.</span> +228: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">sourcePath</span> ) ) +229: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">sourcePath</span>, <span class="ruby-node">"#{cachedDir}/#{sourceFile}"</span> ) +230: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} source."</span> +231: <span class="ruby-keyword kw">else</span> +232: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} source."</span> +233: <span class="ruby-keyword kw">end</span> +234: +235: <span class="ruby-comment cmt"># collect package install log. </span> +236: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">installLog</span> ) ) +237: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">installLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.install"</span> ) +238: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} install log."</span> +239: <span class="ruby-keyword kw">else</span> +240: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} install log."</span> +241: <span class="ruby-keyword kw">end</span> +242: +243: <span class="ruby-comment cmt"># collect package build log. </span> +244: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">buildLog</span> ) ) +245: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">buildLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.build"</span> ) +246: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} build log."</span> +247: <span class="ruby-keyword kw">else</span> +248: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} build log."</span> +249: <span class="ruby-keyword kw">end</span> +250: +251: <span class="ruby-comment cmt"># collect package configure log. </span> +252: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">configureLog</span> ) ) +253: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">configureLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.configure"</span> ) +254: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} configure log."</span> +255: <span class="ruby-keyword kw">else</span> +256: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} configure log."</span> +257: <span class="ruby-keyword kw">end</span> +258: +259: <span class="ruby-comment cmt"># collect package integrity log.</span> +260: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">integrityLog</span> ) ) +261: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">integrityLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.integrity"</span> ) +262: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} integrity log."</span> +263: <span class="ruby-keyword kw">else</span> +264: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} integrity log."</span> +265: <span class="ruby-keyword kw">end</span> +266: +267: <span class="ruby-comment cmt"># collect package description (class file).</span> +268: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">packageFile</span> ) ) +269: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">packageFile</span>, <span class="ruby-node">"#{cachedDir}/#{package}.rb"</span> ) +270: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} package description."</span> +271: <span class="ruby-keyword kw">else</span> +272: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} package description, from location #{packageFile}"</span> +273: <span class="ruby-keyword kw">end</span> +274: +275: <span class="ruby-comment cmt"># tar and bzip this directory (package-cache-version.tar.bz2) </span> +276: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-identifier">$PACKAGE_CACHED</span> ) +277: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">system</span>( <span class="ruby-node">"tar -cf #{sw.srcDir}.tar #{sw.srcDir}"</span> ) <span class="ruby-operator">&&</span> +278: <span class="ruby-identifier">system</span>( <span class="ruby-node">"bzip2 -f #{sw.srcDir}.tar"</span> ) ) +279: <span class="ruby-comment cmt"># last but not least, remove our tarball directory</span> +280: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span>( <span class="ruby-identifier">cachedDir</span> ) +281: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +282: <span class="ruby-keyword kw">end</span> +283: <span class="ruby-keyword kw">end</span> +284: +285: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># package not installed, can't cache it.</span> +286: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -343,17 +343,17 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">show source</a> ]</p> <div id="M000067_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtlogmanager.rb, line 189</span> -189: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_package_build</span>( <span class="ruby-identifier">package</span> ) -190: <span class="ruby-identifier">buildLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'build'</span> ) -191: -192: <span class="ruby-comment cmt"># make sure the build file exists.</span> -193: <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">buildLog</span> ) ) -194: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -195: <span class="ruby-keyword kw">end</span> -196: -197: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -198: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtlogmanager.rb, line 190</span> +190: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_package_build</span>( <span class="ruby-identifier">package</span> ) +191: <span class="ruby-identifier">buildLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'build'</span> ) +192: +193: <span class="ruby-comment cmt"># make sure the build file exists.</span> +194: <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">buildLog</span> ) ) +195: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +196: <span class="ruby-keyword kw">end</span> +197: +198: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +199: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -379,45 +379,45 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">show source</a> ]</p> <div id="M000066_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtlogmanager.rb, line 141</span> -141: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_package_install</span>( <span class="ruby-identifier">package</span> ) -142: <span class="ruby-comment cmt"># some dirs we will not add to an install log.</span> -143: <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> ) -144: <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> -145: -146: <span class="ruby-comment cmt"># our log locations.</span> -147: <span class="ruby-identifier">installLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'install'</span> ) -148: <span class="ruby-identifier">tmpInstallLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'tmpinstall'</span> ) -149: -150: <span class="ruby-comment cmt"># get the installed files from the tmp file</span> -151: <span class="ruby-comment cmt"># into our install log.</span> -152: <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> ) ) -153: <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>) -154: -155: <span class="ruby-comment cmt"># include only the file names from open calls</span> -156: <span class="ruby-comment cmt"># and not part of the excluded range of directories.</span> -157: <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> -158: <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> ) -159: <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> ) -160: <span class="ruby-identifier">badLine</span> = <span class="ruby-keyword kw">true</span> -161: <span class="ruby-keyword kw">else</span> -162: <span class="ruby-identifier">badLine</span> = <span class="ruby-keyword kw">false</span> -163: <span class="ruby-keyword kw">end</span> -164: -165: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">badLine</span> ) -166: <span class="ruby-identifier">installFile</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{line.split[2]}\n"</span> -167: <span class="ruby-keyword kw">end</span> -168: <span class="ruby-keyword kw">end</span> -169: <span class="ruby-keyword kw">end</span> -170: -171: <span class="ruby-identifier">installFile</span>.<span class="ruby-identifier">close</span> -172: <span class="ruby-keyword kw">else</span> -173: <span class="ruby-comment cmt"># no tmp install file, thus no install running.</span> -174: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -175: <span class="ruby-keyword kw">end</span> -176: -177: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>; -178: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtlogmanager.rb, line 142</span> +142: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_package_install</span>( <span class="ruby-identifier">package</span> ) +143: <span class="ruby-comment cmt"># some dirs we will not add to an install log.</span> +144: <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> ) +145: <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> +146: +147: <span class="ruby-comment cmt"># our log locations.</span> +148: <span class="ruby-identifier">installLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'install'</span> ) +149: <span class="ruby-identifier">tmpInstallLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'tmpinstall'</span> ) +150: +151: <span class="ruby-comment cmt"># get the installed files from the tmp file</span> +152: <span class="ruby-comment cmt"># into our install log.</span> +153: <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> ) ) +154: <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>) +155: +156: <span class="ruby-comment cmt"># include only the file names from open calls</span> +157: <span class="ruby-comment cmt"># and not part of the excluded range of directories.</span> +158: <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> +159: <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> ) +160: <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> ) +161: <span class="ruby-identifier">badLine</span> = <span class="ruby-keyword kw">true</span> +162: <span class="ruby-keyword kw">else</span> +163: <span class="ruby-identifier">badLine</span> = <span class="ruby-keyword kw">false</span> +164: <span class="ruby-keyword kw">end</span> +165: +166: <span class="ruby-keyword kw">if</span> ( <span class="ruby-operator">!</span><span class="ruby-identifier">badLine</span> ) +167: <span class="ruby-identifier">installFile</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{line.split[2]}\n"</span> +168: <span class="ruby-keyword kw">end</span> +169: <span class="ruby-keyword kw">end</span> +170: <span class="ruby-keyword kw">end</span> +171: +172: <span class="ruby-identifier">installFile</span>.<span class="ruby-identifier">close</span> +173: <span class="ruby-keyword kw">else</span> +174: <span class="ruby-comment cmt"># no tmp install file, thus no install running.</span> +175: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +176: <span class="ruby-keyword kw">end</span> +177: +178: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>; +179: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -444,76 +444,42 @@ <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 101</span> -101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_package_integrity</span>( <span class="ruby-identifier">package</span> ) -102: <span class="ruby-comment cmt">#require "#{$PACKAGE_PATH}#{package}"</span> -103: <span class="ruby-comment cmt">#sw = eval( "#{package.capitalize}.new" )</span> -104: <span class="ruby-comment cmt">#details = sw.details</span> -105: -106: <span class="ruby-comment cmt"># our log locations.</span> -107: <span class="ruby-identifier">installLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'install'</span> ) -108: <span class="ruby-identifier">integrityLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'integrity'</span> ) -109: -110: <span class="ruby-comment cmt"># get the installed files from the tmp file</span> -111: <span class="ruby-comment cmt"># into our install log.</span> -112: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">installLog</span> ) ) -113: <span class="ruby-identifier">installFile</span> = <span class="ruby-identifier">open</span>( <span class="ruby-identifier">installLog</span>, <span class="ruby-value str">'r'</span> ) -114: <span class="ruby-identifier">integrityFile</span> = <span class="ruby-identifier">open</span>( <span class="ruby-identifier">integrityLog</span>, <span class="ruby-value str">'w'</span> ) -115: -116: <span class="ruby-comment cmt"># get the integrity for each file, initially just permissions. </span> -117: <span class="ruby-constant">IO</span>.<span class="ruby-identifier">foreach</span>( <span class="ruby-identifier">installLog</span> ) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> -118: <span class="ruby-identifier">status</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">stat</span>( <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span> ) -119: <span class="ruby-identifier">octal</span> = <span class="ruby-identifier">sprintf</span>( <span class="ruby-value str">"%o"</span>, <span class="ruby-identifier">status</span>.<span class="ruby-identifier">mode</span> ) -120: <span class="ruby-identifier">integrityFile</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{line.chomp}:#{octal}\n"</span> -121: <span class="ruby-keyword kw">end</span> -122: -123: <span class="ruby-identifier">installFile</span>.<span class="ruby-identifier">close</span> -124: <span class="ruby-identifier">integrityFile</span>.<span class="ruby-identifier">close</span> -125: <span class="ruby-keyword kw">else</span> -126: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># no install log!</span> -127: <span class="ruby-keyword kw">end</span> -128: -129: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>; -130: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtlogmanager.rb, line 102</span> +102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_package_integrity</span>( <span class="ruby-identifier">package</span> ) +103: <span class="ruby-comment cmt">#require "#{$PACKAGE_PATH}#{package}"</span> +104: <span class="ruby-comment cmt">#sw = eval( "#{package.capitalize}.new" )</span> +105: <span class="ruby-comment cmt">#details = sw.details</span> +106: +107: <span class="ruby-comment cmt"># our log locations.</span> +108: <span class="ruby-identifier">installLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'install'</span> ) +109: <span class="ruby-identifier">integrityLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'integrity'</span> ) +110: +111: <span class="ruby-comment cmt"># get the installed files from the tmp file</span> +112: <span class="ruby-comment cmt"># into our install log.</span> +113: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">installLog</span> ) ) +114: <span class="ruby-identifier">installFile</span> = <span class="ruby-identifier">open</span>( <span class="ruby-identifier">installLog</span>, <span class="ruby-value str">'r'</span> ) +115: <span class="ruby-identifier">integrityFile</span> = <span class="ruby-identifier">open</span>( <span class="ruby-identifier">integrityLog</span>, <span class="ruby-value str">'w'</span> ) +116: +117: <span class="ruby-comment cmt"># get the integrity for each file, initially just permissions. </span> +118: <span class="ruby-constant">IO</span>.<span class="ruby-identifier">foreach</span>( <span class="ruby-identifier">installLog</span> ) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> +119: <span class="ruby-identifier">status</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">stat</span>( <span class="ruby-identifier">line</span>.<span class="ruby-identifier">chomp</span> ) +120: <span class="ruby-identifier">octal</span> = <span class="ruby-identifier">sprintf</span>( <span class="ruby-value str">"%o"</span>, <span class="ruby-identifier">status</span>.<span class="ruby-identifier">mode</span> ) +121: <span class="ruby-identifier">integrityFile</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{line.chomp}:#{octal}\n"</span> +122: <span class="ruby-keyword kw">end</span> +123: +124: <span class="ruby-identifier">installFile</span>.<span class="ruby-identifier">close</span> +125: <span class="ruby-identifier">integrityFile</span>.<span class="ruby-identifier">close</span> +126: <span class="ruby-keyword kw">else</span> +127: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># no install log!</span> +128: <span class="ruby-keyword kw">end</span> +129: +130: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>; +131: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> -<div class="method"> - <div class="title"> - <a name="M000069"></a><b>to_journal</b>( message ) - </div> - <div class="description"> - <p> -Provides logging of given message to the AbTLinux journal. Message logged -with date timestamp. -</p> -<p> -<b>PARAM</b> <em>String</em> - Message to be added to the log. -</p> -<p> -<b>RETURN</b> <em>boolean</em> True if logged, otherwise false. -</p> - </div> -<div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">show source</a> ]</p> - <div id="M000069_source" class="dyn-source"> -<pre> - <span class="ruby-comment cmt"># File abtlogmanager.rb, line 295</span> -295: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_journal</span>( <span class="ruby-identifier">message</span> ) -296: <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-value str">"a+"</span> ) ) -297: <span class="ruby-identifier">log</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{$TIMESTAMP} : #{message}\n"</span> -298: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">close</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">return</span> <span class="ruby-keyword kw">false</span> -303: <span class="ruby-keyword kw">end</span> -</pre> - </div> </div> -</div> -</div> </div> Modified: src/trunk/doc/classes/AbtPackageManager.html =================================================================== --- src/trunk/doc/classes/AbtPackageManager.html 2007-09-03 20:11:20 UTC (rev 425) +++ src/trunk/doc/classes/AbtPackageManager.html 2007-09-03 20:13:19 UTC (rev 426) @@ -182,10 +182,10 @@ <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 abtpack... [truncated message content] |
From: <esc...@us...> - 2007-09-03 20:11:19
|
Revision: 425 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=425&view=rev Author: eschabell Date: 2007-09-03 13:11:20 -0700 (Mon, 03 Sep 2007) Log Message: ----------- Refactored AbtLogManager class to remove to_journal method. This is now being provided by the core ruby Logger class. Further refactoring removes the usage of to_journal from the entire code base. Left behind TODO's for marking potential spot for more work as I take a closer look at the remaining AbtLogManager methods. Unit tests still at 17 failing. Modified Paths: -------------- src/trunk/abt.rb src/trunk/abtconfig.rb src/trunk/abtdownloadmanager.rb src/trunk/abtlogmanager.rb src/trunk/abtpackagemanager.rb src/trunk/abtqueuemanager.rb src/trunk/abtreportmanager.rb src/trunk/abtsystemmanager.rb src/trunk/testabtlogmanager.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2007-08-16 19:10:58 UTC (rev 424) +++ src/trunk/abt.rb 2007-09-03 20:11:20 UTC (rev 425) @@ -30,13 +30,20 @@ # Setup needed classes and get ready to parse arguments. ## manager = AbtPackageManager.new -logger = AbtLogManager.new # initializes all needed paths. +logger = Logger.new($JOURNAL) # initializes all needed paths. reporter = AbtReportManager.new downloader = AbtDownloadManager.new system = AbtSystemManager.new options = Hash.new show = AbtUsage.new +# setup timestamp. +logger.datetime_format = "%Y-%m-%d %H:%M:%S " + + +# TODO: used only until refactoring done. +myLogger = AbtLogManager.new + # deal with usage request. if ( ARGV.length == 0 || ( ARGV.length == 1 && ( ARGV[0] == '--help' || ARGV[0] == '-h' || ARGV[0].downcase == 'help' ) ) ) show.usage( "all" ) @@ -53,13 +60,13 @@ when "install", "-i" if ( ARGV.length == 2 && File.exist?( "#{$PACKAGE_PATH}#{ARGV[1]}.rb" ) ) options['package'] = ARGV[1] - logger.to_journal( "Starting to install #{options['package']}" ) + logger.info( "Starting to install #{options['package']}" ) # return if already installed. if ( system.package_installed( options['package'] ) ) puts "\n*** Package #{options['package']} is installed, might want to try reinstall? ***" puts "\n\tabt reinstall #{options['package']}\n\n" - logger.to_journal( "Completed install of #{options['package']}." ) + logger.info( "Completed install of #{options['package']}." ) exit end @@ -67,15 +74,15 @@ puts "\n\n" puts "*** Completed install of #{options['package']}. ***" puts "\n\n" - logger.to_journal( "Completed install of #{options['package']}." ) + logger.info( "Completed install of #{options['package']}." ) - if ( logger.cache_package( options['package'] ) ) + if ( myLogger.cache_package( options['package'] ) ) puts "\n\n" puts "*** Completed caching of package #{options['package']}. ***" puts "\n\n" - logger.to_journal( "Caching completed for package #{options['package']}." ) + logger.info( "Caching completed for package #{options['package']}." ) else - logger.to_journal( "Caching of package #{options['package']} failed.") + logger.info( "Caching of package #{options['package']} failed.") end else puts "*** #{options['package'].capitalize} install failed, see journal. ***" @@ -88,7 +95,7 @@ when "reinstall", "-ri" if ( ARGV.length == 2 && File.exist?( "#{$PACKAGE_PATH}#{ARGV[1]}.rb" ) ) options['package'] = ARGV[1] - logger.to_journal( "Starting to reinstall #{options['package']}" ) + logger.info( "Starting to reinstall #{options['package']}" ) # check if already installed. if ( system.package_installed( options['package'] ) ) @@ -118,7 +125,7 @@ puts "\n\n" puts "*** Completed reinstall of #{options['package']}. ***" puts "\n\n" - logger.to_journal( "Completed reinstall of #{options['package']}." ) + logger.info( "Completed reinstall of #{options['package']}." ) else puts "*** #{options['package'].capitalize} reinstall failed, see journal. ***" end @@ -131,14 +138,14 @@ if ( ARGV.length == 2 ) options['package'] = ARGV[1] puts "Starting to remove #{options['package']}." - logger.to_journal( "Starting to remove #{options['package']}." ) + logger.info( "Starting to remove #{options['package']}." ) # return if not installed. if ( !( system.package_installed( options['package'] ) ) ) puts "\n\n" puts "*** No need to remove #{options['package']}, it was not installed! ***" puts "\n\n" - logger.to_journal( "Completed removal of #{options['package']}." ) + logger.info( "Completed removal of #{options['package']}." ) exit end @@ -147,7 +154,7 @@ puts "\n\n" puts "*** Completed removal of #{options['package']}. ***" puts "\n\n" - logger.to_journal( "Completed removal of #{options['package']}." ) + logger.info( "Completed removal of #{options['package']}." ) end else show.usage( "packages" ) @@ -179,7 +186,7 @@ when "search", "-s" if ( ARGV.length == 2 ) options['searchString'] = ARGV[1] - logger.to_journal( "Starting search of package descriptions for : #{options['searchString']}" ) + logger.info( "Starting search of package descriptions for : #{options['searchString']}" ) searchResults = reporter.search_package_descriptions( options['searchString'].chomp ) if ( searchResults.empty? ) puts "\nNothing found matching your search query." @@ -191,7 +198,7 @@ searchResults.each_pair { |name, description| puts "#{name} \t: #{description}" } end - logger.to_journal( "Completed search of package descriptions for : #{options['searchString']}" ) + logger.info( "Completed search of package descriptions for : #{options['searchString']}" ) else show.usage( "queries" ) exit @@ -210,10 +217,10 @@ when "show-details" if ( ARGV.length == 2 && File.exist?( $PACKAGE_PATH + ARGV[1] + ".rb" ) ) options['pkg'] = ARGV[1] - logger.to_journal( "Starting show details for #{options['pkg']}" ) + logger.info( "Starting show details for #{options['pkg']}" ) if ( reporter.show_package_details( options['pkg'] ) ) - logger.to_journal( "Completed show details for #{options['pkg']}" ) + logger.info( "Completed show details for #{options['pkg']}" ) else puts "Problems processing the details for #{options['pkg']}." end @@ -364,7 +371,7 @@ # abt news | -n when "news", "-n" - logger.to_journal( "Starting to retrieve AbTLinux news." ) + logger.info( "Starting to retrieve AbTLinux news." ) # abtlinux.org news feeds. puts "\n" @@ -385,24 +392,24 @@ # display the file contents. reporter.show_journal( $ABTNEWS_LOG ) - logger.to_journal( "Completed the retrieval of AbTLinux news." ) + logger.info( "Completed the retrieval of AbTLinux news." ) # abt [-d | download ] <package> when "download", "-d" if ( ARGV.length == 2 && File.exist?( $PACKAGE_PATH + ARGV[1] + ".rb" ) ) options['pkg'] = ARGV[1] - logger.to_journal( "Starting to download " + options['pkg'] ) + logger.info( "Starting to download " + options['pkg'] ) manager = AbtDownloadManager.new if ( manager.retrieve_package_source( options['pkg'], $SOURCES_REPOSITORY ) ) - logger.to_journal( "Finished download for " + options['pkg'] ) + logger.info( "Finished download for " + options['pkg'] ) puts "\n"; print "Downloading of #{options['pkg']} to #{$SOURCES_REPOSITORY} " puts "completed." puts "\n\n" else - logger.to_journal( "FAILURE to download " + options['pkg'] ) + logger.info( "FAILURE to download " + options['pkg'] ) puts "\n" puts "DOWNLOADING - failed to download source for #{options['pkg']}" puts "\n\n" @@ -424,13 +431,13 @@ when "purge-src" if ( ARGV.length == 1 ) - logger.to_journal( "Starting to purge sources from packages that are not installed.") + logger.info( "Starting to purge sources from packages that are not installed.") if ( system.cleanup_package_sources ) puts "\nPurged sources from packages that are not installed." - logger.to_journal( "Finished purging sources from packages that are not installed.") + logger.info( "Finished purging sources from packages that are not installed.") else puts "\nUnable to complete a purge of sources from packages that are not installed, see journal." - logger.to_journal( "Cleanup of package sources encountered problems, see journal." ) + logger.info( "Cleanup of package sources encountered problems, see journal." ) end else show.usage( "fix" ) @@ -440,15 +447,15 @@ when "verify-files" if ( ARGV.length == 2 ) options['package'] = ARGV[1] - logger.to_journal( "Starting verifcation of files for package : #{options['package']}.") + logger.info( "Starting verifcation of files for package : #{options['package']}.") if system.verify_installed_files( options['package'] ) puts "\nInstalled files verified for package : #{options['package']}" - logger.to_journal( "Finished verifcation of files for package : #{options['package']}.") + logger.info( "Finished verifcation of files for package : #{options['package']}.") exit end - logger.to_journal( "Finished verifcation of files for package : #{options['package']}.") + logger.info( "Finished verifcation of files for package : #{options['package']}.") puts "/nInstalled files verification for package : #{options['package']} failed, see journal." else show.usage( "fix" ) @@ -478,18 +485,18 @@ when "verify-integrity" if ( ARGV.length == 2 ) options['package'] = ARGV[1] - logger.to_journal( "Starting verification of files for package : #{options['package']}.") + logger.info( "Starting verification of files for package : #{options['package']}.") integrityHash = system.verify_package_integrity( options['package'] ) if integrityHash.empty? puts "\nInstalled files integrity check completed without problems being detected for package : #{options['package']}" - logger.to_journal( "Finished verification of files for package : #{options['package']}.") + logger.info( "Finished verification of files for package : #{options['package']}.") exit end integrityHash.each_pair {|file, problem| puts "Problem with #{file} from package #{problem}" - logger.to_journal( "Problem with #{file} from package #{problem}." ) + logger.info( "Problem with #{file} from package #{problem}." ) } puts "/nInstalled files integrity check failed for package : #{options['package']} failed, see journal." Modified: src/trunk/abtconfig.rb =================================================================== --- src/trunk/abtconfig.rb 2007-08-16 19:10:58 UTC (rev 424) +++ src/trunk/abtconfig.rb 2007-09-03 20:11:20 UTC (rev 425) @@ -38,6 +38,7 @@ require 'fileutils' require 'find' +require 'logger' require 'digest/sha1' # default paths / locations. @@ -47,7 +48,7 @@ $ABT_TMP = "/tmp/abt" $ABTNEWS_LOG = "#{$ABT_LOGS}/news.log" $BUILD_LOCATION = "/usr/src" -$JOURNAL = "#{$ABT_LOGS}/journal.log" +$JOURNAL = "#{$ABT_LOGS}/journal.log, File::WRONLY | File::APPEND | File::CREAT" # use logger.info. $PACKAGE_INSTALLED = "#{$ABT_STATE}/installed" $PACKAGE_CACHED = "#{$ABT_STATE}/cached" $PACKAGE_PATH = "#{$ABT_CACHES}/packages/" @@ -63,6 +64,7 @@ $REMOVE_BUILD_SOURCES = true $TIMESTAMP = Time.now.strftime( "%Y-%m-%d %H:%M:%S (%Z)" ) $PAGER_DEFAULT = "less -R -E -X -f" +$LOG_LEVEL = "Logger::DEBUG" # default URL listing. Modified: src/trunk/abtdownloadmanager.rb =================================================================== --- src/trunk/abtdownloadmanager.rb 2007-08-16 19:10:58 UTC (rev 424) +++ src/trunk/abtdownloadmanager.rb 2007-09-03 20:11:20 UTC (rev 425) @@ -55,17 +55,17 @@ ## def retrieve_package_source( packageName, destination ) require "#{$PACKAGE_PATH}#{packageName}" - logger = AbtLogManager.new + logger = Logger.new($JOURNAL) package = eval( packageName.capitalize + '.new' ) if ( File.exist?( "#{destination}/#{File.basename( package.srcUrl )}" ) ) - logger.to_journal( "Download not needed, existing source found for #{packageName}" ) + logger.info( "Download not needed, existing source found for #{packageName}" ) return true end Dir.chdir( destination ) if ( system( "wget #{package.srcUrl}" ) ) - logger.to_journal( "Download completed for #{packageName}" ) + logger.info( "Download completed for #{packageName}" ) return true end @@ -98,7 +98,7 @@ require 'rss/1.0' require 'rss/2.0' newsLog = "" - logger = AbtLogManager.new + logger = Logger.new( $JOURNAL) # ensure we have our news logfile. if ( cleanLog ) @@ -109,7 +109,7 @@ # pick up the abtlinux.org news feed. if ( !news = Net::HTTP.get( URI.parse( uri ) ) ) - logger.to_journal( "Failed to retrieve news feed #{uri}." ) + logger.info( "Failed to retrieve news feed #{uri}." ) return false end @@ -121,8 +121,7 @@ end if ( rss.nil? ) - logger.to_journal( "Failed to display news feed as feed #{uri} " + - "is not RSS 1.0/2.0." ) + logger.info( "Failed to display news feed as feed #{uri} is not RSS 1.0/2.0." ) return false else newsLog << "*** #{rss.channel.title} ***\n" @@ -169,16 +168,16 @@ # otherwise false. ## def validated( hashvalue, path ) - logger = AbtLogManager.new + logger = Logger.new( $JOURNAL ) if hashvalue == Digest::SHA1.hexdigest( path ) puts "Source hash validated successfully..." - logger.to_journal( "Validated sources successfully..." ) + logger.info( "Validated sources successfully..." ) return true end puts "Source hash failed validation..." - logger.to_journal( "Validating sources failed..." ) + logger.info( "Validating sources failed..." ) return false end end Modified: src/trunk/abtlogmanager.rb =================================================================== --- src/trunk/abtlogmanager.rb 2007-08-16 19:10:58 UTC (rev 424) +++ src/trunk/abtlogmanager.rb 2007-09-03 20:11:20 UTC (rev 425) @@ -78,12 +78,13 @@ # <b>RETURN</b> <i>AbtLogManager</i> - an initialized AbtLogManager object. ## def initialize + logger = Logger.new( $JOURNAL ) [$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 ) - to_journal( "Created directory: #{dir}." ) + logger.info( "Created directory: #{dir}." ) end } end @@ -284,21 +285,4 @@ return false # package not installed, can't cache it. end - ## - # Provides logging of given message to the AbTLinux journal. Message logged - # with date timestamp. - # - # <b>PARAM</b> <i>String</i> - Message to be added to the log. - # - # <b>RETURN</b> <i>boolean</i> True if logged, otherwise false. - ## - def to_journal( message ) - if ( log = File.new( $JOURNAL, "a+" ) ) - log << "#{$TIMESTAMP} : #{message}\n" - log.close - return true - end - - return false - end end Modified: src/trunk/abtpackagemanager.rb =================================================================== --- src/trunk/abtpackagemanager.rb 2007-08-16 19:10:58 UTC (rev 424) +++ src/trunk/abtpackagemanager.rb 2007-09-03 20:11:20 UTC (rev 425) @@ -92,8 +92,11 @@ require "#{$PACKAGE_PATH}#{package}" sw = eval( "#{package.capitalize}.new" ) queuer = AbtQueueManager.new - logger = AbtLogManager.new + logger = Logger.new( $JOURNAL ) + # TODO: refactor myLogger: + myLogger = AbtLogManager.new + # get package details. details = sw.details @@ -103,7 +106,7 @@ puts "\n*** Adding #{package} to the INSTALL QUEUE. ***" if ( verbose ) if ( !queuer.action_package_queue( package, "install", "add" ) ) - logger.to_journal( "Failed to add #{package} to install queue." ) + logger.info( "Failed to add #{package} to install queue." ) return false end @@ -111,48 +114,44 @@ puts "\n*** Processing the PRE section for #{package}. ***" if (verbose ) if ( !sw.pre ) - logger.to_journal( "Failed to process pre-section in the " + - "package description of #{package}." ) + logger.info( "Failed to process pre-section in the package description of #{package}." ) return false else - logger.to_journal( "Finished #{package} pre section." ) + logger.info( "Finished #{package} pre section." ) end # configure section. puts "\n*** Processing the CONFIGURE section for #{package}. ***" if ( verbose ) if ( !sw.configure( verbose ) ) - logger.to_journal( "Failed to process configure section in the " + - "package description of #{package}." ) + logger.info( "Failed to process configure section in the package description of #{package}." ) return false else - logger.to_journal( "Finished #{package} configure section." ) + logger.info( "Finished #{package} configure section." ) end # build section. puts "\n*** Processing the BUILD section for #{package}. ***" if ( verbose ) if ( !sw.build( verbose ) ) - logger.to_journal( "Failed to process build section in the " + - "package description of #{package}." ) + logger.info( "Failed to process build section in the package description of #{package}." ) return false else - if ( !logger.log_package_build( sw.name.downcase ) ) - logger.to_journal( "Failed to create a package build log." ) + if ( !myLogger.log_package_build( sw.name.downcase ) ) + logger.info( "Failed to create a package build log." ) return false end - logger.to_journal( "Finished #{package} build section." ) + logger.info( "Finished #{package} build section." ) end # preinstall section. puts "\n*** Processing the PREINSTALL section for #{package}. ***" if ( verbose ) if ( !sw.preinstall ) - logger.to_journal( "Failed to process preinstall section in the " + - "package description of #{package}." ) + logger.info( "Failed to process preinstall section in the package description of #{package}." ) return false else - logger.to_journal( "Finished #{package} preinstall section." ) + logger.info( "Finished #{package} preinstall section." ) end # install section. @@ -160,43 +159,42 @@ if ( !sw.install ) # rollback installed files if any and remove install log. - logger.to_journal( "Failed to process install section in the " + - "package description of #{package}." ) - logger.log_package_install( sw.name.downcase ) - logger.to_journal( "***Starting rollback of #{package} install and removing install log." ) + logger.info( "Failed to process install section in the package description of #{package}." ) + myLogger.log_package_install( sw.name.downcase ) + logger.info( "***Starting rollback of #{package} install and removing install log." ) roll_back( "install", details ) return false else - logger.log_package_install( sw.name.downcase ) - logger.log_package_integrity( sw.name.downcase ) + myLogger.log_package_install( sw.name.downcase ) + myLogger.log_package_integrity( sw.name.downcase ) # cleanup tmp files from installwatch. File.delete( "#{$ABT_TMP}/#{details['Source location']}.watch" ) - logger.to_journal( "Finished #{package} install section." ) + logger.info( "Finished #{package} install section." ) end # post section. puts "\n*** Processing the POST section for #{package}. ***" if ( verbose ) if ( !sw.post ) - logger.to_journal( "Failed to process post section in the package description of #{package}." ) + logger.info( "Failed to process post section in the package description of #{package}." ) return false else - logger.to_journal( "Finished #{package} post section." ) + logger.info( "Finished #{package} post section." ) end # clean out build sources. puts "\n*** Cleaning up the sources for #{package}. ***" if ( verbose ) if ( !sw.remove_build ) - logger.to_journal( "Failed to remove the build sources for #{package}." ) + logger.info( "Failed to remove the build sources for #{package}." ) #return false # commented out as this is not a reason to fail. end # remove pacakge from install queue. if ( !queuer.action_package_queue( sw.name.downcase, "install", "remove" ) ) - logger.to_journal( "Failed to remove #{sw.name.downcase} from install queue." ) + logger.info( "Failed to remove #{sw.name.downcase} from install queue." ) end return true # install completed! @@ -213,22 +211,24 @@ # otherwise false. ## def reinstall_package( package ) - logger = AbtLogManager.new + logger = Logger.new( $JOURNAL ) + # TODO: look into refactoring myLogger: + myLogger = AbtLogManager.new if ( install_package( package ) ) puts "\n\n" puts "*** Completed reinstall of #{package}. ***" puts "\n\n" - logger.to_journal( "Completed reinstall of #{package}." ) + logger.info( "Completed reinstall of #{package}." ) - if ( logger.cache_package( package ) ) + if ( myLogger.cache_package( package ) ) puts "\n\n" puts "*** Completed caching of package #{package}. ***" puts "\n\n" - logger.to_journal( "Caching completed for package #{package}." ) + logger.info( "Caching completed for package #{package}." ) return true else - logger.to_journal( "Caching of package #{package} failed.") + logger.info( "Caching of package #{package} failed.") end end @@ -246,7 +246,9 @@ def remove_package( package ) require "#{$PACKAGE_PATH}#{package}" sw = eval( "#{package.capitalize}.new" ) - logger = AbtLogManager.new + # TODO: refactor myLogger. + myLogger = AbtLogManager.new + logger = Logger.new( $JOURNAL ) # get package details. details = sw.details @@ -254,7 +256,7 @@ # TODO: something with possible /etc or other configure files before removal, check maybe integrity for changes since install? # remove listings in install log. - installLog = logger.get_log( package, 'install' ) + installLog = myLogger.get_log( package, 'install' ) # only process install log if it exists, continue on with # journal log warning. @@ -262,24 +264,24 @@ IO.foreach( installLog ) do |line| if File.exist?( line.chomp ) FileUtils.rm( line.chomp ) - logger.to_journal( "Removed file #{line.chomp} from #{package} install log.") + logger.info( "Removed file #{line.chomp} from #{package} install log.") else - logger.to_journal( "Unable to remove #{line.chomp} from #{package} install log, does not exist.") + logger.info( "Unable to remove #{line.chomp} from #{package} install log, does not exist.") # do not return false, removed is ok, just put warning in journal log. end end - logger.to_journal( "Removed files from #{File.basename( installLog )} for #{package}." ) + logger.info( "Removed files from #{File.basename( installLog )} for #{package}." ) else puts "Install log missing for #{package}, see journal..." - logger.to_journal( "Install log was missing for #{package}..." ) - logger.to_journal( "...continuing to remove package from install listing, but might have files still installed on system." ) + logger.info( "Install log was missing for #{package}..." ) + logger.info( "...continuing to remove package from install listing, but might have files still installed on system." ) end # remove entry in install listing. FileUtils.remove_dir( "#{$PACKAGE_INSTALLED}/#{details['Source location']}" ) - logger.to_journal( "Removed entry from installed packages." ) + logger.info( "Removed entry from installed packages." ) return true end Modified: src/trunk/abtqueuemanager.rb =================================================================== --- src/trunk/abtqueuemanager.rb 2007-08-16 19:10:58 UTC (rev 424) +++ src/trunk/abtqueuemanager.rb 2007-09-03 20:11:20 UTC (rev 425) @@ -53,7 +53,7 @@ ## def action_package_queue( package, queue, action="add" ) require 'fileutils' - logger = AbtLogManager.new + logger = Logger.new( $JOURNAL ) queueFile = "" # used to hold the queue location. # want to name install queue differently from log files. @@ -74,10 +74,9 @@ !checkingQueue.collect{ |i| i.split( '|' )[0] }.include?( package ) ) log.puts "#{package}|#{$TIMESTAMP}" - logger.to_journal( "Added #{package} to #{queue} queue." ) + logger.info( "Added #{package} to #{queue} queue." ) else - logger.to_journal( - "Did not add #{package} to #{queue}, already exists." ) + logger.info( "Did not add #{package} to #{queue}, already exists." ) end log.close @@ -108,7 +107,7 @@ return true end - logger.to_journal( "Failed to open #{queueFile}." ) + logger.info( "Failed to open #{queueFile}." ) return false end end Modified: src/trunk/abtreportmanager.rb =================================================================== --- src/trunk/abtreportmanager.rb 2007-08-16 19:10:58 UTC (rev 424) +++ src/trunk/abtreportmanager.rb 2007-09-03 20:11:20 UTC (rev 425) @@ -86,7 +86,7 @@ return true end - logger.to_journal( "[AbtReportManger::showPackageDetails] - failed to show details for ${package}." ) + logger.debug( "[AbtReportManger::showPackageDetails] - failed to show details for ${package}." ) return false end Modified: src/trunk/abtsystemmanager.rb =================================================================== --- src/trunk/abtsystemmanager.rb 2007-08-16 19:10:58 UTC (rev 424) +++ src/trunk/abtsystemmanager.rb 2007-09-03 20:11:20 UTC (rev 425) @@ -79,12 +79,12 @@ # false. ## def cleanup_package_sources( verbose=true) - logger = AbtLogManager.new + logger = Logger.new( $JOURNAL ) sourcesArray = Array.new if ( Dir.entries( $PACKAGE_INSTALLED ) - [ '.', '..' ] ).empty? FileUtils.remove Dir.glob( "#{$SOURCES_REPOSITORY}/*" ), :verbose => verbose, :force => true - logger.to_journal( "Cleanup of package sources done, encountered an empty installation listing?" ) + logger.info( "Cleanup of package sources done, encountered an empty installation listing?" ) return true else Dir.foreach( $PACKAGE_INSTALLED ) { |package| @@ -105,7 +105,7 @@ end if ( Dir.entries( $SOURCES_REPOSITORY ) - [ '.', '..' ] ).empty? - logger.to_journal( "Cleanup of package sources done, encountered an empty sources repository?" ) + logger.info( "Cleanup of package sources done, encountered an empty sources repository?" ) return false else if ( verbose ) @@ -132,22 +132,24 @@ # otherwise false. ## def verify_installed_files( package ) - logger = AbtLogManager.new + logger = Logger.new( $JOURNAL ) + # TODO: refactor myLogger: + myLogger = AbtLogManager.new if !package_installed( package ) - logger.to_journal( "Unable to verify installed files for #{package}, it's not installed!") + logger.info( "Unable to verify installed files for #{package}, it's not installed!") return false end - if !File.exist?( logger.get_log( package, 'install' ) ) - logger.to_journal( "Unable to verify installed files for #{package}, installed package but install log missing!" ) + if !File.exist?( myLogger.get_log( package, 'install' ) ) + logger.info( "Unable to verify installed files for #{package}, installed package but install log missing!" ) return false end failure = false # marker after checking all files to determine failure. - File.open( logger.get_log( package, "install" ) ).each { |line| + File.open( myLogger.get_log( package, "install" ) ).each { |line| if !File.exist?( line.chomp ) - logger.to_journal( "The file : #{line.chomp} is missing for #{package}." ) + logger.info( "The file : #{line.chomp} is missing for #{package}." ) failure = true end } @@ -195,23 +197,25 @@ require "#{$PACKAGE_PATH}#{package}" sw = eval( "#{package.capitalize}.new" ) - logger = AbtLogManager.new + # TODO: refactor myLogger. + myLogger = AbtLogManager.new + logger = Logger.new( $JOURNAL ) integrityHash = Hash.new # holds files failing interity check. if !File.exist?( "#{$PACKAGE_INSTALLED}/#{sw.srcDir}/#{sw.srcDir}.integrity" ) - logger.to_journal( "Unable to check file integrity for #{package}, integrity log missing!" ) + logger.info( "Unable to check file integrity for #{package}, integrity log missing!" ) return integrityHash # empty hash, no entries. else # FIXME: pickup each integrity file and check each entry (filename integrityvalue) - File.open( logger.get_log( package, "integrity" ) ).each { |line| + File.open( myLogger.get_log( package, "integrity" ) ).each { |line| # seperate the filepath and integrity value. lineArray = line.split( ':' ) # check for existing file. if !File.exist?( lineArray[0].chomp ) - logger.to_journal( "The file : #{lineArray[0].chomp} is missing for #{package}." ) + logger.info( "The file : #{lineArray[0].chomp} is missing for #{package}." ) # any failure or discrepency is added to hash: file => package + problem integrityHash = integrityHash.merge( Hash[ lineArray[0].chomp => "#{package} - file missing." ] ) Modified: src/trunk/testabtlogmanager.rb =================================================================== --- src/trunk/testabtlogmanager.rb 2007-08-16 19:10:58 UTC (rev 424) +++ src/trunk/testabtlogmanager.rb 2007-09-03 20:11:20 UTC (rev 425) @@ -105,10 +105,4 @@ assert( @logger.cache_package( "ipc" ), "test_cache_package()" ) end - ## - # Test method for 'AbtLogManager.test_to_journal()' - ## - def test_to_journal() - assert( @logger.to_journal( "Test message from AbtTestSuite." ), "test_to_journal()" ) - end end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: ABout T. L. <esc...@us...> - 2007-09-03 17:21:41
|
IzE1OiBSZWZhY3RvciB1c2Ugb2YgTG9nTWFuYWdlciBvdXQgb2YgY29kZSBiYXNlDQotLS0tLS0t LS0tLS0tLS0tLS0tLSstLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tDQogIFJlcG9ydGVyOiAgZXJpY3MgIHwgICAgICAgT3duZXI6ICBlcmljcyAg ICAgIA0KICAgICAgVHlwZTogIHRhc2sgICB8ICAgICAgU3RhdHVzOiAgYXNzaWduZWQgICANCiAg UHJpb3JpdHk6ICBtYWpvciAgfCAgIE1pbGVzdG9uZTogIHZlcnNpb25fMC45DQogQ29tcG9uZW50 OiAgYWJ0ICAgIHwgICAgIFZlcnNpb246ICAwLjggICAgICAgIA0KUmVzb2x1dGlvbjogICAgICAg ICB8ICAgIEtleXdvcmRzOiAgICAgICAgICAgICANCi0tLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCkNoYW5n ZXMgKGJ5IGVyaWNzKToNCg0KICAqIHR5cGU6ICBkZWZlY3QgPT4gdGFzaw0KDQotLSANClRpY2tl dCBVUkw6IDxodHRwOi8vdHJhYy5hYnRsaW51eC5vcmcvdGlja2V0LzE1I2NvbW1lbnQ6Mj4NCkFC b3V0IFRpbWUgTGludXggPGh0dHA6Ly93d3cuYWJ0bGludXgub3JnPg0KSXQncyBhYm91dCB0aW1l IHNvbWVvbmUgZGlkIGl0IHJpZ2h0Li4u |
From: ABout T. L. <esc...@us...> - 2007-09-03 14:03:01
|
IzE1OiBSZWZhY3RvciB1c2Ugb2YgTG9nTWFuYWdlciBvdXQgb2YgY29kZSBiYXNlDQotLS0tLS0t LS0tLS0tLS0tLS0tLS0rLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tDQogIFJlcG9ydGVyOiAgZXJpY3MgICB8ICAgICAgIE93bmVyOiAgZXJpY3Mg ICAgICANCiAgICAgIFR5cGU6ICBkZWZlY3QgIHwgICAgICBTdGF0dXM6ICBhc3NpZ25lZCAgIA0K ICBQcmlvcml0eTogIG1ham9yICAgfCAgIE1pbGVzdG9uZTogIHZlcnNpb25fMC45DQogQ29tcG9u ZW50OiAgYWJ0ICAgICB8ICAgICBWZXJzaW9uOiAgMC44ICAgICAgICANClJlc29sdXRpb246ICAg ICAgICAgIHwgICAgS2V5d29yZHM6ICAgICAgICAgICAgIA0KLS0tLS0tLS0tLS0tLS0tLS0tLS0t Ky0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0K Q2hhbmdlcyAoYnkgZXJpY3MpOg0KDQogICogc3RhdHVzOiAgbmV3ID0+IGFzc2lnbmVkDQoNCi0t IA0KVGlja2V0IFVSTDogPGh0dHA6Ly90cmFjLmFidGxpbnV4Lm9yZy90aWNrZXQvMTUjY29tbWVu dDoxPg0KQUJvdXQgVGltZSBMaW51eCA8aHR0cDovL3d3dy5hYnRsaW51eC5vcmc+DQpJdCdzIGFi b3V0IHRpbWUgc29tZW9uZSBkaWQgaXQgcmlnaHQuLi4= |
From: ABout T. L. <esc...@us...> - 2007-09-03 14:02:54
|
IzE1OiBSZWZhY3RvciB1c2Ugb2YgTG9nTWFuYWdlciBvdXQgb2YgY29kZSBiYXNlDQotLS0tLS0t LS0tLS0tLS0tLS0tLSstLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tDQogUmVwb3J0ZXI6ICBlcmljcyAgIHwgICAgICAgT3duZXI6ICBlcmljcyAg ICAgIA0KICAgICBUeXBlOiAgZGVmZWN0ICB8ICAgICAgU3RhdHVzOiAgbmV3ICAgICAgICANCiBQ cmlvcml0eTogIG1ham9yICAgfCAgIE1pbGVzdG9uZTogIHZlcnNpb25fMC45DQpDb21wb25lbnQ6 ICBhYnQgICAgIHwgICAgIFZlcnNpb246ICAwLjggICAgICAgIA0KIEtleXdvcmRzOiAgICAgICAg ICB8ICANCi0tLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCiBBYnRMb2dNYW5hZ2VyIGNsYXNzIG5vdCBuZWVk ZWQsIGxvZ2dpbmcgcHJvdmlkZWQgYnkgY29yZSBsaWJzOg0KDQogaHR0cDovL3d3dy5ydWJ5LWRv Yy5vcmcvY29yZS9jbGFzc2VzL0xvZ2dlci5odG1sDQoNCi0tIA0KVGlja2V0IFVSTDogPGh0dHA6 Ly90cmFjLmFidGxpbnV4Lm9yZy90aWNrZXQvMTU+DQpBQm91dCBUaW1lIExpbnV4IDxodHRwOi8v d3d3LmFidGxpbnV4Lm9yZz4NCkl0J3MgYWJvdXQgdGltZSBzb21lb25lIGRpZCBpdCByaWdodC4u Lg== |
From: ABout T. L. <esc...@us...> - 2007-09-03 13:32:15
|
IzI6IExvZyBpbml0aWFsIGZpbGUgcGVybWlzc2lvbnMgb24gaW5zdGFsbA0KLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0rLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLQ0KICBSZXBvcnRlcjogIGVyaWNzICAgICB8ICAgICAgIE93bmVyOiAgZXJpY3MgICAg ICANCiAgICAgIFR5cGU6ICB3aXNobGlzdCAgfCAgICAgIFN0YXR1czogIGNsb3NlZCAgICAgDQog IFByaW9yaXR5OiAgbWlub3IgICAgIHwgICBNaWxlc3RvbmU6ICB2ZXJzaW9uXzAuOQ0KIENvbXBv bmVudDogIGFidCAgICAgICB8ICAgICBWZXJzaW9uOiAgMC44ICAgICAgICANClJlc29sdXRpb246 ICBmaXhlZCAgICAgfCAgICBLZXl3b3JkczogICAgICAgICAgICAgDQotLS0tLS0tLS0tLS0tLS0t LS0tLS0tLSstLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tDQpDaGFuZ2VzIChieSBlcmljcyk6DQoNCiAgKiBzdGF0dXM6ICBuZXcgPT4gY2xvc2VkDQog ICogcmVzb2x1dGlvbjogID0+IGZpeGVkDQoNCkNvbW1lbnQ6DQoNCiBDb21wbGV0ZWQsIHNlZSBj b21taXQgaGlzdG9yeS4NCg0KLS0gDQpUaWNrZXQgVVJMOiA8aHR0cDovL3RyYWMuYWJ0bGludXgu b3JnL3RpY2tldC8yI2NvbW1lbnQ6Mz4NCkFCb3V0IFRpbWUgTGludXggPGh0dHA6Ly93d3cuYWJ0 bGludXgub3JnPg0KSXQncyBhYm91dCB0aW1lIHNvbWVvbmUgZGlkIGl0IHJpZ2h0Li4u |
From: ABout T. L. <esc...@us...> - 2007-09-03 13:31:07
|
IzI6IExvZyBpbml0aWFsIGZpbGUgcGVybWlzc2lvbnMgb24gaW5zdGFsbA0KLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0rLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLQ0KICBSZXBvcnRlcjogIGVyaWNzICAgICB8ICAgICAgIE93bmVyOiAgZXJpY3MgICAg ICANCiAgICAgIFR5cGU6ICB3aXNobGlzdCAgfCAgICAgIFN0YXR1czogIG5ldyAgICAgICAgDQog IFByaW9yaXR5OiAgbWlub3IgICAgIHwgICBNaWxlc3RvbmU6ICB2ZXJzaW9uXzAuOQ0KIENvbXBv bmVudDogIGFidCAgICAgICB8ICAgICBWZXJzaW9uOiAgMC44ICAgICAgICANClJlc29sdXRpb246 ICAgICAgICAgICAgfCAgICBLZXl3b3JkczogICAgICAgICAgICAgDQotLS0tLS0tLS0tLS0tLS0t LS0tLS0tLSstLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tDQpDaGFuZ2VzIChieSBlcmljcyk6DQoNCiAgKiB2ZXJzaW9uOiAgMS4wID0+IDAuOA0KICAq IG1pbGVzdG9uZTogIHZlcnNpb25fMS54ID0+IHZlcnNpb25fMC45DQoNCi0tIA0KVGlja2V0IFVS TDogPGh0dHA6Ly90cmFjLmFidGxpbnV4Lm9yZy90aWNrZXQvMiNjb21tZW50OjI+DQpBQm91dCBU aW1lIExpbnV4IDxodHRwOi8vd3d3LmFidGxpbnV4Lm9yZz4NCkl0J3MgYWJvdXQgdGltZSBzb21l b25lIGRpZCBpdCByaWdodC4uLg== |
From: <esc...@us...> - 2007-08-16 19:10:56
|
Revision: 424 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=424&view=rev Author: eschabell Date: 2007-08-16 12:10:58 -0700 (Thu, 16 Aug 2007) Log Message: ----------- Regenerated api docs. Modified Paths: -------------- src/trunk/doc/classes/AbtSystemManager.html src/trunk/doc/created.rid src/trunk/doc/files/abtsystemmanager_rb.html Modified: src/trunk/doc/classes/AbtSystemManager.html =================================================================== --- src/trunk/doc/classes/AbtSystemManager.html 2007-08-16 19:10:08 UTC (rev 423) +++ src/trunk/doc/classes/AbtSystemManager.html 2007-08-16 19:10:58 UTC (rev 424) @@ -220,7 +220,7 @@ 113: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"===================================="</span> 114: <span class="ruby-keyword kw">end</span> 115: -116: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">foreach</span>( <span class="ruby-identifier">$SOURCES_REPOSITORY</span> ) { <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">remove</span>( <span class="ruby-identifier">file</span>, <span class="ruby-identifier">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">verbose</span>, <span class="ruby-identifier">:force</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> ) <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">file</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">"."</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">file</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">".."</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">sourcesArray</span>.<span class="ruby-identifier">include?</span>( <span class="ruby-identifier">file</span> ) ) } +116: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">foreach</span>( <span class="ruby-identifier">$SOURCES_REPOSITORY</span> ) { <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">remove</span>( <span class="ruby-node">"#{$SOURCES_REPOSITORY}/#{file}"</span>, <span class="ruby-identifier">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">verbose</span>, <span class="ruby-identifier">:force</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> ) <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">file</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">"."</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">file</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">".."</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">sourcesArray</span>.<span class="ruby-identifier">include?</span>( <span class="ruby-identifier">file</span> ) ) } 117: 118: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">verbose</span> ) 119: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"====================================\n"</span> @@ -253,10 +253,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000007_source')" id="l_M000007_source">show source</a> ]</p> <div id="M000007_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 206</span> -206: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fix_package</span>( <span class="ruby-identifier">package</span> ) -207: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -208: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 245</span> +245: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fix_package</span>( <span class="ruby-identifier">package</span> ) +246: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +247: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -282,18 +282,18 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000010_source')" id="l_M000010_source">show source</a> ]</p> <div id="M000010_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 244</span> -244: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">package_installed</span>( <span class="ruby-identifier">package</span> ) -245: <span class="ruby-identifier">require</span> <span class="ruby-node">"#{$PACKAGE_PATH}#{package}"</span> -246: <span class="ruby-identifier">sw</span> = <span class="ruby-identifier">eval</span>( <span class="ruby-node">"#{package.capitalize}.new"</span> ) -247: <span class="ruby-identifier">details</span> = <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">details</span> -248: -249: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">found_entry</span>( <span class="ruby-identifier">$PACKAGE_INSTALLED</span>, <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcDir</span> ) ) -250: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -251: <span class="ruby-keyword kw">end</span> -252: -253: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -254: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 283</span> +283: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">package_installed</span>( <span class="ruby-identifier">package</span> ) +284: <span class="ruby-identifier">require</span> <span class="ruby-node">"#{$PACKAGE_PATH}#{package}"</span> +285: <span class="ruby-identifier">sw</span> = <span class="ruby-identifier">eval</span>( <span class="ruby-node">"#{package.capitalize}.new"</span> ) +286: <span class="ruby-identifier">details</span> = <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">details</span> +287: +288: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">found_entry</span>( <span class="ruby-identifier">$PACKAGE_INSTALLED</span>, <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcDir</span> ) ) +289: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +290: <span class="ruby-keyword kw">end</span> +291: +292: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +293: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -318,10 +318,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000008_source')" id="l_M000008_source">show source</a> ]</p> <div id="M000008_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 218</span> -218: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_central_repo</span>( <span class="ruby-identifier">uri</span> ) -219: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -220: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 257</span> +257: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_central_repo</span>( <span class="ruby-identifier">uri</span> ) +258: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +259: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -347,10 +347,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000009_source')" id="l_M000009_source">show source</a> ]</p> <div id="M000009_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 231</span> -231: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_package_tree_location</span>( <span class="ruby-identifier">location</span> ) -232: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -233: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 270</span> +270: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_package_tree_location</span>( <span class="ruby-identifier">location</span> ) +271: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +272: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -378,30 +378,29 @@ <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 134</span> 134: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verify_installed_files</span>( <span class="ruby-identifier">package</span> ) 135: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">AbtLogManager</span>.<span class="ruby-identifier">new</span> -136: <span class="ruby-identifier">system</span> = <span class="ruby-constant">AbtSystemManager</span>.<span class="ruby-identifier">new</span> -137: -138: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">system</span>.<span class="ruby-identifier">package_installed</span>( <span class="ruby-identifier">package</span> ) -139: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"Unable to verify installed files for #{package}, it's not installed!"</span>) -140: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -141: <span class="ruby-keyword kw">end</span> -142: -143: <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">logger</span>.<span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'install'</span> ) ) -144: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"Unable to verify installed files for #{package}, installed package but install log missing!"</span> ) -145: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -146: <span class="ruby-keyword kw">end</span> -147: -148: <span class="ruby-identifier">failure</span> = <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># marker after checking all files to determine failure.</span> -149: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>( <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">"install"</span> ) ).<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> -150: <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">line</span>.<span class="ruby-identifier">chomp</span> ) -151: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"The file : #{line.chomp} is missing for #{package}."</span> ) -152: <span class="ruby-identifier">failure</span> = <span class="ruby-keyword kw">true</span> -153: <span class="ruby-keyword kw">end</span> -154: } -155: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">failure</span> -156: -157: <span class="ruby-comment cmt"># all files passed check.</span> -158: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -159: <span class="ruby-keyword kw">end</span> +136: +137: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">package_installed</span>( <span class="ruby-identifier">package</span> ) +138: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"Unable to verify installed files for #{package}, it's not installed!"</span>) +139: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +140: <span class="ruby-keyword kw">end</span> +141: +142: <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">logger</span>.<span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'install'</span> ) ) +143: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"Unable to verify installed files for #{package}, installed package but install log missing!"</span> ) +144: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +145: <span class="ruby-keyword kw">end</span> +146: +147: <span class="ruby-identifier">failure</span> = <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># marker after checking all files to determine failure.</span> +148: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>( <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">"install"</span> ) ).<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> +149: <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">line</span>.<span class="ruby-identifier">chomp</span> ) +150: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"The file : #{line.chomp} is missing for #{package}."</span> ) +151: <span class="ruby-identifier">failure</span> = <span class="ruby-keyword kw">true</span> +152: <span class="ruby-keyword kw">end</span> +153: } +154: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">failure</span> +155: +156: <span class="ruby-comment cmt"># all files passed check.</span> +157: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +158: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -426,10 +425,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show source</a> ]</p> <div id="M000005_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 181</span> -181: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verify_package_depends</span>( <span class="ruby-identifier">package</span> ) -182: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -183: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 180</span> +180: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verify_package_depends</span>( <span class="ruby-identifier">package</span> ) +181: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +182: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -448,7 +447,8 @@ </p> <p> <b>RETURN</b> <em>hash</em> - Empty hash if no problems found, otherwise -hash of problem files and their encountered errors. +hash of problem files and their encountered errors. Hash has keys of file +names and the values are the package name and the problem detected. </p> </div> <div class="sourcecode"> @@ -457,8 +457,47 @@ <pre> <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 194</span> 194: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verify_package_integrity</span>( <span class="ruby-identifier">package</span> ) -195: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -196: <span class="ruby-keyword kw">end</span> +195: <span class="ruby-identifier">require</span> <span class="ruby-node">"#{$PACKAGE_PATH}#{package}"</span> +196: <span class="ruby-identifier">sw</span> = <span class="ruby-identifier">eval</span>( <span class="ruby-node">"#{package.capitalize}.new"</span> ) +197: +198: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">AbtLogManager</span>.<span class="ruby-identifier">new</span> +199: <span class="ruby-identifier">integrityHash</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span> <span class="ruby-comment cmt"># holds files failing interity check.</span> +200: +201: <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-node">"#{$PACKAGE_INSTALLED}/#{sw.srcDir}/#{sw.srcDir}.integrity"</span> ) +202: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"Unable to check file integrity for #{package}, integrity log missing!"</span> ) +203: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">integrityHash</span> <span class="ruby-comment cmt"># empty hash, no entries.</span> +204: <span class="ruby-keyword kw">else</span> +205: +206: <span class="ruby-comment cmt"># FIXME: pickup each integrity file and check each entry (filename integrityvalue)</span> +207: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>( <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">"integrity"</span> ) ).<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> +208: +209: <span class="ruby-comment cmt"># seperate the filepath and integrity value.</span> +210: <span class="ruby-identifier">lineArray</span> = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>( <span class="ruby-value str">':'</span> ) +211: +212: <span class="ruby-comment cmt"># check for existing file.</span> +213: <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">lineArray</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">chomp</span> ) +214: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">to_journal</span>( <span class="ruby-node">"The file : #{lineArray[0].chomp} is missing for #{package}."</span> ) +215: +216: <span class="ruby-comment cmt"># any failure or discrepency is added to hash: file => package + problem</span> +217: <span class="ruby-identifier">integrityHash</span> = <span class="ruby-identifier">integrityHash</span>.<span class="ruby-identifier">merge</span>( <span class="ruby-constant">Hash</span>[ <span class="ruby-identifier">lineArray</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">chomp</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{package} - file missing."</span> ] ) +218: <span class="ruby-keyword kw">end</span> +219: +220: <span class="ruby-comment cmt"># passed existence check, now integrity check, need to ensure</span> +221: <span class="ruby-comment cmt"># value computed matches our logged octal results. This requires</span> +222: <span class="ruby-comment cmt"># computing the results, converting to octal, then chop off the </span> +223: <span class="ruby-comment cmt"># first char by reversing the string and chopping the last (is</span> +224: <span class="ruby-comment cmt"># there a better way?) char and then reversing those results.</span> +225: <span class="ruby-identifier">octalResults</span> = <span class="ruby-value str">'%07o'</span> <span class="ruby-operator">%</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">lstat</span>( <span class="ruby-identifier">lineArray</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">chomp</span> ).<span class="ruby-identifier">mode</span> +226: +227: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">lineArray</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">chomp</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">octalResults</span>.<span class="ruby-identifier">reverse</span>.<span class="ruby-identifier">chop</span>.<span class="ruby-identifier">reverse</span> +228: <span class="ruby-comment cmt"># any failure or discrepency is added to hash: file => package + problem</span> +229: <span class="ruby-identifier">integrityHash</span> = <span class="ruby-identifier">integrityHash</span>.<span class="ruby-identifier">merge</span>( <span class="ruby-constant">Hash</span>[ <span class="ruby-identifier">file</span> =<span class="ruby-operator">></span> <span class="ruby-node">"#{package} #{sw.description}"</span> ] ) +230: <span class="ruby-keyword kw">end</span> +231: } +232: <span class="ruby-keyword kw">end</span> +233: +234: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">integrityHash</span> +235: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -483,10 +522,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">show source</a> ]</p> <div id="M000004_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 169</span> -169: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verify_symlinks</span>( <span class="ruby-identifier">package</span> ) -170: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -171: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtsystemmanager.rb, line 168</span> +168: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verify_symlinks</span>( <span class="ruby-identifier">package</span> ) +169: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +170: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/created.rid =================================================================== --- src/trunk/doc/created.rid 2007-08-16 19:10:08 UTC (rev 423) +++ src/trunk/doc/created.rid 2007-08-16 19:10:58 UTC (rev 424) @@ -1 +1 @@ -Sun Aug 12 21:12:19 +0200 2007 +Thu Aug 16 21:10:32 +0200 2007 Modified: src/trunk/doc/files/abtsystemmanager_rb.html =================================================================== --- src/trunk/doc/files/abtsystemmanager_rb.html 2007-08-16 19:10:08 UTC (rev 423) +++ src/trunk/doc/files/abtsystemmanager_rb.html 2007-08-16 19:10:58 UTC (rev 424) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Mon Jul 23 15:03:42 +0200 2007</td> + <td>Thu Aug 16 20:51:46 +0200 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-08-16 19:10:06
|
Revision: 423 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=423&view=rev Author: eschabell Date: 2007-08-16 12:10:08 -0700 (Thu, 16 Aug 2007) Log Message: ----------- Implemented 'abt verify-integrity <package>'. Another unit test down, 17 to go! Modified Paths: -------------- src/trunk/abt.rb src/trunk/abtsystemmanager.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2007-08-13 11:09:30 UTC (rev 422) +++ src/trunk/abt.rb 2007-08-16 19:10:08 UTC (rev 423) @@ -443,7 +443,7 @@ logger.to_journal( "Starting verifcation of files for package : #{options['package']}.") if system.verify_installed_files( options['package'] ) - puts "/nInstalled files verified for package : #{options['package']}" + puts "\nInstalled files verified for package : #{options['package']}" logger.to_journal( "Finished verifcation of files for package : #{options['package']}.") exit end @@ -477,10 +477,22 @@ when "verify-integrity" if ( ARGV.length == 2 ) - options['pkg'] = ARGV[1] - # FIXME : verify integrity of install pkg files implementation. - print "Verifiy integrity of installed files for " - puts "package : #{options['pkg']}" + options['package'] = ARGV[1] + logger.to_journal( "Starting verification of files for package : #{options['package']}.") + + integrityHash = system.verify_package_integrity( options['package'] ) + if integrityHash.empty? + puts "\nInstalled files integrity check completed without problems being detected for package : #{options['package']}" + logger.to_journal( "Finished verification of files for package : #{options['package']}.") + exit + end + + integrityHash.each_pair {|file, problem| + puts "Problem with #{file} from package #{problem}" + logger.to_journal( "Problem with #{file} from package #{problem}." ) + } + + puts "/nInstalled files integrity check failed for package : #{options['package']} failed, see journal." else show.usage( "fix" ) exit Modified: src/trunk/abtsystemmanager.rb =================================================================== --- src/trunk/abtsystemmanager.rb 2007-08-13 11:09:30 UTC (rev 422) +++ src/trunk/abtsystemmanager.rb 2007-08-16 19:10:08 UTC (rev 423) @@ -133,9 +133,8 @@ ## def verify_installed_files( package ) logger = AbtLogManager.new - system = AbtSystemManager.new - if !system.package_installed( package ) + if !package_installed( package ) logger.to_journal( "Unable to verify installed files for #{package}, it's not installed!") return false end @@ -189,10 +188,50 @@ # <b>PARAM</b> <i>String</i> - Package name. # # <b>RETURN</b> <i>hash</i> - Empty hash if no problems found, otherwise - # hash of problem files and their encountered errors. + # hash of problem files and their encountered errors. Hash has keys of + # file names and the values are the package name and the problem detected. ## def verify_package_integrity( package ) - return false + require "#{$PACKAGE_PATH}#{package}" + sw = eval( "#{package.capitalize}.new" ) + + logger = AbtLogManager.new + integrityHash = Hash.new # holds files failing interity check. + + if !File.exist?( "#{$PACKAGE_INSTALLED}/#{sw.srcDir}/#{sw.srcDir}.integrity" ) + logger.to_journal( "Unable to check file integrity for #{package}, integrity log missing!" ) + return integrityHash # empty hash, no entries. + else + + # FIXME: pickup each integrity file and check each entry (filename integrityvalue) + File.open( logger.get_log( package, "integrity" ) ).each { |line| + + # seperate the filepath and integrity value. + lineArray = line.split( ':' ) + + # check for existing file. + if !File.exist?( lineArray[0].chomp ) + logger.to_journal( "The file : #{lineArray[0].chomp} is missing for #{package}." ) + + # any failure or discrepency is added to hash: file => package + problem + integrityHash = integrityHash.merge( Hash[ lineArray[0].chomp => "#{package} - file missing." ] ) + end + + # passed existence check, now integrity check, need to ensure + # value computed matches our logged octal results. This requires + # computing the results, converting to octal, then chop off the + # first char by reversing the string and chopping the last (is + # there a better way?) char and then reversing those results. + octalResults = '%07o' % File.lstat( lineArray[0].chomp ).mode + + if lineArray[1].chomp != octalResults.reverse.chop.reverse + # any failure or discrepency is added to hash: file => package + problem + integrityHash = integrityHash.merge( Hash[ file => "#{package} #{sw.description}" ] ) + end + } + end + + return integrityHash end ## This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-08-13 11:09:28
|
Revision: 422 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=422&view=rev Author: eschabell Date: 2007-08-13 04:09:30 -0700 (Mon, 13 Aug 2007) Log Message: ----------- Fix for purge-src command, was not removing sources marked for removal due to relative path in rm command, now using complete path. Modified Paths: -------------- src/trunk/abt.rb src/trunk/abtsystemmanager.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2007-08-12 19:13:31 UTC (rev 421) +++ src/trunk/abt.rb 2007-08-13 11:09:30 UTC (rev 422) @@ -424,7 +424,6 @@ when "purge-src" if ( ARGV.length == 1 ) - # FIXME : purge-src implementation. logger.to_journal( "Starting to purge sources from packages that are not installed.") if ( system.cleanup_package_sources ) puts "\nPurged sources from packages that are not installed." Modified: src/trunk/abtsystemmanager.rb =================================================================== --- src/trunk/abtsystemmanager.rb 2007-08-12 19:13:31 UTC (rev 421) +++ src/trunk/abtsystemmanager.rb 2007-08-13 11:09:30 UTC (rev 422) @@ -113,7 +113,7 @@ puts "====================================" end - Dir.foreach( $SOURCES_REPOSITORY ) { |file| FileUtils.remove( file, :verbose => verbose, :force => true ) if ( file != "." && file != ".." && !sourcesArray.include?( file ) ) } + Dir.foreach( $SOURCES_REPOSITORY ) { |file| FileUtils.remove( "#{$SOURCES_REPOSITORY}/#{file}", :verbose => verbose, :force => true ) if ( file != "." && file != ".." && !sourcesArray.include?( file ) ) } if ( verbose ) puts "====================================\n" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-08-12 19:13:28
|
Revision: 421 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=421&view=rev Author: eschabell Date: 2007-08-12 12:13:31 -0700 (Sun, 12 Aug 2007) Log Message: ----------- Regenerated 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/abtpackage_rb.html src/trunk/doc/files/abtpackagemanager_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/testabtpackage_rb.html src/trunk/doc/files/testabtpackagemanager_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-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/AbtDepEngine.html 2007-08-12 19:13:31 UTC (rev 421) @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,133,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-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/AbtDownloadManager.html 2007-08-12 19:13:31 UTC (rev 421) @@ -78,7 +78,7 @@ <map id="map" name="map"> <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-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/AbtLogManager.html 2007-08-12 19:13:31 UTC (rev 421) @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,141,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-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/AbtPackage.html 2007-08-12 19:13:31 UTC (rev 421) @@ -78,7 +78,7 @@ <map id="map" name="map"> <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#M000026">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#M000027">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#M000027">details</a>. </p> <p> <b>PARAM</b> <em>Hash</em> - hash containing all package data. @@ -393,12 +394,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#M000029">configure</a> step +(or equivalent). We need to give ./<a +href="AbtPackage.html#M000029">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>PARAM</b> <em>boolean</em> - true if you want to see the verbose output, @@ -618,8 +620,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#M000026">new</a> user accounts, +dealing with existing configuration files, etc. </p> <p> <b>PARAM</b> <em>boolean</em> - true if you want to see the verbose output, @@ -650,7 +652,8 @@ </div> <div class="description"> <p> -Cleans up this packages source build directory. +Cleans up this packages source <a href="AbtPackage.html#M000030">build</a> +directory. </p> <p> <b>RETURNS:</b> <em>boolean</em> - True if the completes sucessfully, @@ -689,7 +692,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#M000030">build</a> location. </p> <p> <b>RETURNS:</b> <em>boolean</em> - True if the completes sucessfully, Modified: src/trunk/doc/classes/AbtPackageManager.html =================================================================== --- src/trunk/doc/classes/AbtPackageManager.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/AbtPackageManager.html 2007-08-12 19:13:31 UTC (rev 421) @@ -78,7 +78,7 @@ <map id="map" name="map"> <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-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/AbtQueueManager.html 2007-08-12 19:13:31 UTC (rev 421) @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,157,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> Modified: src/trunk/doc/classes/AbtReportManager.html =================================================================== --- src/trunk/doc/classes/AbtReportManager.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/AbtReportManager.html 2007-08-12 19:13:31 UTC (rev 421) @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,157,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-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/AbtSystemManager.html 2007-08-12 19:13:31 UTC (rev 421) @@ -78,7 +78,7 @@ <map id="map" name="map"> <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-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/AbtUsage.html 2007-08-12 19:13:31 UTC (rev 421) @@ -78,14 +78,14 @@ <map id="map" name="map"> <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#M000035">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#M000035">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#M000035">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#M000035">usage</a> information for the fix +commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -251,7 +254,8 @@ </div> <div class="description"> <p> -The usage information for the generation commands. +The <a href="AbtUsage.html#M000035">usage</a> information for the +generation commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -278,7 +282,8 @@ </div> <div class="description"> <p> -The usage information for the maintenance commands. +The <a href="AbtUsage.html#M000035">usage</a> information for the +maintenance commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -307,7 +312,8 @@ </div> <div class="description"> <p> -The usage information for the packages commands. +The <a href="AbtUsage.html#M000035">usage</a> information for the packages +commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -336,7 +342,8 @@ </div> <div class="description"> <p> -The usage information for the query commands. +The <a href="AbtUsage.html#M000035">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-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/TestAbtDepEngine.html 2007-08-12 19:13:31 UTC (rev 421) @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,155,172" href="TestAbtDepEngine.html" alt="TestAbtDepEngine" /> <area shape="rect" coords="24,5,157,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> @@ -134,7 +134,8 @@ </div> <div class="description"> <p> -setup method for testing <a href="AbtDepEngine.html">AbtDepEngine</a>. +<a href="TestAbtDepEngine.html#M000104">setup</a> method for testing <a +href="AbtDepEngine.html">AbtDepEngine</a>. </p> </div> <div class="sourcecode"> @@ -155,7 +156,8 @@ </div> <div class="description"> <p> -teardown method to cleanup after testing. +<a href="TestAbtDepEngine.html#M000105">teardown</a> method to cleanup +after testing. </p> </div> <div class="sourcecode"> Modified: src/trunk/doc/classes/TestAbtDownloadManager.html =================================================================== --- src/trunk/doc/classes/TestAbtDownloadManager.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/TestAbtDownloadManager.html 2007-08-12 19:13:31 UTC (rev 421) @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,195,172" href="TestAbtDownloadManager.html" alt="TestAbtDownloadManager" /> <area shape="rect" coords="44,5,177,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> @@ -140,8 +140,8 @@ </div> <div class="description"> <p> -setup method for testing <a -href="AbtDownloadManager.html">AbtDownloadManager</a>. +<a href="TestAbtDownloadManager.html#M000084">setup</a> method for testing +<a href="AbtDownloadManager.html">AbtDownloadManager</a>. </p> </div> <div class="sourcecode"> @@ -164,7 +164,8 @@ </div> <div class="description"> <p> -teardown method to cleanup after testing. +<a href="TestAbtDownloadManager.html#M000085">teardown</a> method to +cleanup after testing. </p> </div> <div class="sourcecode"> Modified: src/trunk/doc/classes/TestAbtLogManager.html =================================================================== --- src/trunk/doc/classes/TestAbtLogManager.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/TestAbtLogManager.html 2007-08-12 19:13:31 UTC (rev 421) @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,163,172" href="TestAbtLogManager.html" alt="TestAbtLogManager" /> <area shape="rect" coords="28,5,161,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> @@ -138,7 +138,8 @@ </div> <div class="description"> <p> -setup method for testing <a href="AbtLogManager.html">AbtLogManager</a>. +<a href="TestAbtLogManager.html#M000107">setup</a> method for testing <a +href="AbtLogManager.html">AbtLogManager</a>. </p> </div> <div class="sourcecode"> @@ -164,7 +165,8 @@ </div> <div class="description"> <p> -teardown method to cleanup after testing. +<a href="TestAbtLogManager.html#M000108">teardown</a> method to cleanup +after testing. </p> </div> <div class="sourcecode"> Modified: src/trunk/doc/classes/TestAbtPackage.html =================================================================== --- src/trunk/doc/classes/TestAbtPackage.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/TestAbtPackage.html 2007-08-12 19:13:31 UTC (rev 421) @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,141,172" href="TestAbtPackage.html" alt="TestAbtPackage" /> <area shape="rect" coords="17,5,151,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> @@ -140,7 +140,8 @@ </div> <div class="description"> <p> -setup method for testing <a href="AbtPackage.html">AbtPackage</a>. +<a href="TestAbtPackage.html#M000095">setup</a> method for testing <a +href="AbtPackage.html">AbtPackage</a>. </p> </div> <div class="sourcecode"> @@ -164,7 +165,8 @@ </div> <div class="description"> <p> -teardown method to cleanup after testing. +<a href="TestAbtPackage.html#M000096">teardown</a> method to cleanup after +testing. </p> </div> <div class="sourcecode"> Modified: src/trunk/doc/classes/TestAbtPackageManager.html =================================================================== --- src/trunk/doc/classes/TestAbtPackageManager.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/TestAbtPackageManager.html 2007-08-12 19:13:31 UTC (rev 421) @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,187,172" href="TestAbtPackageManager.html" alt="TestAbtPackageManager" /> <area shape="rect" coords="40,5,173,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> @@ -139,8 +139,8 @@ </div> <div class="description"> <p> -setup method for testing <a -href="AbtPackageManager.html">AbtPackageManager</a>. +<a href="TestAbtPackageManager.html#M000018">setup</a> method for testing +<a href="AbtPackageManager.html">AbtPackageManager</a>. </p> </div> <div class="sourcecode"> @@ -166,7 +166,8 @@ </div> <div class="description"> <p> -teardown method to cleanup after testing. +<a href="TestAbtPackageManager.html#M000019">teardown</a> method to cleanup +after testing. </p> </div> <div class="sourcecode"> Modified: src/trunk/doc/classes/TestAbtQueueManager.html =================================================================== --- src/trunk/doc/classes/TestAbtQueueManager.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/TestAbtQueueManager.html 2007-08-12 19:13:31 UTC (rev 421) @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,179,172" href="TestAbtQueueManager.html" alt="TestAbtQueueManager" /> <area shape="rect" coords="36,5,169,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> @@ -134,7 +134,7 @@ </div> <div class="description"> <p> -setup method for testing <a +<a href="TestAbtQueueManager.html#M000081">setup</a> method for testing <a href="AbtQueueManager.html">AbtQueueManager</a>. </p> </div> @@ -156,7 +156,8 @@ </div> <div class="description"> <p> -teardown method to cleanup after testing. +<a href="TestAbtQueueManager.html#M000082">teardown</a> method to cleanup +after testing. </p> </div> <div class="sourcecode"> Modified: src/trunk/doc/classes/TestAbtReportManager.html =================================================================== --- src/trunk/doc/classes/TestAbtReportManager.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/TestAbtReportManager.html 2007-08-12 19:13:31 UTC (rev 421) @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,179,172" href="TestAbtReportManager.html" alt="TestAbtReportManager" /> <area shape="rect" coords="36,5,169,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> @@ -146,7 +146,7 @@ </div> <div class="description"> <p> -setup method for testing <a +<a href="TestAbtReportManager.html#M000049">setup</a> method for testing <a href="AbtReportManager.html">AbtReportManager</a>. </p> </div> @@ -173,7 +173,8 @@ </div> <div class="description"> <p> -teardown method to cleanup after testing. +<a href="TestAbtReportManager.html#M000050">teardown</a> method to cleanup +after testing. </p> </div> <div class="sourcecode"> Modified: src/trunk/doc/classes/TestAbtSystemManager.html =================================================================== --- src/trunk/doc/classes/TestAbtSystemManager.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/classes/TestAbtSystemManager.html 2007-08-12 19:13:31 UTC (rev 421) @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,184,172" href="TestAbtSystemManager.html" alt="TestAbtSystemManager" /> <area shape="rect" coords="39,5,172,53" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase" /> </map> -<img src="../dot/f_16.png" usemap="#map" border="0" alt="TopLevel" /> +<img src="../dot/f_16.png" usemap="#map" border="0" alt="dot/f_16.png"> </td></tr></table> <div class="description"><p> @@ -143,7 +143,7 @@ </div> <div class="description"> <p> -setup method for testing <a +<a href="TestAbtSystemManager.html#M000070">setup</a> method for testing <a href="AbtSystemManager.html">AbtSystemManager</a>. </p> </div> @@ -169,7 +169,8 @@ </div> <div class="description"> <p> -teardown method to cleanup after testing. +<a href="TestAbtSystemManager.html#M000071">teardown</a> method to cleanup +after testing. </p> </div> <div class="sourcecode"> Modified: src/trunk/doc/created.rid =================================================================== --- src/trunk/doc/created.rid 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/created.rid 2007-08-12 19:13:31 UTC (rev 421) @@ -1 +1 @@ -Tue Jul 24 15:39:09 CEST 2007 +Sun Aug 12 21:12:19 +0200 2007 Modified: src/trunk/doc/dot/f_0.dot =================================================================== --- src/trunk/doc/dot/f_0.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_0.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "abtdepengine.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_0.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_1.dot =================================================================== --- src/trunk/doc/dot/f_1.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_1.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "abtdownloadmanager.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_1.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_10.dot =================================================================== --- src/trunk/doc/dot/f_10.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_10.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "testabtdownloadmanager.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_10.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_11.dot =================================================================== --- src/trunk/doc/dot/f_11.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_11.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "testabtlogmanager.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_11.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_12.dot =================================================================== --- src/trunk/doc/dot/f_12.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_12.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "testabtpackage.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_12.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_13.dot =================================================================== --- src/trunk/doc/dot/f_13.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_13.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "testabtpackagemanager.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_13.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_14.dot =================================================================== --- src/trunk/doc/dot/f_14.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_14.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "testabtqueuemanager.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_14.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_15.dot =================================================================== --- src/trunk/doc/dot/f_15.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_15.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "testabtreportmanager.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_15.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_16.dot =================================================================== --- src/trunk/doc/dot/f_16.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_16.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "testabtsystemmanager.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_16.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_2.dot =================================================================== --- src/trunk/doc/dot/f_2.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_2.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "abtlogmanager.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_2.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_3.dot =================================================================== --- src/trunk/doc/dot/f_3.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_3.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "abtpackage.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_3.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_4.dot =================================================================== --- src/trunk/doc/dot/f_4.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_4.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "abtpackagemanager.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_4.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_5.dot =================================================================== --- src/trunk/doc/dot/f_5.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_5.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "abtqueuemanager.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_5.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_6.dot =================================================================== --- src/trunk/doc/dot/f_6.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_6.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "abtreportmanager.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_6.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_7.dot =================================================================== --- src/trunk/doc/dot/f_7.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_7.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "abtsystemmanager.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_7.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_8.dot =================================================================== --- src/trunk/doc/dot/f_8.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_8.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "abtusage.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_8.png =================================================================== (Binary files differ) Modified: src/trunk/doc/dot/f_9.dot =================================================================== --- src/trunk/doc/dot/f_9.dot 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/dot/f_9.dot 2007-08-12 19:13:31 UTC (rev 421) @@ -3,7 +3,7 @@ bgcolor = lightcyan1 fontname = Arial fontsize = 8 - label = "testabtdepengine.rb" + label = "TopLevel" node [ fontname = Arial, fontsize = 8, Modified: src/trunk/doc/dot/f_9.png =================================================================== (Binary files differ) Modified: src/trunk/doc/files/abtdepengine_rb.html =================================================================== --- src/trunk/doc/files/abtdepengine_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/abtdepengine_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 08:48:12 CEST 2007</td> + <td>Mon Jul 16 14:33:05 +0200 2007</td> </tr> </table> </td></tr> @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,133,98" href="../classes/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> @@ -87,7 +87,7 @@ <p> <a href="../classes/AbtDepEngine.html">AbtDepEngine</a> class handles all dependency aspects of the AbTLinux system. It is part of a sub-project with -it’s own requirements document. +it‘s own requirements document. </p> <p> Created by Eric D. Schabell <er...@ab...> Copyright 2006, GPL. Modified: src/trunk/doc/files/abtdownloadmanager_rb.html =================================================================== --- src/trunk/doc/files/abtdownloadmanager_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/abtdownloadmanager_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 08:48:12 CEST 2007</td> + <td>Thu Jul 19 20:40:00 +0200 2007</td> </tr> </table> </td></tr> @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,176,98" href="../classes/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/files/abtlogmanager_rb.html =================================================================== --- src/trunk/doc/files/abtlogmanager_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/abtlogmanager_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 14:07:07 CEST 2007</td> + <td>Sun Aug 12 21:11:49 +0200 2007</td> </tr> </table> </td></tr> @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,141,98" href="../classes/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/files/abtpackage_rb.html =================================================================== --- src/trunk/doc/files/abtpackage_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/abtpackage_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 08:48:12 CEST 2007</td> + <td>Mon Jul 23 09:16:47 +0200 2007</td> </tr> </table> </td></tr> @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,120,98" href="../classes/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> Modified: src/trunk/doc/files/abtpackagemanager_rb.html =================================================================== --- src/trunk/doc/files/abtpackagemanager_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/abtpackagemanager_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 14:12:15 CEST 2007</td> + <td>Mon Jul 23 15:08:59 +0200 2007</td> </tr> </table> </td></tr> @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,168,98" href="../classes/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/files/abtqueuemanager_rb.html =================================================================== --- src/trunk/doc/files/abtqueuemanager_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/abtqueuemanager_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 08:48:19 CEST 2007</td> + <td>Mon Jul 16 19:02:00 +0200 2007</td> </tr> </table> </td></tr> @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,157,98" href="../classes/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> Modified: src/trunk/doc/files/abtreportmanager_rb.html =================================================================== --- src/trunk/doc/files/abtreportmanager_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/abtreportmanager_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 08:48:12 CEST 2007</td> + <td>Mon Jul 23 14:08:17 +0200 2007</td> </tr> </table> </td></tr> @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,157,98" href="../classes/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/files/abtsystemmanager_rb.html =================================================================== --- src/trunk/doc/files/abtsystemmanager_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/abtsystemmanager_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 08:48:19 CEST 2007</td> + <td>Mon Jul 23 15:03:42 +0200 2007</td> </tr> </table> </td></tr> @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,163,98" href="../classes/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/files/abtusage_rb.html =================================================================== --- src/trunk/doc/files/abtusage_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/abtusage_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 08:48:12 CEST 2007</td> + <td>Mon Jul 23 13:50:56 +0200 2007</td> </tr> </table> </td></tr> @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,109,98" href="../classes/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> Modified: src/trunk/doc/files/testabtdepengine_rb.html =================================================================== --- src/trunk/doc/files/testabtdepengine_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/testabtdepengine_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 15:36:23 CEST 2007</td> + <td>Sun Aug 12 21:11:49 +0200 2007</td> </tr> </table> </td></tr> @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,155,172" href="../classes/TestAbtDepEngine.html" alt="TestAbtDepEngine" /> <area shape="rect" coords="24,5,157,53" href="../classes/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> Modified: src/trunk/doc/files/testabtdownloadmanager_rb.html =================================================================== --- src/trunk/doc/files/testabtdownloadmanager_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/testabtdownloadmanager_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 14:50:29 CEST 2007</td> + <td>Sun Aug 12 21:11:49 +0200 2007</td> </tr> </table> </td></tr> @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,195,172" href="../classes/TestAbtDownloadManager.html" alt="TestAbtDownloadManager" /> <area shape="rect" coords="44,5,177,53" href="../classes/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> Modified: src/trunk/doc/files/testabtlogmanager_rb.html =================================================================== --- src/trunk/doc/files/testabtlogmanager_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/testabtlogmanager_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 14:52:24 CEST 2007</td> + <td>Sun Aug 12 21:11:49 +0200 2007</td> </tr> </table> </td></tr> @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,163,172" href="../classes/TestAbtLogManager.html" alt="TestAbtLogManager" /> <area shape="rect" coords="28,5,161,53" href="../classes/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> Modified: src/trunk/doc/files/testabtpackage_rb.html =================================================================== --- src/trunk/doc/files/testabtpackage_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/testabtpackage_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 15:03:57 CEST 2007</td> + <td>Sun Aug 12 21:11:49 +0200 2007</td> </tr> </table> </td></tr> @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,141,172" href="../classes/TestAbtPackage.html" alt="TestAbtPackage" /> <area shape="rect" coords="17,5,151,53" href="../classes/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> Modified: src/trunk/doc/files/testabtpackagemanager_rb.html =================================================================== --- src/trunk/doc/files/testabtpackagemanager_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/testabtpackagemanager_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 14:52:04 CEST 2007</td> + <td>Sun Aug 12 21:11:49 +0200 2007</td> </tr> </table> </td></tr> @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,187,172" href="../classes/TestAbtPackageManager.html" alt="TestAbtPackageManager" /> <area shape="rect" coords="40,5,173,53" href="../classes/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> Modified: src/trunk/doc/files/testabtqueuemanager_rb.html =================================================================== --- src/trunk/doc/files/testabtqueuemanager_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/testabtqueuemanager_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 15:10:12 CEST 2007</td> + <td>Sun Aug 12 21:11:49 +0200 2007</td> </tr> </table> </td></tr> @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,179,172" href="../classes/TestAbtQueueManager.html" alt="TestAbtQueueManager" /> <area shape="rect" coords="36,5,169,53" href="../classes/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> Modified: src/trunk/doc/files/testabtreportmanager_rb.html =================================================================== --- src/trunk/doc/files/testabtreportmanager_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/testabtreportmanager_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 15:22:03 CEST 2007</td> + <td>Sun Aug 12 21:11:49 +0200 2007</td> </tr> </table> </td></tr> @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,179,172" href="../classes/TestAbtReportManager.html" alt="TestAbtReportManager" /> <area shape="rect" coords="36,5,169,53" href="../classes/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> Modified: src/trunk/doc/files/testabtsystemmanager_rb.html =================================================================== --- src/trunk/doc/files/testabtsystemmanager_rb.html 2007-08-12 19:11:22 UTC (rev 420) +++ src/trunk/doc/files/testabtsystemmanager_rb.html 2007-08-12 19:13:31 UTC (rev 421) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Tue Jul 24 15:30:18 CEST 2007</td> + <td>Sun Aug 12 21:11:49 +0200 2007</td> </tr> </table> </td></tr> @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,184,172" href="../classes/TestAbtSystemManager.html" alt="TestAbtSystemManager" /> <area shape="rect" coords="39,5,172,53" href="../classes/Test/Unit/TestCase.html" alt="Test::Unit::TestCase" /> </map> -<img src="../dot/f_16.png" usemap="#map" border="0" alt="TopLevel" /> +<img src="../dot/f_16.png" usemap="#map" border="0" alt="dot/f_16.png"> </td></tr></table> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-08-12 19:11:23
|
Revision: 420 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=420&view=rev Author: eschabell Date: 2007-08-12 12:11:22 -0700 (Sun, 12 Aug 2007) Log Message: ----------- Implemented 'abt show-files <package>'. Some display code adjustments to other show-* calls. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2007-08-12 18:21:03 UTC (rev 419) +++ src/trunk/abt.rb 2007-08-12 19:11:22 UTC (rev 420) @@ -230,7 +230,7 @@ end puts "\nDisplay configure log for package : #{options['package']}" - puts "===============================\n\n" + puts "===============================\n" reporter.show_package_log( options['package'], "configure" ) else show.usage( "queries" ) @@ -246,7 +246,7 @@ end puts "\nDisplay build log for package : #{options['package']}" - puts "===============================\n\n" + puts "===============================\n" reporter.show_package_log( options['package'], "build" ) else show.usage( "queries" ) @@ -262,7 +262,7 @@ end puts "\nDisplay install log for package : #{options['package']}" - puts "===============================\n\n" + puts "===============================\n" reporter.show_package_log( options['package'], "install" ) else show.usage( "queries" ) @@ -278,7 +278,7 @@ end puts "\nDisplay integrity log for package : #{options['package']}" - puts "===============================\n\n" + puts "=================================\n" reporter.show_package_log( options['package'], "integrity" ) else show.usage( "queries" ) @@ -298,8 +298,14 @@ when "show-files" if ( ARGV.length == 2 ) options['package'] = ARGV[1] - # FIXME : show pkg files implementation. - puts "Display installed files from package : " + options['package'] + if !system.package_installed( options['package'] ) + puts "\nThe package #{options['package']} is not installed, can't show it's installed files." + exit + end + + puts "\nDisplay installed files from package : #{options['package']}" + puts "====================================\n" + reporter.show_package_log( options['package'], "install" ) else show.usage( "queries" ) exit This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-08-12 18:21:02
|
Revision: 419 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=419&view=rev Author: eschabell Date: 2007-08-12 11:21:03 -0700 (Sun, 12 Aug 2007) Log Message: ----------- Extended a bit further to take help as a call for help. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2007-08-12 18:19:52 UTC (rev 418) +++ src/trunk/abt.rb 2007-08-12 18:21:03 UTC (rev 419) @@ -38,7 +38,7 @@ show = AbtUsage.new # deal with usage request. -if ( ARGV.length == 0 || ( ARGV.length == 1 && ( ARGV[0] == '--help' || ARGV[0] == '-h' ) ) ) +if ( ARGV.length == 0 || ( ARGV.length == 1 && ( ARGV[0] == '--help' || ARGV[0] == '-h' || ARGV[0].downcase == 'help' ) ) ) show.usage( "all" ) exit end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-08-12 18:19:49
|
Revision: 418 http://abtlinux.svn.sourceforge.net/abtlinux/?rev=418&view=rev Author: eschabell Date: 2007-08-12 11:19:52 -0700 (Sun, 12 Aug 2007) Log Message: ----------- Expanded abt call to produce usage overview if --help or -h are opted for. This avoids a root login for help calls. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2007-07-24 13:40:05 UTC (rev 417) +++ src/trunk/abt.rb 2007-08-12 18:19:52 UTC (rev 418) @@ -38,8 +38,9 @@ show = AbtUsage.new # deal with usage request. -if ( ARGV.length == 0 ) +if ( ARGV.length == 0 || ( ARGV.length == 1 && ( ARGV[0] == '--help' || ARGV[0] == '-h' ) ) ) show.usage( "all" ) + exit end # login as root for the rest. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-07-24 13:40:12
|
Revision: 417 http://svn.sourceforge.net/abtlinux/?rev=417&view=rev Author: eschabell Date: 2007-07-24 06:40:05 -0700 (Tue, 24 Jul 2007) Log Message: ----------- Regenerated 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/abtpackage_rb.html src/trunk/doc/files/abtpackagemanager_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/testabtpackage_rb.html src/trunk/doc/files/testabtpackagemanager_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-07-24 13:36:32 UTC (rev 416) +++ src/trunk/doc/classes/AbtDepEngine.html 2007-07-24 13:40:05 UTC (rev 417) @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,133,98" href="AbtDepEngine.html" alt="AbtDepEngine" /> </map> -<img src="../dot/f_0.png" usemap="#map" border="0" alt="dot/f_0.png"> +<img src="../dot/f_0.png" usemap="#map" border="0" alt="TopLevel" /> </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-07-24 13:36:32 UTC (rev 416) +++ src/trunk/doc/classes/AbtDownloadManager.html 2007-07-24 13:40:05 UTC (rev 417) @@ -78,7 +78,7 @@ <map id="map" name="map"> <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="dot/f_1.png"> +<img src="../dot/f_1.png" usemap="#map" border="0" alt="TopLevel" /> </td></tr></table> <div class="description"><p> Modified: src/trunk/doc/classes/AbtLogManager.html =================================================================== --- src/trunk/doc/classes/AbtLogManager.html 2007-07-24 13:36:32 UTC (rev 416) +++ src/trunk/doc/classes/AbtLogManager.html 2007-07-24 13:40:05 UTC (rev 417) @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,141,98" href="AbtLogManager.html" alt="AbtLogManager" /> </map> -<img src="../dot/f_2.png" usemap="#map" border="0" alt="dot/f_2.png"> +<img src="../dot/f_2.png" usemap="#map" border="0" alt="TopLevel" /> </td></tr></table> <div class="description"><p> @@ -187,84 +187,84 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000068_source')" id="l_M000068_source">show source</a> ]</p> <div id="M000068_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtlogmanager.rb, line 206</span> -206: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cache_package</span>( <span class="ruby-identifier">package</span> ) -207: <span class="ruby-identifier">system</span> = <span class="ruby-constant">AbtSystemManager</span>.<span class="ruby-identifier">new</span> -208: -209: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">system</span>.<span class="ruby-identifier">package_installed</span>( <span class="ruby-identifier">package</span> ) ) -210: <span class="ruby-identifier">sw</span> = <span class="ruby-identifier">eval</span>( <span class="ruby-node">"#{package.capitalize}.new"</span> ) -211: <span class="ruby-identifier">cachedDir</span> = <span class="ruby-identifier">$PACKAGE_CACHED</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"/"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcDir</span> -212: <span class="ruby-identifier">sourcePath</span> = <span class="ruby-identifier">$SOURCES_REPOSITORY</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"/"</span> <span class="ruby-operator">+</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcUrl</span> ) -213: <span class="ruby-identifier">sourceFile</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcUrl</span> ) -214: <span class="ruby-identifier">installLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'install'</span> ) -215: <span class="ruby-identifier">buildLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'build'</span> ) -216: <span class="ruby-identifier">configureLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'configure'</span> ) -217: <span class="ruby-identifier">integrityLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'integrity'</span> ) -218: <span class="ruby-identifier">packageFile</span> = <span class="ruby-node">"#{$PACKAGE_PATH}#{package}.rb"</span> -219: -220: -221: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>( <span class="ruby-identifier">cachedDir</span> ) -222: -223: <span class="ruby-comment cmt"># collect package source.</span> -224: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">sourcePath</span> ) ) -225: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">sourcePath</span>, <span class="ruby-node">"#{cachedDir}/#{sourceFile}"</span> ) -226: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} source."</span> -227: <span class="ruby-keyword kw">else</span> -228: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} source."</span> -229: <span class="ruby-keyword kw">end</span> -230: -231: <span class="ruby-comment cmt"># collect package install log. </span> -232: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">installLog</span> ) ) -233: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">installLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.install"</span> ) -234: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} install log."</span> -235: <span class="ruby-keyword kw">else</span> -236: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} install log."</span> -237: <span class="ruby-keyword kw">end</span> -238: -239: <span class="ruby-comment cmt"># collect package build log. </span> -240: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">buildLog</span> ) ) -241: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">buildLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.build"</span> ) -242: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} build log."</span> -243: <span class="ruby-keyword kw">else</span> -244: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} build log."</span> -245: <span class="ruby-keyword kw">end</span> -246: -247: <span class="ruby-comment cmt"># collect package configure log. </span> -248: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">configureLog</span> ) ) -249: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">configureLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.configure"</span> ) -250: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} configure log."</span> -251: <span class="ruby-keyword kw">else</span> -252: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} configure log."</span> -253: <span class="ruby-keyword kw">end</span> -254: -255: <span class="ruby-comment cmt"># collect package integrity log.</span> -256: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">integrityLog</span> ) ) -257: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">integrityLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.integrity"</span> ) -258: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} integrity log."</span> -259: <span class="ruby-keyword kw">else</span> -260: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} integrity log."</span> -261: <span class="ruby-keyword kw">end</span> -262: -263: <span class="ruby-comment cmt"># collect package description (class file).</span> -264: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">packageFile</span> ) ) -265: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">packageFile</span>, <span class="ruby-node">"#{cachedDir}/#{package}.rb"</span> ) -266: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} package description."</span> -267: <span class="ruby-keyword kw">else</span> -268: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} package description, from location #{packageFile}"</span> -269: <span class="ruby-keyword kw">end</span> -270: -271: <span class="ruby-comment cmt"># tar and bzip this directory (package-cache-version.tar.bz2) </span> -272: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-identifier">$PACKAGE_CACHED</span> ) -273: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">system</span>( <span class="ruby-node">"tar -cf #{sw.srcDir}.tar #{sw.srcDir}"</span> ) <span class="ruby-operator">&&</span> -274: <span class="ruby-identifier">system</span>( <span class="ruby-node">"bzip2 -f #{sw.srcDir}.tar"</span> ) ) -275: <span class="ruby-comment cmt"># last but not least, remove our tarball directory</span> -276: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span>( <span class="ruby-identifier">cachedDir</span> ) -277: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -278: <span class="ruby-keyword kw">end</span> -279: <span class="ruby-keyword kw">end</span> -280: -281: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># package not installed, can't cache it.</span> -282: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtlogmanager.rb, line 209</span> +209: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cache_package</span>( <span class="ruby-identifier">package</span> ) +210: <span class="ruby-identifier">system</span> = <span class="ruby-constant">AbtSystemManager</span>.<span class="ruby-identifier">new</span> +211: +212: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">system</span>.<span class="ruby-identifier">package_installed</span>( <span class="ruby-identifier">package</span> ) ) +213: <span class="ruby-identifier">sw</span> = <span class="ruby-identifier">eval</span>( <span class="ruby-node">"#{package.capitalize}.new"</span> ) +214: <span class="ruby-identifier">cachedDir</span> = <span class="ruby-identifier">$PACKAGE_CACHED</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"/"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcDir</span> +215: <span class="ruby-identifier">sourcePath</span> = <span class="ruby-identifier">$SOURCES_REPOSITORY</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"/"</span> <span class="ruby-operator">+</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcUrl</span> ) +216: <span class="ruby-identifier">sourceFile</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>( <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">srcUrl</span> ) +217: <span class="ruby-identifier">installLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'install'</span> ) +218: <span class="ruby-identifier">buildLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'build'</span> ) +219: <span class="ruby-identifier">configureLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'configure'</span> ) +220: <span class="ruby-identifier">integrityLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'integrity'</span> ) +221: <span class="ruby-identifier">packageFile</span> = <span class="ruby-node">"#{$PACKAGE_PATH}#{package}.rb"</span> +222: +223: +224: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>( <span class="ruby-identifier">cachedDir</span> ) +225: +226: <span class="ruby-comment cmt"># collect package source.</span> +227: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">sourcePath</span> ) ) +228: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">sourcePath</span>, <span class="ruby-node">"#{cachedDir}/#{sourceFile}"</span> ) +229: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} source."</span> +230: <span class="ruby-keyword kw">else</span> +231: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} source."</span> +232: <span class="ruby-keyword kw">end</span> +233: +234: <span class="ruby-comment cmt"># collect package install log. </span> +235: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">installLog</span> ) ) +236: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">installLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.install"</span> ) +237: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} install log."</span> +238: <span class="ruby-keyword kw">else</span> +239: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} install log."</span> +240: <span class="ruby-keyword kw">end</span> +241: +242: <span class="ruby-comment cmt"># collect package build log. </span> +243: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">buildLog</span> ) ) +244: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">buildLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.build"</span> ) +245: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} build log."</span> +246: <span class="ruby-keyword kw">else</span> +247: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} build log."</span> +248: <span class="ruby-keyword kw">end</span> +249: +250: <span class="ruby-comment cmt"># collect package configure log. </span> +251: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">configureLog</span> ) ) +252: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">configureLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.configure"</span> ) +253: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} configure log."</span> +254: <span class="ruby-keyword kw">else</span> +255: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} configure log."</span> +256: <span class="ruby-keyword kw">end</span> +257: +258: <span class="ruby-comment cmt"># collect package integrity log.</span> +259: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">integrityLog</span> ) ) +260: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">integrityLog</span>, <span class="ruby-node">"#{cachedDir}/#{sw.srcDir}.integrity"</span> ) +261: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} integrity log."</span> +262: <span class="ruby-keyword kw">else</span> +263: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} integrity log."</span> +264: <span class="ruby-keyword kw">end</span> +265: +266: <span class="ruby-comment cmt"># collect package description (class file).</span> +267: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">FileTest</span><span class="ruby-operator">::</span><span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">packageFile</span> ) ) +268: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_file</span>( <span class="ruby-identifier">packageFile</span>, <span class="ruby-node">"#{cachedDir}/#{package}.rb"</span> ) +269: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nCaching copy of #{package} package description."</span> +270: <span class="ruby-keyword kw">else</span> +271: <span class="ruby-identifier">puts</span> <span class="ruby-node">"\nUnable to cache copy of #{package} package description, from location #{packageFile}"</span> +272: <span class="ruby-keyword kw">end</span> +273: +274: <span class="ruby-comment cmt"># tar and bzip this directory (package-cache-version.tar.bz2) </span> +275: <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>( <span class="ruby-identifier">$PACKAGE_CACHED</span> ) +276: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">system</span>( <span class="ruby-node">"tar -cf #{sw.srcDir}.tar #{sw.srcDir}"</span> ) <span class="ruby-operator">&&</span> +277: <span class="ruby-identifier">system</span>( <span class="ruby-node">"bzip2 -f #{sw.srcDir}.tar"</span> ) ) +278: <span class="ruby-comment cmt"># last but not least, remove our tarball directory</span> +279: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_rf</span>( <span class="ruby-identifier">cachedDir</span> ) +280: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +281: <span class="ruby-keyword kw">end</span> +282: <span class="ruby-keyword kw">end</span> +283: +284: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># package not installed, can't cache it.</span> +285: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -343,17 +343,17 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">show source</a> ]</p> <div id="M000067_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtlogmanager.rb, line 186</span> -186: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_package_build</span>( <span class="ruby-identifier">package</span> ) -187: <span class="ruby-identifier">buildLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'build'</span> ) -188: -189: <span class="ruby-comment cmt"># make sure the build file exists.</span> -190: <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">buildLog</span> ) ) -191: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -192: <span class="ruby-keyword kw">end</span> -193: -194: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -195: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtlogmanager.rb, line 189</span> +189: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_package_build</span>( <span class="ruby-identifier">package</span> ) +190: <span class="ruby-identifier">buildLog</span> = <span class="ruby-identifier">get_log</span>( <span class="ruby-identifier">package</span>, <span class="ruby-value str">'build'</span> ) +191: +192: <span class="ruby-comment cmt"># make sure the build file exists.</span> +193: <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">buildLog</span> ) ) +194: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +195: <span class="ruby-keyword kw">end</span> +196: +197: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +198: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -411,10 +411,13 @@ 169: <span class="ruby-keyword kw">end</span> 170: 171: <span class="ruby-identifier">installFile</span>.<span class="ruby-identifier">close</span> -172: <span class="ruby-keyword kw">end</span> -173: -174: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>; -175: <span class="ruby-keyword kw">end</span> +172: <span class="ruby-keyword kw">else</span> +173: <span class="ruby-comment cmt"># no tmp install file, thus no install running.</span> +174: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> +175: <span class="ruby-keyword kw">end</span> +176: +177: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>; +178: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -496,16 +499,16 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">show source</a> ]</p> <div id="M000069_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File abtlogmanager.rb, line 292</span> -292: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_journal</span>( <span class="ruby-identifier">message</span> ) -293: <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-value str">"a+"</span> ) ) -294: <span class="ruby-identifier">log</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{$TIMESTAMP} : #{message}\n"</span> -295: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">close</span> -296: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -297: <span class="ruby-keyword kw">end</span> -298: -299: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> -300: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File abtlogmanager.rb, line 295</span> +295: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_journal</span>( <span class="ruby-identifier">message</span> ) +296: <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-value str">"a+"</span> ) ) +297: <span class="ruby-identifier">log</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{$TIMESTAMP} : #{message}\n"</span> +298: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">close</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">return</span> <span class="ruby-keyword kw">false</span> +303: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/AbtPackage.html =================================================================== --- src/trunk/doc/classes/AbtPackage.html 2007-07-24 13:36:32 UTC (rev 416) +++ src/trunk/doc/classes/AbtPackage.html 2007-07-24 13:40:05 UTC (rev 417) @@ -78,7 +78,7 @@ <map id="map" name="map"> <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="dot/f_3.png"> +<img src="../dot/f_3.png" usemap="#map" border="0" alt="TopLevel" /> </td></tr></table> <div class="description"><p> @@ -90,8 +90,7 @@ 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 <a href="AbtPackage.html#M000026">new</a> <a -href="AbtPackage.html">AbtPackage</a>. +make use of the new <a href="AbtPackage.html">AbtPackage</a>. </p> <p> Created by Eric D. Schabell <er...@ab...> Copyright 2006, GPL. @@ -108,8 +107,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 <a -href="AbtPackage.html#M000027">details</a>. +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +details. </p> <p> You should have received a copy of the GNU General Public License along @@ -310,7 +309,7 @@ <div class="description"> <p> Constructor for an <a href="AbtPackage.html">AbtPackage</a>, requires all -the packge <a href="AbtPackage.html#M000027">details</a>. +the packge details. </p> <p> <b>PARAM</b> <em>Hash</em> - hash containing all package data. @@ -394,13 +393,12 @@ </div> <div class="description"> <p> -Here we manage the ./<a href="AbtPackage.html#M000029">configure</a> step -(or equivalent). We need to give ./<a -href="AbtPackage.html#M000029">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. +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. </p> <p> <b>PARAM</b> <em>boolean</em> - true if you want to see the verbose output, @@ -620,8 +618,8 @@ <div class="description"> <p> Any actions needed before the installation can occur will happen here, such -as creating <a href="AbtPackage.html#M000026">new</a> user accounts, -dealing with existing configuration files, etc. +as creating new user accounts, dealing with existing configuration files, +etc. </p> <p> <b>PARAM</b> <em>boolean</em> - true if you want to see the verbose output, @@ -652,8 +650,7 @@ </div> <div class="description"> <p> -Cleans up this packages source <a href="AbtPackage.html#M000030">build</a> -directory. +Cleans up this packages source build directory. </p> <p> <b>RETURNS:</b> <em>boolean</em> - True if the completes sucessfully, @@ -692,8 +689,7 @@ </div> <div class="description"> <p> -Unpacks this packages source file into the standard <a -href="AbtPackage.html#M000030">build</a> location. +Unpacks this packages source file into the standard build location. </p> <p> <b>RETURNS:</b> <em>boolean</em> - True if the completes sucessfully, Modified: src/trunk/doc/classes/AbtPackageManager.html =================================================================== --- src/trunk/doc/classes/AbtPackageManager.html 2007-07-24 13:36:32 UTC (rev 416) +++ src/trunk/doc/classes/AbtPackageManager.html 2007-07-24 13:40:05 UTC (rev 417) @@ -78,7 +78,7 @@ <map id="map" name="map"> <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="dot/f_4.png"> +<img src="../dot/f_4.png" usemap="#map" border="0" alt="TopLevel" /> </td></tr></table> <div class="description"><p> Modified: src/trunk/doc/classes/AbtQueueManager.html =================================================================== --- src/trunk/doc/classes/AbtQueueManager.html 2007-07-24 13:36:32 UTC (rev 416) +++ src/trunk/doc/classes/AbtQueueManager.html 2007-07-24 13:40:05 UTC (rev 417) @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,157,98" href="AbtQueueManager.html" alt="AbtQueueManager" /> </map> -<img src="../dot/f_5.png" usemap="#map" border="0" alt="dot/f_5.png"> +<img src="../dot/f_5.png" usemap="#map" border="0" alt="TopLevel" /> </td></tr></table> <div class="description"><p> Modified: src/trunk/doc/classes/AbtReportManager.html =================================================================== --- src/trunk/doc/classes/AbtReportManager.html 2007-07-24 13:36:32 UTC (rev 416) +++ src/trunk/doc/classes/AbtReportManager.html 2007-07-24 13:40:05 UTC (rev 417) @@ -78,7 +78,7 @@ <map id="map" name="map"> <area shape="rect" coords="27,50,157,98" href="AbtReportManager.html" alt="AbtReportManager" /> </map> -<img src="../dot/f_6.png" usemap="#map" border="0" alt="dot/f_6.png"> +<img src="../dot/f_6.png" usemap="#map" border="0" alt="TopLevel" /> </td></tr></table> <div class="description"><p> Modified: src/trunk/doc/classes/AbtSystemManager.html =================================================================== --- src/trunk/doc/classes/AbtSystemManager.html 2007-07-24 13:36:32 UTC (rev 416) +++ src/trunk/doc/classes/AbtSystemManager.html 2007-07-24 13:40:05 UTC (rev 417) @@ -78,7 +78,7 @@ <map id="map" name="map"> <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="dot/f_7.png"> +<img src="../dot/f_7.png" usemap="#map" border="0" alt="TopLevel" /> </td></tr></table> <div class="description"><p> Modified: src/trunk/doc/classes/AbtUsage.html =================================================================== --- src/trunk/doc/classes/AbtUsage.html 2007-07-24 13:36:32 UTC (rev 416) +++ src/trunk/doc/classes/AbtUsage.html 2007-07-24 13:40:05 UTC (rev 417) @@ -78,14 +78,14 @@ <map id="map" name="map"> <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="dot/f_8.png"> +<img src="../dot/f_8.png" usemap="#map" border="0" alt="TopLevel" /> </td></tr></table> <div class="description"><p> abtusage.rb </p> <p> -The <a href="AbtUsage.html#M000035">usage</a> reporting class for AbTLinux. +The usage reporting class for AbTLinux. </p> <p> Created by Eric D. Schabell <er...@ab...> Copyright November @@ -138,8 +138,7 @@ </div> <div class="description"> <p> -The main <a href="AbtUsage.html#M000035">usage</a> method, displays either -a given section or all sections. +The main usage 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. @@ -195,8 +194,7 @@ </div> <div class="description"> <p> -The <a href="AbtUsage.html#M000035">usage</a> information for the download -commands. +The usage information for the download commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -223,8 +221,7 @@ </div> <div class="description"> <p> -The <a href="AbtUsage.html#M000035">usage</a> information for the fix -commands. +The usage information for the fix commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -254,8 +251,7 @@ </div> <div class="description"> <p> -The <a href="AbtUsage.html#M000035">usage</a> information for the -generation commands. +The usage information for the generation commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -282,8 +278,7 @@ </div> <div class="description"> <p> -The <a href="AbtUsage.html#M000035">usage</a> information for the -maintenance commands. +The usage information for the maintenance commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -312,8 +307,7 @@ </div> <div class="description"> <p> -The <a href="AbtUsage.html#M000035">usage</a> information for the packages -commands. +The usage information for the packages commands. </p> <p> <b>RETURN</b> <em>void</em> @@ -342,8 +336,7 @@ </div> <div class="description"> <p> -The <a href="AbtUsage.html#M000035">usage</a> information for the query -commands. +The usage 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-07-24 13:36:32 UTC (rev 416) +++ src/trunk/doc/classes/TestAbtDepEngine.html 2007-07-24 13:40:05 UTC (rev 417) @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,155,172" href="TestAbtDepEngine.html" alt="TestAbtDepEngine" /> <area shape="rect" coords="24,5,157,53" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase" /> </map> -<img src="../dot/f_9.png" usemap="#map" border="0" alt="dot/f_9.png"> +<img src="../dot/f_9.png" usemap="#map" border="0" alt="TopLevel" /> </td></tr></table> <div class="description"><p> @@ -134,8 +134,7 @@ </div> <div class="description"> <p> -<a href="TestAbtDepEngine.html#M000104">setup</a> method for testing <a -href="AbtDepEngine.html">AbtDepEngine</a>. +setup method for testing <a href="AbtDepEngine.html">AbtDepEngine</a>. </p> </div> <div class="sourcecode"> @@ -144,7 +143,7 @@ <pre> <span class="ruby-comment cmt"># File testabtdepengine.rb, line 36</span> 36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> -37: <span class="ruby-ivar">@depEngine</span> = <span class="ruby-constant">AbtDepEngine</span>.<span class="ruby-identifier">new</span>() +37: <span class="ruby-ivar">@depEngine</span> = <span class="ruby-constant">AbtDepEngine</span>.<span class="ruby-identifier">new</span> 38: <span class="ruby-keyword kw">end</span> </pre> </div> @@ -156,8 +155,7 @@ </div> <div class="description"> <p> -<a href="TestAbtDepEngine.html#M000105">teardown</a> method to cleanup -after testing. +teardown method to cleanup after testing. </p> </div> <div class="sourcecode"> Modified: src/trunk/doc/classes/TestAbtDownloadManager.html =================================================================== --- src/trunk/doc/classes/TestAbtDownloadManager.html 2007-07-24 13:36:32 UTC (rev 416) +++ src/trunk/doc/classes/TestAbtDownloadManager.html 2007-07-24 13:40:05 UTC (rev 417) @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,195,172" href="TestAbtDownloadManager.html" alt="TestAbtDownloadManager" /> <area shape="rect" coords="44,5,177,53" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase" /> </map> -<img src="../dot/f_10.png" usemap="#map" border="0" alt="dot/f_10.png"> +<img src="../dot/f_10.png" usemap="#map" border="0" alt="TopLevel" /> </td></tr></table> <div class="description"><p> @@ -140,8 +140,8 @@ </div> <div class="description"> <p> -<a href="TestAbtDownloadManager.html#M000084">setup</a> method for testing -<a href="AbtDownloadManager.html">AbtDownloadManager</a>. +setup method for testing <a +href="AbtDownloadManager.html">AbtDownloadManager</a>. </p> </div> <div class="sourcecode"> @@ -150,8 +150,10 @@ <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> +37: <span class="ruby-ivar">@download</span> = <span class="ruby-constant">AbtDownloadManager</span>.<span class="ruby-identifier">new</span> +38: <span class="ruby-ivar">@manager</span> = <span class="ruby-constant">AbtPackageManager</span>.<span class="ruby-identifier">new</span> +39: <span class="ruby-ivar">@system</span> = <span class="ruby-constant">AbtSystemManager</span>.<span class="ruby-identifier">new</span> +40: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -162,17 +164,16 @@ </div> <div class="description"> <p> -<a href="TestAbtDownloadManager.html#M000085">teardown</a> method to -cleanup after testing. +teardown method to cleanup after testing. </p> </div> <div class="sourcecode"> <p class="source-link">[ <a href="javascript:toggleSource('M000085_source')" id="l_M000085_source">show source</a> ]</p> <div id="M000085_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">teardown</span> -44: <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">teardown</span> +46: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -190,10 +191,10 @@ <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 testabtdownloadmanager.rb, line 64</span> -64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_retrieve_news_feed</span>() -65: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrieve_news_feed</span>( <span class="ruby-identifier">$ABTNEWS</span> ), <span class="ruby-value str">"test_retrieve_news_feed()"</span> ) -66: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File testabtdownloadmanager.rb, line 68</span> +68: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_retrieve_news_feed</span>() +69: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrieve_news_feed</span>( <span class="ruby-identifier">$ABTNEWS</span> ), <span class="ruby-value str">"test_retrieve_news_feed()"</span> ) +70: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -212,11 +213,13 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000086_source')" id="l_M000086_source">show source</a> ]</p> <div id="M000086_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File testabtdownloadmanager.rb, line 49</span> -49: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_retrieve_package_source</span>() -50: <span class="ruby-identifier">assert</span>( -51: <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrieve_package_source</span>( <span class="ruby-value str">"ipc"</span>, <span class="ruby-node">"#{$SOURCES_REPOSITORY}"</span> ), <span class="ruby-value str">"test_retrieve_package_source()"</span> ) -52: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File testabtdownloadmanager.rb, line 51</span> +51: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_retrieve_package_source</span>() +52: <span class="ruby-comment cmt"># ensures download not needed.</span> +53: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">cp</span> <span class="ruby-node">"#{$PACKAGE_PATH}/ipc-1.4.tar.gz"</span>, <span class="ruby-node">"#{$SOURCES_REPOSITORY}"</span>, <span class="ruby-identifier">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> <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-node">"#{$SOURCES_REPOSITORY}/ipc-1.4.tar.gz"</span> ) +54: +55: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrieve_package_source</span>( <span class="ruby-value str">"ipc"</span>, <span class="ruby-node">"#{$SOURCES_REPOSITORY}"</span> ), <span class="ruby-value str">"test_retrieve_package_source()"</span> ) +56: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -235,10 +238,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 testabtdownloadmanager.rb, line 57</span> -57: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_retrieve_package_tree</span>() -58: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrieve_package_tree</span>( <span class="ruby-value str">"dummy"</span> ), <span class="ruby-value str">"test_retrieve_package_tree()"</span> ) -59: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File testabtdownloadmanager.rb, line 61</span> +61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_retrieve_package_tree</span>() +62: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrieve_package_tree</span>( <span class="ruby-value str">"dummy"</span> ), <span class="ruby-value str">"test_retrieve_package_tree()"</span> ) +63: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -256,10 +259,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 testabtdownloadmanager.rb, line 71</span> -71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_update_package</span>() -72: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">update_package</span>() , <span class="ruby-value str">"test_update_package()"</span> ) -73: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File testabtdownloadmanager.rb, line 75</span> +75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_update_package</span>() +76: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">update_package</span>() , <span class="ruby-value str">"test_update_package()"</span> ) +77: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -277,10 +280,10 @@ <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 testabtdownloadmanager.rb, line 78</span> -78: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_update_package_tree</span>() -79: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">update_package_tree</span>(), <span class="ruby-value str">"test_update_package_tree()"</span> ) -80: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File testabtdownloadmanager.rb, line 82</span> +82: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_update_package_tree</span>() +83: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">update_package_tree</span>(), <span class="ruby-value str">"test_update_package_tree()"</span> ) +84: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -298,10 +301,13 @@ <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 testabtdownloadmanager.rb, line 85</span> -85: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_validated</span>() -86: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">validated</span>( <span class="ruby-value str">'e81278607b1d65dcb18c3613ec00fbf588b50319'</span>, <span class="ruby-node">"#{$SOURCES_REPOSITORY}/ipc-1.4.tar.gz"</span> ), <span class="ruby-value str">"test_validated"</span> ) -87: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File testabtdownloadmanager.rb, line 89</span> +89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_validated</span>() +90: <span class="ruby-comment cmt"># ensure a tarball is available to test!</span> +91: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">cp</span> <span class="ruby-node">"#{$PACKAGE_PATH}/ipc-1.4.tar.gz"</span>, <span class="ruby-node">"#{$SOURCES_REPOSITORY}"</span>, <span class="ruby-identifier">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> <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-node">"#{$SOURCES_REPOSITORY}/ipc-1.4.tar.gz"</span> ) +92: +93: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">validated</span>( <span class="ruby-value str">'e81278607b1d65dcb18c3613ec00fbf588b50319'</span>, <span class="ruby-node">"#{$SOURCES_REPOSITORY}/ipc-1.4.tar.gz"</span> ), <span class="ruby-value str">"test_validated"</span> ) +94: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/TestAbtLogManager.html =================================================================== --- src/trunk/doc/classes/TestAbtLogManager.html 2007-07-24 13:36:32 UTC (rev 416) +++ src/trunk/doc/classes/TestAbtLogManager.html 2007-07-24 13:40:05 UTC (rev 417) @@ -79,7 +79,7 @@ <area shape="rect" coords="27,124,163,172" href="TestAbtLogManager.html" alt="TestAbtLogManager" /> <area shape="rect" coords="28,5,161,53" href="Test/Unit/TestCase.html" alt="Test::Unit::TestCase" /> </map> -<img src="../dot/f_11.png" usemap="#map" border="0" alt="dot/f_11.png"> +<img src="../dot/f_11.png" usemap="#map" border="0" alt="TopLevel" /> </td></tr></table> <div class="description"><p> @@ -138,8 +138,7 @@ </div> <div class="description"> <p> -<a href="TestAbtLogManager.html#M000107">setup</a> method for testing <a -href="AbtLogManager.html">AbtLogManager</a>. +setup method for testing <a href="AbtLogManager.html">AbtLogManager</a>. </p> </div> <div class="sourcecode"> @@ -148,8 +147,13 @@ <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> +37: <span class="ruby-ivar">@logger</span> = <span class="ruby-constant">AbtLogManager</span>.<span class="ruby-identifier">new</span> +38: <span class="ruby-ivar">@manager</span> = <span class="ruby-constant">AbtPackageManager</span>.<span class="ruby-identifier">new</span> +39: <span class="ruby-ivar">@system</span> = <span class="ruby-constant">AbtSystemManager</span>.<span class="ruby-identifier">new</span> +40: +41: <span class="ruby-comment cmt"># ensures download not needed.</span> +42: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">cp</span> <span class="ruby-node">"#{$PACKAGE_PATH}/ipc-1.4.tar.gz"</span>, <span class="ruby-node">"#{$SOURCES_REPOSITORY}"</span>, <span class="ruby-identifier">:verbose</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> <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-node">"#{$SOURCES_REPOSITORY}/ipc-1.4.tar.gz"</span> ) +43: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -160,17 +164,17 @@ </div> <div class="description"> <p> -<a href="TestAbtLogManager.html#M000108">teardown</a> method to cleanup -after testing. +teardown method to cleanup after testing. </p> </div> <div class="sourcecode"> <p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show source</a> ]</p> <div id="M000108_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">teardown</span> -44: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File testabtlogmanager.rb, line 48</span> +48: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">teardown</span> +49: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm</span>( <span class="ruby-node">"#{$ABT_TMP}/ipc-1.4.watch"</span> ) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>( <span class="ruby-node">"#{$ABT_TMP}/ipc-1.2.watch"</span> ) +50: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -188,10 +192,14 @@ <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"> <pre> - <span class="ruby-comment cmt"># File testabtlogmanager.rb, line 70</span> -70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cache_package</span>() -71: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">cache_package</span>( <span class="ruby-value str">"ipc"</span> ), <span class="ruby-value str">"test_cache_package()"</span> ) -72: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File testabtlogmanager.rb, line 100</span> +100: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_cache_package</span>() +101: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@system</span>.<span class="ruby-identifier">package_installed</span>( <span class="ruby-value str">"ipc"</span> ) +102: <span class="ruby-ivar">@manager</span>.<span class="ruby-identifier">install_package</span>( <span class="ruby-value str">"ipc"</span> ) +103: <span class="ruby-keyword kw">end</span> +104: +105: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@logger</span>.<span class="ruby-identifier">cache_package</span>( <span class="ruby-value str">"ipc"</span> ), <span class="ruby-value str">"test_cache_package()"</span> ) +106: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -209,10 +217,14 @@ <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 testabtlogmanager.rb, line 63</span> -63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_log_package_build</span>() -64: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@log</span>.<span class="ruby-identifier">log_package_build</span>( <span class="ruby-value str">"ipc"</span> ), <span class="ruby-value str">"test_log_package_build()"</span> ) -65: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File testabtlogmanager.rb, line 89</span> +89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_log_package_build</span>() +90: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@system</span>.<span class="ruby-identifier">package_installed</span>( <span class="ruby-value str">"ipc"</span> ) +91: <span class="ruby-ivar">@manager</span>.<span class="ruby-identifier"... [truncated message content] |
From: <esc...@us...> - 2007-07-24 13:37:04
|
Revision: 416 http://svn.sourceforge.net/abtlinux/?rev=416&view=rev Author: eschabell Date: 2007-07-24 06:36:32 -0700 (Tue, 24 Jul 2007) Log Message: ----------- Small rubish fix. Modified Paths: -------------- src/trunk/testabtdepengine.rb Modified: src/trunk/testabtdepengine.rb =================================================================== --- src/trunk/testabtdepengine.rb 2007-07-24 13:35:55 UTC (rev 415) +++ src/trunk/testabtdepengine.rb 2007-07-24 13:36:32 UTC (rev 416) @@ -34,7 +34,7 @@ # setup method for testing AbtDepEngine. ## def setup - @depEngine = AbtDepEngine.new() + @depEngine = AbtDepEngine.new end ## This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-07-24 13:35:53
|
Revision: 415 http://svn.sourceforge.net/abtlinux/?rev=415&view=rev Author: eschabell Date: 2007-07-24 06:35:55 -0700 (Tue, 24 Jul 2007) Log Message: ----------- Refactored for better test coverage. 6 tests still failing. Modified Paths: -------------- src/trunk/testabtsystemmanager.rb Modified: src/trunk/testabtsystemmanager.rb =================================================================== --- src/trunk/testabtsystemmanager.rb 2007-07-24 13:23:09 UTC (rev 414) +++ src/trunk/testabtsystemmanager.rb 2007-07-24 13:35:55 UTC (rev 415) @@ -34,7 +34,11 @@ # setup method for testing AbtSystemManager. ## def setup - @sys = AbtSystemManager.new() + @system = AbtSystemManager.new + @manager = AbtPackageManager.new + + # ensure tarball availabe without downloading. + FileUtils.cp( "#{$PACKAGE_PATH}/ipc-1.4.tar.gz", "#{$SOURCES_REPOSITORY}", :verbose => true ) if !File.exist?( "#{$SOURCES_REPOSITORY}/ipc-1.4.tar.gz" ) end ## @@ -47,63 +51,84 @@ # Test method for 'AbtSystemManager.test_cleanup_package_sources()' ## def test_cleanup_package_sources - assert( @sys.cleanup_package_sources(), "test_cleanup_package_sources()" ) + # remove test package so that sources can be removed. + if @system.package_installed( "ipc" ) + @manager.remove_package( "ipc" ) + end + + # ensure tarball availabe without downloading. + FileUtils.cp( "#{$PACKAGE_PATH}/ipc-1.4.tar.gz", "#{$SOURCES_REPOSITORY}", :verbose => true ) if !File.exist?( "#{$SOURCES_REPOSITORY}/ipc-1.4.tar.gz" ) + + assert( @system.cleanup_package_sources(), "test_cleanup_package_sources()" ) end ## # Test method for 'AbtSystemManager.test_verify_installed_files()' ## def test_verify_installed_files - assert( @sys.verify_installed_files( "ipc" ), "test_verify_installed_files()" ) + # ensure test package installed. + if !@system.package_installed( "ipc" ) + @manager.install_package( "ipc" ) + end + + assert( @system.verify_installed_files( "ipc" ), "test_verify_installed_files()" ) end ## # Test method for 'AbtSystemManager.test_verify_symlinks()' ## def test_verify_symlinks - assert( @sys.verify_symlinks( "dummy" ), "test_verify_symlinks()" ) + assert( @system.verify_symlinks( "dummy" ), "test_verify_symlinks()" ) end ## # Test method for 'AbtSystemManager.test_verify_package_depends()' ## def test_verify_package_depends - assert( @sys.verify_package_depends( "dummy" ), "test_verify_package_depends()" ) + assert( @system.verify_package_depends( "dummy" ), "test_verify_package_depends()" ) end ## # Test method for 'AbtSystemManager.test_verify_package_integrity()' ## def test_verify_package_integrity - assert( @sys.verify_package_integrity( "dummy" ), "test_verify_package_integrity()" ) + if !@system.package_installed( "ipc" ) + @manager.install_package( "ipc" ) + end + + assert( @system.verify_package_integrity( "ipc" ), "test_verify_package_integrity()" ) end ## # Test method for 'AbtSystemManager.test_fix_package()' ## def test_fix_package - assert( @sys.fix_package( "dummy" ), "test_fix_package()" ) + assert( @system.fix_package( "dummy" ), "test_fix_package()" ) end ## # Test method for 'AbtSystemManager.test_set_central_repo()' ## def test_set_central_repo - assert( @sys.set_central_repo( "http://localhost" ), "test_set_central_repo()" ) + assert( @system.set_central_repo( "http://localhost" ), "test_set_central_repo()" ) end ## # Test method for 'AbtSystemManager.test_set_package_tree_location()' ## def test_set_package_tree_location - assert( @sys.set_package_tree_location( "/var/lib/ericsPackages" ), "test_set_package_tree_location()" ) + assert( @system.set_package_tree_location( "/var/lib/ericsPackages" ), "test_set_package_tree_location()" ) end ## # Test method for 'AbtSystemManager.test_package_installed()' ## def test_package_installed - assert( @sys.package_installed( "ipc" ), "test_package_installed()" ) + if !@system.package_installed( "ipc" ) + @manager.install_package( "ipc" ) + end + + assert( @system.package_installed( "ipc" ), "test_package_installed()" ) end end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-07-24 13:23:07
|
Revision: 414 http://svn.sourceforge.net/abtlinux/?rev=414&view=rev Author: eschabell Date: 2007-07-24 06:23:09 -0700 (Tue, 24 Jul 2007) Log Message: ----------- Refactored to ensure better unit testing coverage. 6 unit tests here still failing. Modified Paths: -------------- src/trunk/testabtreportmanager.rb Modified: src/trunk/testabtreportmanager.rb =================================================================== --- src/trunk/testabtreportmanager.rb 2007-07-24 13:10:45 UTC (rev 413) +++ src/trunk/testabtreportmanager.rb 2007-07-24 13:23:09 UTC (rev 414) @@ -38,15 +38,15 @@ @manager = AbtPackageManager.new @system = AbtSystemManager.new - if !@system.package_installed( "ipc" ) - @manager.install_package( "ipc" ) - end + # ensure tarball available without downloading. + FileUtils.cp( "#{$PACKAGE_PATH}/ipc-1.4.tar.gz", "#{$SOURCES_REPOSITORY}", :verbose => true ) if !File.exist?( "#{$SOURCES_REPOSITORY}/ipc-1.4.tar.gz" ) end ## # teardown method to cleanup after testing. ## def teardown + # TODO: if test package frozen, unfreeze it. end ## @@ -60,6 +60,11 @@ # Test method for 'AbtReportManager.test_show_installed_packages()' ## def test_show_installed_packages + # ensure test pacakge installed for listing. + if !@system.package_installed( "ipc" ) + @manager.install_package( "ipc" ) + end + assert_nil( @report.show_installed_packages(), "test_show_installed_packages()" ) end @@ -67,6 +72,10 @@ # Test method for 'AbtReportManager.test_show_package_log()' ## def test_show_package_log + if !@system.package_installed( "ipc" ) + @manager.install_package( "ipc" ) + end + assert( @report.show_package_log( "ipc", "install" ), "test_show_package_log(install)" ) assert( @report.show_package_log( "ipc", "build" ), "test_show_package_log(build)" ) assert( @report.show_package_log( "ipc", "integrity" ), "test_show_package_log(integrity)" ) @@ -76,6 +85,13 @@ # Test method for 'AbtReportManager.test_show_frozen_packages()' ## def test_show_frozen_packages + # ensure test package installed. + if !@system.package_installed( "ipc" ) + @manager.install_package( "ipc" ) + end + + # TODO: freeze test pacakge. + assert( @report.show_frozen_packages(), "test_show_frozen_packages()" ) end @@ -104,6 +120,11 @@ # Test method for 'AbtReportManager.test_show_file_owner()' ## def test_show_file_owner + # ensure package installed for testing file owner. + if !@system.package_installed( "ipc" ) + @manager.install_package( "ipc" ) + end + assert( @report.show_file_owner( "ipcFile" ), "test_show_file_owner()" ) end @@ -112,6 +133,7 @@ ## def test_search_package_descriptions expectedHash = Hash[ "ipc-1.4" => "IPC is a program that calculates the isotopic distribution of a given chemical formula."] + assert_equal( @report.search_package_descriptions( "ipc" ), expectedHash, "test_search_package_descriptions()" ) end @@ -119,11 +141,7 @@ # Test method for 'AbtReportManager.test_show_queue()' ## def test_show_queue - if ( @report.show_queue( "install" ) ) - assert(false, "test_show_queue()") - else - assert(true, "test_show_queue()") - end + assert_nil( @report.show_queue( "install" ), "test_show_queue(install)" ) end ## @@ -137,6 +155,11 @@ # Test method for 'AbtReportManager.test_generate_HTML_package_listing()' ## def test_generate_HTML_package_listing + # ensure at least one package is installed. + if !@system.package_installed( "ipc" ) + @manager.install_package( "ipc" ) + end + assert( @report.generate_HTML_package_listing(), "test_generate_HTML_package_listing()" ) end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-07-24 13:10:46
|
Revision: 413 http://svn.sourceforge.net/abtlinux/?rev=413&view=rev Author: eschabell Date: 2007-07-24 06:10:45 -0700 (Tue, 24 Jul 2007) Log Message: ----------- Expanded unit test to include tests for all possible usage. Modified Paths: -------------- src/trunk/testabtqueuemanager.rb Modified: src/trunk/testabtqueuemanager.rb =================================================================== --- src/trunk/testabtqueuemanager.rb 2007-07-24 13:08:16 UTC (rev 412) +++ src/trunk/testabtqueuemanager.rb 2007-07-24 13:10:45 UTC (rev 413) @@ -41,14 +41,16 @@ # teardown method to cleanup after testing. ## def teardown - @queue.action_package_queue "ipc", "install", "remove" end ## # Test method for 'AbtQueueManager.action_package_queue()' ## def test_action_package_queue - assert( @queue.action_package_queue( "ipc", "install", "add" ), "test_action_package_queue()" ) + assert( @queue.action_package_queue( "ipc", "install", "add" ), "test_action_package_queue(add)" ) + assert( @queue.action_package_queue( "ipc", "install" ), "test_action_package_queue(default add again)" ) + assert( @queue.action_package_queue( "ipc", "install", "remove" ), "test_action_package_queue(remove)" ) + end end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2007-07-24 13:08:14
|
Revision: 412 http://svn.sourceforge.net/abtlinux/?rev=412&view=rev Author: eschabell Date: 2007-07-24 06:08:16 -0700 (Tue, 24 Jul 2007) Log Message: ----------- Small refactoring to allow to cleanout queue entry put in for testing. Test is passing! Modified Paths: -------------- src/trunk/testabtqueuemanager.rb Modified: src/trunk/testabtqueuemanager.rb =================================================================== --- src/trunk/testabtqueuemanager.rb 2007-07-24 13:04:57 UTC (rev 411) +++ src/trunk/testabtqueuemanager.rb 2007-07-24 13:08:16 UTC (rev 412) @@ -34,13 +34,14 @@ # setup method for testing AbtQueueManager. ## def setup - @queue = AbtQueueManager.new() + @queue = AbtQueueManager.new end ## # teardown method to cleanup after testing. ## def teardown + @queue.action_package_queue "ipc", "install", "remove" end ## This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |