abtlinux-svn Mailing List for ABout Time Linux (AbTLinux) (Page 16)
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...> - 2006-11-16 14:37:56
|
Revision: 188 http://svn.sourceforge.net/abtlinux/?rev=188&view=rev Author: eschabell Date: 2006-11-16 06:13:01 -0800 (Thu, 16 Nov 2006) Log Message: ----------- Adjusted logging test message for clarity. Added abtConfig file for system config variables for abt package manager. Adjusted test suite and abt to use new config file. Modified Paths: -------------- src/trunk/TestAbtLogManager.rb src/trunk/abt.rb src/trunk/testSuiteAbt.rb Added Paths: ----------- src/trunk/abtConfig.rb Modified: src/trunk/TestAbtLogManager.rb =================================================================== --- src/trunk/TestAbtLogManager.rb 2006-11-16 14:00:42 UTC (rev 187) +++ src/trunk/TestAbtLogManager.rb 2006-11-16 14:13:01 UTC (rev 188) @@ -70,7 +70,7 @@ # Test method for 'AbtLogManager.testLogToJournal()' ## def testLogToJournal() - assert( @log.logToJournal( "Test message." ), "testLogToJournal()" ) + assert( @log.logToJournal( "Test message from AbtTestSuite." ), "testLogToJournal()" ) end end Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-16 14:00:42 UTC (rev 187) +++ src/trunk/abt.rb 2006-11-16 14:13:01 UTC (rev 188) @@ -24,6 +24,7 @@ # AbTLinux; if not, write to the Free Software Foundation, Inc., 51 Franklin # St, Fifth Floor, Boston, MA 02110-1301 USA ## +require 'abtConfig' require 'AbtPackageManager' require 'AbtLogManager' require 'AbtReportManager' @@ -37,13 +38,7 @@ require 'optparse' -$PACKAGE_PATH = "./packages/" -$SOURCES_REPOSITORY = "/var/spool/abt/sources" -$ABTNEWS = "http://abtlinux.org/e107_plugins/rss_menu/rss.php?1.2" -$JOURNAL_PATH = "/var/log/abt" -$JOURNAL = "#{$JOURNAL_PATH}/journal.log" - ## # Setup for parsing arguments. ## Added: src/trunk/abtConfig.rb =================================================================== --- src/trunk/abtConfig.rb (rev 0) +++ src/trunk/abtConfig.rb 2006-11-16 14:13:01 UTC (rev 188) @@ -0,0 +1,31 @@ +#!/usr/bin/ruby -w + +## +# abtConfig.rb +# +# The system configuration for the abt package manager. +# +# Created by Eric D. Schabell <er...@ab...> +# Copyright July 2006, GPL. +# +# This file is part of AbTLinux. +# +# AbTLinux is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# 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. +# +# You should have received a copy of the GNU General Public License along with +# AbTLinux; if not, write to the Free Software Foundation, Inc., 51 Franklin +# St, Fifth Floor, Boston, MA 02110-1301 USA +## +$PACKAGE_PATH = "./packages/" +$SOURCES_REPOSITORY = "/var/spool/abt/sources" +$ABTNEWS = "http://abtlinux.org/e107_plugins/rss_menu/rss.php?1.2" +$JOURNAL_PATH = "/var/log/abt" +$JOURNAL = "#{$JOURNAL_PATH}/journal.log" Property changes on: src/trunk/abtConfig.rb ___________________________________________________________________ Name: svn:executable + * Modified: src/trunk/testSuiteAbt.rb =================================================================== --- src/trunk/testSuiteAbt.rb 2006-11-16 14:00:42 UTC (rev 187) +++ src/trunk/testSuiteAbt.rb 2006-11-16 14:13:01 UTC (rev 188) @@ -7,6 +7,7 @@ end require 'test/unit' +require 'abtConfig' require 'TestAbtDepEngine' require 'TestAbtDownloadManager' require 'TestAbtLogManager' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: ABout T. L. <esc...@us...> - 2006-11-16 14:35:14
|
IzI6IExvZyBpbml0aWFsIGZpbGUgcGVybWlzc2lvbnMgb24gaW5zdGFsbA0KLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0rLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLQ0KICBSZXBvcnRlcjogIGVyaWNzICAgICB8ICAgICAgIE93bmVyOiAgZXJpY3MgICAg ICANCiAgICAgIFR5cGU6ICB3aXNobGlzdCAgfCAgICAgIFN0YXR1czogIG5ldyAgICAgICAgDQog IFByaW9yaXR5OiAgbWlub3IgICAgIHwgICBNaWxlc3RvbmU6ICB2ZXJzaW9uXzEueA0KIENvbXBv bmVudDogIGFidCAgICAgICB8ICAgICBWZXJzaW9uOiAgMS4wICAgICAgICANClJlc29sdXRpb246 ICAgICAgICAgICAgfCAgICBLZXl3b3JkczogICAgICAgICAgICAgDQotLS0tLS0tLS0tLS0tLS0t LS0tLS0tLSstLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tDQpDaGFuZ2VzIChieSBlcmljcyk6DQoNCiAgKiBtaWxlc3RvbmU6ICB2ZXJzaW9uXzEuMCA9 PiB2ZXJzaW9uXzEueA0KDQotLSANClRpY2tldCBVUkw6IDxodHRwOi8vdHJhYy5hYnRsaW51eC5v cmcvdGlja2V0LzIjY29tbWVudDoxPg0KQUJvdXQgVGltZSBMaW51eCA8aHR0cDovL2FidGxpbnV4 Lm9yZz4NCkl0J3MgYWJvdXQgdGltZSBzb21lb25lIGRpZCBpdCByaWdodC4uLg== |
From: <esc...@us...> - 2006-11-16 14:30:08
|
Revision: 190 http://svn.sourceforge.net/abtlinux/?rev=190&view=rev Author: eschabell Date: 2006-11-16 06:16:50 -0800 (Thu, 16 Nov 2006) Log Message: ----------- Expanded a comment. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-16 14:14:50 UTC (rev 189) +++ src/trunk/abt.rb 2006-11-16 14:16:50 UTC (rev 190) @@ -40,7 +40,8 @@ ## -# Setup for parsing arguments. +# Setup needed classes and get ready +# to parse arguments. ## manager = AbtPackageManager.new logger = AbtLogManager.new This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: ABout T. L. <esc...@us...> - 2006-11-16 14:20:14
|
IzExOiBkZWZpbmUgcGFja2FnZSBmb3JtYXQgYW5kIG1ldGhvZHMuDQotLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0rLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tDQogIFJlcG9ydGVyOiAgbG93ICAgICAgICB8ICAgICAgIE93bmVyOiAgbG93ICAgICAgICAg ICAgICAgICAgICAgICAgDQogICAgICBUeXBlOiAgd2lzaGxpc3QgICB8ICAgICAgU3RhdHVzOiAg bmV3ICAgICAgICAgICAgICAgICAgICAgICAgDQogIFByaW9yaXR5OiAgY3JpdGljYWwgICB8ICAg TWlsZXN0b25lOiAgdmVyc2lvbl8wLjkgICAgICAgICAgICAgICAgDQogQ29tcG9uZW50OiAgZGVw RW5naW5lICB8ICAgICBWZXJzaW9uOiAgMC44ICAgICAgICAgICAgICAgICAgICAgICAgDQpSZXNv bHV0aW9uOiAgICAgICAgICAgICB8ICAgIEtleXdvcmRzOiAgcGFja2FnZSBmaWxlIGZvcm1hdCBt ZXRob2RzDQotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0rLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQpDaGFuZ2VzIChieSBlcmljcyk6DQoNCiAgKiBt aWxlc3RvbmU6ICB2ZXJzaW9uXzEuMCA9PiB2ZXJzaW9uXzAuOQ0KDQpDb21tZW50Og0KDQogVGhp cyBzZWVtcyB0byBiZSBmYWlybHkgaW4gYSBmYXIgc3RhZGl1bSwgSSBhbSBzdGFydGluZyB0byB3 b3JrIHdpdGggYQ0KIHBhY2thZ2UgZGVmaW5pdGlvbiBhbHJlYWR5IChmb3J0dW5lLCBzZWUgcmVw byksIHNob3VsZCB5b3UgbmVlZCB0byBnZXQNCiBtb3JlIGRvbmUsIGFkZCBpdCBzb29uLg0KDQot LSANClRpY2tldCBVUkw6IDxodHRwOi8vdHJhYy5hYnRsaW51eC5vcmcvdGlja2V0LzExI2NvbW1l bnQ6MT4NCkFCb3V0IFRpbWUgTGludXggPGh0dHA6Ly9hYnRsaW51eC5vcmc+DQpJdCdzIGFib3V0 IHRpbWUgc29tZW9uZSBkaWQgaXQgcmlnaHQuLi4= |
From: ABout T. L. <esc...@us...> - 2006-11-16 14:18:34
|
IzE6IEdVSSBmb3IgYWJ0DQotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0rLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQogIFJlcG9ydGVyOiAgZXJpY3Mg ICAgICB8ICAgICAgIE93bmVyOiAgZXJpY3MgICAgICANCiAgICAgIFR5cGU6ICB3aXNobGlzdCAg IHwgICAgICBTdGF0dXM6ICBuZXcgICAgICAgIA0KICBQcmlvcml0eTogIHRyaXZpYWwgICAgfCAg IE1pbGVzdG9uZTogIHZlcnNpb25fMS54DQogQ29tcG9uZW50OiAgZGVwRW5naW5lICB8ICAgICBW ZXJzaW9uOiAgMC45ICAgICAgICANClJlc29sdXRpb246ICAgICAgICAgICAgIHwgICAgS2V5d29y ZHM6ICAgICAgICAgICAgIA0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KQ2hhbmdlcyAoYnkgZXJpY3Mp Og0KDQogKiBjYzogPERlZmF1bHQ+IChyZW1vdmVkKQ0KICAqIGtleXdvcmRzOiAgPERlZmF1bHQ+ ID0+DQogICogbWlsZXN0b25lOiAgdmVyc2lvbl8wLjkgPT4gdmVyc2lvbl8xLngNCg0KLS0gDQpU aWNrZXQgVVJMOiA8aHR0cDovL3RyYWMuYWJ0bGludXgub3JnL3RpY2tldC8xI2NvbW1lbnQ6Mz4N CkFCb3V0IFRpbWUgTGludXggPGh0dHA6Ly9hYnRsaW51eC5vcmc+DQpJdCdzIGFib3V0IHRpbWUg c29tZW9uZSBkaWQgaXQgcmlnaHQuLi4= |
From: ABout T. L. <esc...@us...> - 2006-11-16 14:18:12
|
IzEzOiBhZGRpbmcgZW50cmllcyBmb3IgdGFyYmFsbCBzaXplIGFuZCBzaXplIGFmdGVyIGNvbXBp bGF0aW9uIGluIHBhY2thZ2VzDQotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQogIFJlcG9ydGVyOiAgbG93 QGFidGxpbnV4Lm9yZyAgfCAgICAgICBPd25lcjogIGxvd0BhYnRsaW51eC5vcmcNCiAgICAgIFR5 cGU6ICB3aXNobGlzdCAgICAgICAgICB8ICAgICAgU3RhdHVzOiAgbmV3ICAgICAgICAgICAgIA0K ICBQcmlvcml0eTogIG1ham9yICAgICAgICAgICAgIHwgICBNaWxlc3RvbmU6ICB2ZXJzaW9uXzEu eCAgICAgDQogQ29tcG9uZW50OiAgcGFja2FnZXMgICAgICAgICAgfCAgICAgVmVyc2lvbjogIDAu OCAgICAgICAgICAgICANClJlc29sdXRpb246ICAgICAgICAgICAgICAgICAgICB8ICAgIEtleXdv cmRzOiAgcGFja2FnZSBzcGVjcyAgIA0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSst LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KQ2hhbmdlcyAoYnkg ZXJpY3MpOg0KDQogICogbWlsZXN0b25lOiAgdmVyc2lvbl8wLjkgPT4gdmVyc2lvbl8xLngNCg0K LS0gDQpUaWNrZXQgVVJMOiA8aHR0cDovL3RyYWMuYWJ0bGludXgub3JnL3RpY2tldC8xMyNjb21t ZW50OjE+DQpBQm91dCBUaW1lIExpbnV4IDxodHRwOi8vYWJ0bGludXgub3JnPg0KSXQncyBhYm91 dCB0aW1lIHNvbWVvbmUgZGlkIGl0IHJpZ2h0Li4u |
From: <esc...@us...> - 2006-11-16 14:00:43
|
Revision: 187 http://svn.sourceforge.net/abtlinux/?rev=187&view=rev Author: eschabell Date: 2006-11-16 06:00:42 -0800 (Thu, 16 Nov 2006) Log Message: ----------- Moved global var for logging path info to abt.rb (main script) as these should all be in the front. Added logging of news retrieval. Modified Paths: -------------- src/trunk/AbtLogManager.rb src/trunk/abt.rb Modified: src/trunk/AbtLogManager.rb =================================================================== --- src/trunk/AbtLogManager.rb 2006-11-16 10:46:57 UTC (rev 186) +++ src/trunk/AbtLogManager.rb 2006-11-16 14:00:42 UTC (rev 187) @@ -27,9 +27,6 @@ ## class AbtLogManager - $LOG_PATH = "/var/log/abt" - $JOURNAL = "/var/log/abt/journal.log" - protected ## @@ -106,8 +103,8 @@ def logToJournal( message ) require 'date' - if ( !File.directory?( $LOG_PATH ) ) - FileUtils.mkdir_p( $LOG_PATH ) # initialize logs. + if ( !File.directory?( $JOURNAL_PATH ) ) + FileUtils.mkdir_p( $JOURNAL_PATH ) # initialize logs. end log = File.new($JOURNAL, File::WRONLY|File::APPEND|File::CREAT, 0644) Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-16 10:46:57 UTC (rev 186) +++ src/trunk/abt.rb 2006-11-16 14:00:42 UTC (rev 187) @@ -40,7 +40,10 @@ $PACKAGE_PATH = "./packages/" $SOURCES_REPOSITORY = "/var/spool/abt/sources" $ABTNEWS = "http://abtlinux.org/e107_plugins/rss_menu/rss.php?1.2" +$JOURNAL_PATH = "/var/log/abt" +$JOURNAL = "#{$JOURNAL_PATH}/journal.log" + ## # Setup for parsing arguments. ## @@ -224,7 +227,10 @@ puts " (package name with hyperlink to package website and version installed)" show.usage( "generation" ) + # abt news | -n when "news", "-n" + logger.logToJournal( "Starting to retrieve AbTLinux news." ) + # pick up the abtlinux.org news feed. news = Net::HTTP.get( URI.parse( $ABTNEWS ) ) @@ -233,7 +239,7 @@ begin rss = RSS::Parser.parse(news, false) rescue RSS::Error - end + end if ( rss.nil? ) puts $ABTNEWS + " is not RSS 1.0/2.0." @@ -249,7 +255,9 @@ puts "SUBJECT: #{item.description}\n" end end + logger.logToJournal( "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['package'] = ARGV[1] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-16 10:46:57
|
Revision: 186 http://svn.sourceforge.net/abtlinux/?rev=186&view=rev Author: eschabell Date: 2006-11-16 02:46:57 -0800 (Thu, 16 Nov 2006) Log Message: ----------- Addeed a title to the output of our news. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-16 10:41:10 UTC (rev 185) +++ src/trunk/abt.rb 2006-11-16 10:46:57 UTC (rev 186) @@ -238,6 +238,8 @@ if ( rss.nil? ) puts $ABTNEWS + " is not RSS 1.0/2.0." else + puts "\n\nThe latest and greatest news from AbTLinux:" + puts "===========================================" i = 0 rss.items.each do |item| i = i + 1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-16 10:41:11
|
Revision: 185 http://svn.sourceforge.net/abtlinux/?rev=185&view=rev Author: eschabell Date: 2006-11-16 02:41:10 -0800 (Thu, 16 Nov 2006) Log Message: ----------- Implemented news feed retrieval from abtlinux.org (abt -n). Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-16 10:03:14 UTC (rev 184) +++ src/trunk/abt.rb 2006-11-16 10:41:10 UTC (rev 185) @@ -30,11 +30,16 @@ require 'AbtDownloadManager' require 'AbtUsage' require 'fileutils' +require 'net/http' +require 'uri' +require 'rss/1.0' +require 'rss/2.0' require 'optparse' $PACKAGE_PATH = "./packages/" $SOURCES_REPOSITORY = "/var/spool/abt/sources" +$ABTNEWS = "http://abtlinux.org/e107_plugins/rss_menu/rss.php?1.2" ## # Setup for parsing arguments. @@ -220,8 +225,28 @@ show.usage( "generation" ) when "news", "-n" - puts "Display AbTLinux website newsfeed." - show.usage( "downloads" ) + # pick up the abtlinux.org news feed. + news = Net::HTTP.get( URI.parse( $ABTNEWS ) ) + + # display the feed neatly. + rss = nil + begin + rss = RSS::Parser.parse(news, false) + rescue RSS::Error + end + + if ( rss.nil? ) + puts $ABTNEWS + " is not RSS 1.0/2.0." + else + i = 0 + rss.items.each do |item| + i = i + 1 + puts "\nNews item number #{i}:" + puts "=========================" + puts "TITLE: #{item.title}\n" + puts "SUBJECT: #{item.description}\n" + end + end when "download", "-d" if ( ARGV.length == 2 && File.exist?( $PACKAGE_PATH + ARGV[1] + ".rb" ) ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-16 10:03:24
|
Revision: 184 http://svn.sourceforge.net/abtlinux/?rev=184&view=rev Author: eschabell Date: 2006-11-16 02:03:14 -0800 (Thu, 16 Nov 2006) Log Message: ----------- Adjusted show-journal to not use a system call, that is one gone. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-15 21:43:52 UTC (rev 183) +++ src/trunk/abt.rb 2006-11-16 10:03:14 UTC (rev 184) @@ -193,7 +193,11 @@ when "show-journal" if ( File.exist?( $JOURNAL ) ) - system( 'less ' + $JOURNAL ) + puts "\n\nAbTLinux journal:" + puts "=================" + log = IO.readlines( $JOURNAL ) + log.each{ |line| puts line } + puts "\n\n" else puts "AbTLinux journal is empty at this time." end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-15 21:43:54
|
Revision: 183 http://svn.sourceforge.net/abtlinux/?rev=183&view=rev Author: eschabell Date: 2006-11-15 13:43:52 -0800 (Wed, 15 Nov 2006) Log Message: ----------- Implemented show-journal functionality, now able to view the contents of the journal. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-15 14:40:02 UTC (rev 182) +++ src/trunk/abt.rb 2006-11-15 21:43:52 UTC (rev 183) @@ -192,8 +192,11 @@ show.usage( "queries" ) when "show-journal" - puts "Display system log with AbTLinux activity." - show.usage( "queries" ) + if ( File.exist?( $JOURNAL ) ) + system( 'less ' + $JOURNAL ) + else + puts "AbTLinux journal is empty at this time." + end when "show-iqueue" puts "Display contents of install queue." This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-15 15:01:58
|
Revision: 182 http://svn.sourceforge.net/abtlinux/?rev=182&view=rev Author: eschabell Date: 2006-11-15 06:40:02 -0800 (Wed, 15 Nov 2006) Log Message: ----------- Regenerated api docs. Modified Paths: -------------- src/trunk/doc/classes/AbtDownloadManager.html src/trunk/doc/classes/AbtLogManager.html src/trunk/doc/classes/TestAbtDownloadManager.html src/trunk/doc/created.rid src/trunk/doc/files/AbtDownloadManager_rb.html src/trunk/doc/files/AbtLogManager_rb.html src/trunk/doc/files/TestAbtDownloadManager_rb.html Modified: src/trunk/doc/classes/AbtDownloadManager.html =================================================================== --- src/trunk/doc/classes/AbtDownloadManager.html 2006-11-15 14:17:51 UTC (rev 181) +++ src/trunk/doc/classes/AbtDownloadManager.html 2006-11-15 14:40:02 UTC (rev 182) @@ -175,9 +175,9 @@ <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 88</span> -88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrieveNewsFeed</span> -89: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtDownloadManager.rb, line 91</span> +91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrieveNewsFeed</span> +92: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -209,18 +209,21 @@ 55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrievePackageSource</span>( <span class="ruby-identifier">packageName</span>, <span class="ruby-identifier">destination</span> ) 56: 57: <span class="ruby-identifier">require</span> <span class="ruby-identifier">packageName</span> -58: <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> ) -59: -60: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">destination</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">package</span>.<span class="ruby-identifier">srcUrl</span> ) ) ) -61: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -62: <span class="ruby-keyword kw">end</span> -63: -64: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">system</span>( <span class="ruby-value str">"cd "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">destination</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"; wget "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">package</span>.<span class="ruby-identifier">srcUrl</span> ) ) <span class="ruby-comment cmt"># TODO: rm system call?</span> -65: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> -66: <span class="ruby-keyword kw">end</span> -67: -68: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># download failed.</span> -69: <span class="ruby-keyword kw">end</span> +58: <span class="ruby-identifier">logger</span> = <span class="ruby-constant">AbtLogManager</span>.<span class="ruby-identifier">new</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-identifier">destination</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">package</span>.<span class="ruby-identifier">srcUrl</span> ) ) ) +62: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-value str">"Download not needed, existing source found for "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">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-keyword kw">if</span> ( <span class="ruby-identifier">system</span>( <span class="ruby-value str">"cd "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">destination</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"; wget "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">package</span>.<span class="ruby-identifier">srcUrl</span> ) ) <span class="ruby-comment cmt"># TODO: rm system call?</span> +67: <span class="ruby-identifier">logger</span>.<span class="ruby-identifier">logToJournal</span>( <span class="ruby-value str">"Download completed for "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">packageName</span> ) +68: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +69: <span class="ruby-keyword kw">end</span> +70: +71: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># download failed.</span> +72: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -246,9 +249,9 @@ <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 79</span> -79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrievePackageTree</span>( <span class="ruby-identifier">packageTreeName</span> ) -80: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtDownloadManager.rb, line 82</span> +82: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrievePackageTree</span>( <span class="ruby-identifier">packageTreeName</span> ) +83: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -273,9 +276,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 99</span> - 99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">updatePackage</span> -100: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtDownloadManager.rb, line 102</span> +102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">updatePackage</span> +103: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -297,9 +300,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 108</span> -108: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">updatePackageTree</span> -109: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtDownloadManager.rb, line 111</span> +111: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">updatePackageTree</span> +112: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/AbtLogManager.html =================================================================== --- src/trunk/doc/classes/AbtLogManager.html 2006-11-15 14:17:51 UTC (rev 181) +++ src/trunk/doc/classes/AbtLogManager.html 2006-11-15 14:40:02 UTC (rev 182) @@ -148,9 +148,10 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show source</a> ]</p> <div id="M000059_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 55</span> -55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> -56: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 58</span> +58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> +59: +60: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -177,9 +178,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show source</a> ]</p> <div id="M000062_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 91</span> -91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cachePackage</span>( <span class="ruby-identifier">package</span> ) -92: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 95</span> +95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cachePackage</span>( <span class="ruby-identifier">package</span> ) +96: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -205,9 +206,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show source</a> ]</p> <div id="M000061_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 79</span> -79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageBuild</span>( <span class="ruby-identifier">package</span> ) -80: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 83</span> +83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageBuild</span>( <span class="ruby-identifier">package</span> ) +84: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -233,9 +234,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show source</a> ]</p> <div id="M000060_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 67</span> -67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageInstall</span>( <span class="ruby-identifier">package</span> ) -68: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 71</span> +71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageInstall</span>( <span class="ruby-identifier">package</span> ) +72: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -253,17 +254,25 @@ <b>PARAM</b> <em>String</em> - Message to be added to the log. </p> <p> -<b>RETURN</b> <em>boolean</em> - True if message logged successfully, -otherwise false. +<b>RETURN</b> <em>boolean</em> True if logged, otherwise false. </p> </div> <div class="sourcecode"> <p class="source-link">[ <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show source</a> ]</p> <div id="M000063_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 103</span> -103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logToJournal</span>( <span class="ruby-identifier">message</span> ) -104: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 106</span> +106: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logToJournal</span>( <span class="ruby-identifier">message</span> ) +107: <span class="ruby-identifier">require</span> <span class="ruby-value str">'date'</span> +108: +109: <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">$LOG_PATH</span> ) ) +110: <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>( <span class="ruby-identifier">$LOG_PATH</span> ) <span class="ruby-comment cmt"># initialize logs.</span> +111: <span class="ruby-keyword kw">end</span> +112: +113: <span class="ruby-identifier">log</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">$JOURNAL</span>, <span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">WRONLY</span><span class="ruby-operator">|</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">APPEND</span><span class="ruby-operator">|</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">CREAT</span>, <span class="ruby-value">0644</span>) +114: <span class="ruby-identifier">log</span>.<span class="ruby-identifier">puts</span> <span class="ruby-constant">DateTime</span><span class="ruby-operator">::</span><span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' : '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">message</span> +115: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +116: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -291,9 +300,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show source</a> ]</p> <div id="M000058_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtLogManager.rb, line 42</span> -42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageIntegrity</span>( <span class="ruby-identifier">package</span> ) -43: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 45</span> +45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageIntegrity</span>( <span class="ruby-identifier">package</span> ) +46: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/TestAbtDownloadManager.html =================================================================== --- src/trunk/doc/classes/TestAbtDownloadManager.html 2006-11-15 14:17:51 UTC (rev 181) +++ src/trunk/doc/classes/TestAbtDownloadManager.html 2006-11-15 14:40:02 UTC (rev 182) @@ -191,7 +191,7 @@ <pre> <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 43</span> 43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrievePackageSource</span>() -44: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrievePackageSource</span>( <span class="ruby-value str">"dummy"</span> ), <span class="ruby-value str">"testRetrievePackageSource()"</span> ) +44: <span class="ruby-identifier">assert</span>( <span class="ruby-ivar">@download</span>.<span class="ruby-identifier">retrievePackageSource</span>( <span class="ruby-value str">"fortune"</span>, <span class="ruby-value str">"/tmp"</span> ), <span class="ruby-value str">"testRetrievePackageSource()"</span> ) 45: <span class="ruby-keyword kw">end</span> </pre> </div> Modified: src/trunk/doc/created.rid =================================================================== --- src/trunk/doc/created.rid 2006-11-15 14:17:51 UTC (rev 181) +++ src/trunk/doc/created.rid 2006-11-15 14:40:02 UTC (rev 182) @@ -1 +1 @@ -Wed Nov 15 13:01:16 CET 2006 +Wed Nov 15 15:38:48 CET 2006 Modified: src/trunk/doc/files/AbtDownloadManager_rb.html =================================================================== --- src/trunk/doc/files/AbtDownloadManager_rb.html 2006-11-15 14:17:51 UTC (rev 181) +++ src/trunk/doc/files/AbtDownloadManager_rb.html 2006-11-15 14:40:02 UTC (rev 182) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Wed Nov 15 13:01:06 CET 2006</td> + <td>Wed Nov 15 15:38:44 CET 2006</td> </tr> </table> </td></tr> Modified: src/trunk/doc/files/AbtLogManager_rb.html =================================================================== --- src/trunk/doc/files/AbtLogManager_rb.html 2006-11-15 14:17:51 UTC (rev 181) +++ src/trunk/doc/files/AbtLogManager_rb.html 2006-11-15 14:40:02 UTC (rev 182) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Wed May 31 17:28:30 CEST 2006</td> + <td>Wed Nov 15 15:38:44 CET 2006</td> </tr> </table> </td></tr> @@ -113,6 +113,10 @@ </p> </div> + <div class="sectiontitle">Required Files</div> + <ul> + <li>date</li> + </ul> Modified: src/trunk/doc/files/TestAbtDownloadManager_rb.html =================================================================== --- src/trunk/doc/files/TestAbtDownloadManager_rb.html 2006-11-15 14:17:51 UTC (rev 181) +++ src/trunk/doc/files/TestAbtDownloadManager_rb.html 2006-11-15 14:40:02 UTC (rev 182) @@ -63,7 +63,7 @@ </tr> <tr> <td>Modified:</td> - <td>Wed May 31 17:28:30 CEST 2006</td> + <td>Wed Nov 15 15:38:44 CET 2006</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...> - 2006-11-15 14:17:57
|
Revision: 181 http://svn.sourceforge.net/abtlinux/?rev=181&view=rev Author: eschabell Date: 2006-11-15 06:17:51 -0800 (Wed, 15 Nov 2006) Log Message: ----------- Previous commit included log to journal functionality, working and placed in various implemented sections of abt. This fix completes the log to journal test successfully. Modified Paths: -------------- src/trunk/AbtLogManager.rb Modified: src/trunk/AbtLogManager.rb =================================================================== --- src/trunk/AbtLogManager.rb 2006-11-15 14:13:36 UTC (rev 180) +++ src/trunk/AbtLogManager.rb 2006-11-15 14:17:51 UTC (rev 181) @@ -101,7 +101,7 @@ # # <b>PARAM</b> <i>String</i> - Message to be added to the log. # - # <b>RETURN</b> <i>void</i> + # <b>RETURN</b> <i>boolean</i> True if logged, otherwise false. ## def logToJournal( message ) require 'date' @@ -112,5 +112,6 @@ log = File.new($JOURNAL, File::WRONLY|File::APPEND|File::CREAT, 0644) log.puts DateTime::now.to_s + ' : ' + message + return true end end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-15 14:13:46
|
Revision: 180 http://svn.sourceforge.net/abtlinux/?rev=180&view=rev Author: eschabell Date: 2006-11-15 06:13:36 -0800 (Wed, 15 Nov 2006) Log Message: ----------- Adjusted download manager test to run with real package now that we have one. Modified Paths: -------------- src/trunk/AbtDownloadManager.rb src/trunk/AbtLogManager.rb src/trunk/TestAbtDownloadManager.rb src/trunk/abt.rb Modified: src/trunk/AbtDownloadManager.rb =================================================================== --- src/trunk/AbtDownloadManager.rb 2006-11-15 14:12:50 UTC (rev 179) +++ src/trunk/AbtDownloadManager.rb 2006-11-15 14:13:36 UTC (rev 180) @@ -55,13 +55,16 @@ def retrievePackageSource( packageName, destination ) require packageName + logger = AbtLogManager.new package = eval( packageName.capitalize + '.new' ) if ( File.exist?( destination + "/" + File.basename( package.srcUrl ) ) ) + logger.logToJournal( "Download not needed, existing source found for " + packageName ) return true end if ( system( "cd " + destination + "; wget " + package.srcUrl ) ) # TODO: rm system call? + logger.logToJournal( "Download completed for " + packageName ) return true end Modified: src/trunk/AbtLogManager.rb =================================================================== --- src/trunk/AbtLogManager.rb 2006-11-15 14:12:50 UTC (rev 179) +++ src/trunk/AbtLogManager.rb 2006-11-15 14:13:36 UTC (rev 180) @@ -27,6 +27,9 @@ ## class AbtLogManager + $LOG_PATH = "/var/log/abt" + $JOURNAL = "/var/log/abt/journal.log" + protected ## @@ -53,6 +56,7 @@ # <b>RETURN</b> <i>AbtLogManager</i> - an initialized AbtLogManager object. ## def initialize + end ## @@ -97,10 +101,16 @@ # # <b>PARAM</b> <i>String</i> - Message to be added to the log. # - # <b>RETURN</b> <i>boolean</i> - True if message logged successfully, - # otherwise false. + # <b>RETURN</b> <i>void</i> ## def logToJournal( message ) + require 'date' + + if ( !File.directory?( $LOG_PATH ) ) + FileUtils.mkdir_p( $LOG_PATH ) # initialize logs. + end + + log = File.new($JOURNAL, File::WRONLY|File::APPEND|File::CREAT, 0644) + log.puts DateTime::now.to_s + ' : ' + message end - -end \ No newline at end of file +end Modified: src/trunk/TestAbtDownloadManager.rb =================================================================== --- src/trunk/TestAbtDownloadManager.rb 2006-11-15 14:12:50 UTC (rev 179) +++ src/trunk/TestAbtDownloadManager.rb 2006-11-15 14:13:36 UTC (rev 180) @@ -41,7 +41,7 @@ # Test method for 'AbtDownloadManager.testRetrievePackageSource()' ## def testRetrievePackageSource() - assert( @download.retrievePackageSource( "dummy" ), "testRetrievePackageSource()" ) + assert( @download.retrievePackageSource( "fortune", "/tmp" ), "testRetrievePackageSource()" ) end ## Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-15 14:12:50 UTC (rev 179) +++ src/trunk/abt.rb 2006-11-15 14:13:36 UTC (rev 180) @@ -40,8 +40,9 @@ # Setup for parsing arguments. ## manager = AbtPackageManager.new +logger = AbtLogManager.new options = Hash.new() -show = AbtUsage.new(); +show = AbtUsage.new(); # deal with usage request. if ( ARGV.length == 0 ) @@ -112,6 +113,7 @@ when "show-details" if ( ARGV.length == 2 && File.exist?( $PACKAGE_PATH + ARGV[1] + ".rb" ) ) options['package'] = ARGV[1] + logger.logToJournal( "Starting to show details for " + options['package'] ) require options['package'] # pickup called package class. package = eval( options['package'].capitalize + '.new' ) # evaluates package.new methode dynamically. @@ -135,6 +137,7 @@ puts "License : " + details['license'] puts "Description : " + details['description'] puts "**************************************" + logger.logToJournal( "Completed show details for " + options['package'] ) else show.usage( "queries" ) end @@ -216,17 +219,21 @@ when "download", "-d" if ( ARGV.length == 2 && File.exist?( $PACKAGE_PATH + ARGV[1] + ".rb" ) ) options['package'] = ARGV[1] + logger.logToJournal( "Starting to download " + options['package'] ) if ( !File.directory?( $SOURCES_REPOSITORY ) ) FileUtils.mkdir_p( $SOURCES_REPOSITORY ) # initialize directory. + logger.logToJournal( "Had to initialize directory - " + $SOURCES_REPOSITORY ) end manager = AbtDownloadManager.new if ( manager.retrievePackageSource( options['package'], $SOURCES_REPOSITORY ) ) - puts "\nDownloading of " + options['package'] + " to " + $SOURCES_REPOSITORY + " completed.\n\n" + logger.logToJournal( "Finished download for " + options['package'] ) + puts "\nDownloading of " + options['package'] + " to " + $SOURCES_REPOSITORY + " completed.\n\n" else - puts "\nDOWNLOADING - failed to download source for " + options['package'] + "\n\n" + logger.logToJournal( "FAILURE to download " + options['package'] ) + puts "\nDOWNLOADING - failed to download source for " + options['package'] + "\n\n" end else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-15 14:13:30
|
Revision: 179 http://svn.sourceforge.net/abtlinux/?rev=179&view=rev Author: eschabell Date: 2006-11-15 06:12:50 -0800 (Wed, 15 Nov 2006) Log Message: ----------- Ensure that test suite runs as root too. Modified Paths: -------------- src/trunk/testSuiteAbt.rb Modified: src/trunk/testSuiteAbt.rb =================================================================== --- src/trunk/testSuiteAbt.rb 2006-11-15 12:02:32 UTC (rev 178) +++ src/trunk/testSuiteAbt.rb 2006-11-15 14:12:50 UTC (rev 179) @@ -1,5 +1,11 @@ -#!/usr/bin/ruby -w +#!/usr/bin/ruby -wI./packages +if ( Process.uid != 0 ) + puts "Enter root password:" + system( 'su -c ./testSuiteAbt.rb root' ) + exit +end + require 'test/unit' require 'TestAbtDepEngine' require 'TestAbtDownloadManager' @@ -8,4 +14,4 @@ require 'TestAbtPackageManager' require 'TestAbtQueueManager' require 'TestAbtReportManager' -require 'TestAbtSystemManager' \ No newline at end of file +require 'TestAbtSystemManager' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-15 12:02:39
|
Revision: 178 http://svn.sourceforge.net/abtlinux/?rev=178&view=rev Author: eschabell Date: 2006-11-15 04:02:32 -0800 (Wed, 15 Nov 2006) Log Message: ----------- Updated api docs. Modified Paths: -------------- src/trunk/doc/classes/AbtDepEngine.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/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/TestAbtQueueManager.html src/trunk/doc/classes/TestAbtReportManager.html src/trunk/doc/classes/TestAbtSystemManager.html src/trunk/doc/created.rid src/trunk/doc/files/AbtDownloadManager_rb.html src/trunk/doc/files/AbtPackageManager_rb.html src/trunk/doc/files/AbtUsage_rb.html src/trunk/doc/fr_method_index.html Modified: src/trunk/doc/classes/AbtDepEngine.html =================================================================== --- src/trunk/doc/classes/AbtDepEngine.html 2006-11-15 12:01:34 UTC (rev 177) +++ src/trunk/doc/classes/AbtDepEngine.html 2006-11-15 12:02:32 UTC (rev 178) @@ -118,7 +118,7 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000082">new</a></li> + <li><a href="#M000083">new</a></li> </ul> @@ -129,7 +129,7 @@ <div class="sectiontitle">Public Class methods</div> <div class="method"> <div class="title"> - <a name="M000082"></a><b>new</b>() + <a name="M000083"></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('M000082_source')" id="l_M000082_source">show source</a> ]</p> - <div id="M000082_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000083_source')" id="l_M000083_source">show source</a> ]</p> + <div id="M000083_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtDepEngine.rb, line 41</span> 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> Modified: src/trunk/doc/classes/AbtLogManager.html =================================================================== --- src/trunk/doc/classes/AbtLogManager.html 2006-11-15 12:01:34 UTC (rev 177) +++ src/trunk/doc/classes/AbtLogManager.html 2006-11-15 12:02:32 UTC (rev 178) @@ -117,12 +117,12 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000061">cachePackage</a></li> - <li><a href="#M000060">logPackageBuild</a></li> - <li><a href="#M000059">logPackageInstall</a></li> - <li><a href="#M000057">logPackageIntegrity</a></li> - <li><a href="#M000062">logToJournal</a></li> - <li><a href="#M000058">new</a></li> + <li><a href="#M000062">cachePackage</a></li> + <li><a href="#M000061">logPackageBuild</a></li> + <li><a href="#M000060">logPackageInstall</a></li> + <li><a href="#M000058">logPackageIntegrity</a></li> + <li><a href="#M000063">logToJournal</a></li> + <li><a href="#M000059">new</a></li> </ul> @@ -133,7 +133,7 @@ <div class="sectiontitle">Public Class methods</div> <div class="method"> <div class="title"> - <a name="M000058"></a><b>new</b>() + <a name="M000059"></a><b>new</b>() </div> <div class="description"> <p> @@ -145,8 +145,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show source</a> ]</p> - <div id="M000058_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show source</a> ]</p> + <div id="M000059_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtLogManager.rb, line 55</span> 55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> @@ -158,7 +158,7 @@ <div class="sectiontitle">Public Instance methods</div> <div class="method"> <div class="title"> - <a name="M000061"></a><b>cachePackage</b>( package ) + <a name="M000062"></a><b>cachePackage</b>( package ) </div> <div class="description"> <p> @@ -174,8 +174,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show source</a> ]</p> - <div id="M000061_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show source</a> ]</p> + <div id="M000062_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtLogManager.rb, line 91</span> 91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cachePackage</span>( <span class="ruby-identifier">package</span> ) @@ -186,7 +186,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000060"></a><b>logPackageBuild</b>( package ) + <a name="M000061"></a><b>logPackageBuild</b>( package ) </div> <div class="description"> <p> @@ -202,8 +202,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show source</a> ]</p> - <div id="M000060_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show source</a> ]</p> + <div id="M000061_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtLogManager.rb, line 79</span> 79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageBuild</span>( <span class="ruby-identifier">package</span> ) @@ -214,7 +214,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000059"></a><b>logPackageInstall</b>( package ) + <a name="M000060"></a><b>logPackageInstall</b>( package ) </div> <div class="description"> <p> @@ -230,8 +230,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show source</a> ]</p> - <div id="M000059_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show source</a> ]</p> + <div id="M000060_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtLogManager.rb, line 67</span> 67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageInstall</span>( <span class="ruby-identifier">package</span> ) @@ -242,7 +242,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000062"></a><b>logToJournal</b>( message ) + <a name="M000063"></a><b>logToJournal</b>( message ) </div> <div class="description"> <p> @@ -258,8 +258,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show source</a> ]</p> - <div id="M000062_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show source</a> ]</p> + <div id="M000063_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtLogManager.rb, line 103</span> 103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logToJournal</span>( <span class="ruby-identifier">message</span> ) @@ -271,7 +271,7 @@ <div class="sectiontitle">Protected Instance methods</div> <div class="method"> <div class="title"> - <a name="M000057"></a><b>logPackageIntegrity</b>( package ) + <a name="M000058"></a><b>logPackageIntegrity</b>( package ) </div> <div class="description"> <p> @@ -288,8 +288,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show source</a> ]</p> - <div id="M000057_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show source</a> ]</p> + <div id="M000058_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtLogManager.rb, line 42</span> 42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageIntegrity</span>( <span class="ruby-identifier">package</span> ) Modified: src/trunk/doc/classes/AbtPackageManager.html =================================================================== --- src/trunk/doc/classes/AbtPackageManager.html 2006-11-15 12:01:34 UTC (rev 177) +++ src/trunk/doc/classes/AbtPackageManager.html 2006-11-15 12:02:32 UTC (rev 178) @@ -124,6 +124,7 @@ <li><a href="#M000038">new</a></li> <li><a href="#M000040">reinstallPackage</a></li> <li><a href="#M000041">removePackage</a></li> + <li><a href="#M000044">rootLogin</a></li> </ul> @@ -297,7 +298,45 @@ </div> </div> </div> +<div class="method"> + <div class="title"> + <a name="M000044"></a><b>rootLogin</b>( arguments ) + </div> + <div class="description"> + <p> +Provides for a log through for root access using su. +</p> +<p> +<b>PARAM</b> <em>Array</em> - the arguments passed to abt. +</p> +<p> +<b>RETURN</b> <em>void</em> +</p> + </div> +<div class="sourcecode"> + <p class="source-link">[ <a href="javascript:toggleSource('M000044_source')" id="l_M000044_source">show source</a> ]</p> + <div id="M000044_source" class="dyn-source"> +<pre> + <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 109</span> +109: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rootLogin</span>( <span class="ruby-identifier">arguments</span> ) +110: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">Process</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> ) +111: <span class="ruby-identifier">args</span> = <span class="ruby-value str">""</span> +112: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nEnter root password:"</span> +113: +114: <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword kw">in</span> <span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">length</span> +115: <span class="ruby-identifier">args</span> = <span class="ruby-identifier">args</span> <span class="ruby-operator">+</span> <span class="ruby-value str">" "</span> <span class="ruby-operator">+</span> <span class="ruby-constant">ARGV</span>[<span class="ruby-identifier">i</span>] +116: <span class="ruby-keyword kw">end</span> +117: +118: <span class="ruby-comment cmt"># TODO: remove the ./abt call on deployment.</span> +119: <span class="ruby-identifier">system</span>( <span class="ruby-value str">'su -c "./abt '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">args</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'" root'</span> ) +120: <span class="ruby-identifier">exit</span> +121: <span class="ruby-keyword kw">end</span> +122: <span class="ruby-keyword kw">end</span> +</pre> + </div> </div> +</div> +</div> </div> Modified: src/trunk/doc/classes/AbtQueueManager.html =================================================================== --- src/trunk/doc/classes/AbtQueueManager.html 2006-11-15 12:01:34 UTC (rev 177) +++ src/trunk/doc/classes/AbtQueueManager.html 2006-11-15 12:02:32 UTC (rev 178) @@ -117,7 +117,7 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000081">new</a></li> + <li><a href="#M000082">new</a></li> </ul> @@ -128,7 +128,7 @@ <div class="sectiontitle">Public Class methods</div> <div class="method"> <div class="title"> - <a name="M000081"></a><b>new</b>() + <a name="M000082"></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('M000081_source')" id="l_M000081_source">show source</a> ]</p> - <div id="M000081_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000082_source')" id="l_M000082_source">show source</a> ]</p> + <div id="M000082_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtQueueManager.rb, line 40</span> 40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> Modified: src/trunk/doc/classes/AbtReportManager.html =================================================================== --- src/trunk/doc/classes/AbtReportManager.html 2006-11-15 12:01:34 UTC (rev 177) +++ src/trunk/doc/classes/AbtReportManager.html 2006-11-15 12:02:32 UTC (rev 178) @@ -117,19 +117,19 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000111">generateHTMLPackageListing</a></li> - <li><a href="#M000099">new</a></li> - <li><a href="#M000108">searchPackageDescriptions</a></li> - <li><a href="#M000107">showFileOwner</a></li> - <li><a href="#M000103">showFrozenPackages</a></li> - <li><a href="#M000101">showInstalledPackages</a></li> - <li><a href="#M000106">showJournal</a></li> - <li><a href="#M000104">showPackageDependencies</a></li> - <li><a href="#M000100">showPackageDetails</a></li> - <li><a href="#M000102">showPackageLog</a></li> - <li><a href="#M000109">showQueue</a></li> - <li><a href="#M000105">showUntrackedFiles</a></li> - <li><a href="#M000110">showUpdates</a></li> + <li><a href="#M000112">generateHTMLPackageListing</a></li> + <li><a href="#M000100">new</a></li> + <li><a href="#M000109">searchPackageDescriptions</a></li> + <li><a href="#M000108">showFileOwner</a></li> + <li><a href="#M000104">showFrozenPackages</a></li> + <li><a href="#M000102">showInstalledPackages</a></li> + <li><a href="#M000107">showJournal</a></li> + <li><a href="#M000105">showPackageDependencies</a></li> + <li><a href="#M000101">showPackageDetails</a></li> + <li><a href="#M000103">showPackageLog</a></li> + <li><a href="#M000110">showQueue</a></li> + <li><a href="#M000106">showUntrackedFiles</a></li> + <li><a href="#M000111">showUpdates</a></li> </ul> @@ -140,7 +140,7 @@ <div class="sectiontitle">Public Class methods</div> <div class="method"> <div class="title"> - <a name="M000099"></a><b>new</b>() + <a name="M000100"></a><b>new</b>() </div> <div class="description"> <p> @@ -152,8 +152,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">show source</a> ]</p> - <div id="M000099_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show source</a> ]</p> + <div id="M000100_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 41</span> 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> @@ -165,7 +165,7 @@ <div class="sectiontitle">Public Instance methods</div> <div class="method"> <div class="title"> - <a name="M000111"></a><b>generateHTMLPackageListing</b>() + <a name="M000112"></a><b>generateHTMLPackageListing</b>() </div> <div class="description"> <p> @@ -176,8 +176,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show source</a> ]</p> - <div id="M000111_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">show source</a> ]</p> + <div id="M000112_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 169</span> 169: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generateHTMLPackageListing</span> @@ -188,7 +188,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000108"></a><b>searchPackageDescriptions</b>( searchText ) + <a name="M000109"></a><b>searchPackageDescriptions</b>( searchText ) </div> <div class="description"> <p> @@ -204,8 +204,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show source</a> ]</p> - <div id="M000108_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">show source</a> ]</p> + <div id="M000109_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 137</span> 137: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">searchPackageDescriptions</span>( <span class="ruby-identifier">searchText</span> ) @@ -216,7 +216,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000107"></a><b>showFileOwner</b>( file ) + <a name="M000108"></a><b>showFileOwner</b>( file ) </div> <div class="description"> <p> @@ -230,8 +230,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show source</a> ]</p> - <div id="M000107_source" class="dyn-source"> + <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 AbtReportManager.rb, line 125</span> 125: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showFileOwner</span>( <span class="ruby-identifier">file</span> ) @@ -242,7 +242,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000103"></a><b>showFrozenPackages</b>() + <a name="M000104"></a><b>showFrozenPackages</b>() </div> <div class="description"> <p> @@ -253,8 +253,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p> - <div id="M000103_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show source</a> ]</p> + <div id="M000104_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 84</span> 84: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showFrozenPackages</span> @@ -265,7 +265,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000101"></a><b>showInstalledPackages</b>() + <a name="M000102"></a><b>showInstalledPackages</b>() </div> <div class="description"> <p> @@ -276,8 +276,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">show source</a> ]</p> - <div id="M000101_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show source</a> ]</p> + <div id="M000102_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 60</span> 60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showInstalledPackages</span> @@ -288,7 +288,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000106"></a><b>showJournal</b>() + <a name="M000107"></a><b>showJournal</b>() </div> <div class="description"> <p> @@ -299,8 +299,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show source</a> ]</p> - <div id="M000106_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show source</a> ]</p> + <div id="M000107_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 115</span> 115: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showJournal</span> @@ -311,7 +311,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000104"></a><b>showPackageDependencies</b>( package ) + <a name="M000105"></a><b>showPackageDependencies</b>( package ) </div> <div class="description"> <p> @@ -328,8 +328,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show source</a> ]</p> - <div id="M000104_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p> + <div id="M000105_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 97</span> 97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showPackageDependencies</span>( <span class="ruby-identifier">package</span> ) @@ -340,7 +340,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000100"></a><b>showPackageDetails</b>( package ) + <a name="M000101"></a><b>showPackageDetails</b>( package ) </div> <div class="description"> <p> @@ -355,8 +355,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show source</a> ]</p> - <div id="M000100_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">show source</a> ]</p> + <div id="M000101_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 52</span> 52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showPackageDetails</span>( <span class="ruby-identifier">package</span> ) @@ -367,7 +367,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000102"></a><b>showPackageLog</b>( package, logType ) + <a name="M000103"></a><b>showPackageLog</b>( package, logType ) </div> <div class="description"> <p> @@ -385,8 +385,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show source</a> ]</p> - <div id="M000102_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p> + <div id="M000103_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 73</span> 73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showPackageLog</span>( <span class="ruby-identifier">package</span>, <span class="ruby-identifier">logType</span> ) @@ -400,7 +400,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000109"></a><b>showQueue</b>( queueType ) + <a name="M000110"></a><b>showQueue</b>( queueType ) </div> <div class="description"> <p> @@ -415,8 +415,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">show source</a> ]</p> - <div id="M000109_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">show source</a> ]</p> + <div id="M000110_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 148</span> 148: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showQueue</span>( <span class="ruby-identifier">queueType</span> ) @@ -427,7 +427,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000105"></a><b>showUntrackedFiles</b>() + <a name="M000106"></a><b>showUntrackedFiles</b>() </div> <div class="description"> <p> @@ -439,8 +439,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p> - <div id="M000105_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show source</a> ]</p> + <div id="M000106_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 107</span> 107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showUntrackedFiles</span> @@ -451,7 +451,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000110"></a><b>showUpdates</b>( target ) + <a name="M000111"></a><b>showUpdates</b>( target ) </div> <div class="description"> <p> @@ -468,8 +468,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">show source</a> ]</p> - <div id="M000110_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show source</a> ]</p> + <div id="M000111_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 161</span> 161: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showUpdates</span>( <span class="ruby-identifier">target</span> ) Modified: src/trunk/doc/classes/AbtUsage.html =================================================================== --- src/trunk/doc/classes/AbtUsage.html 2006-11-15 12:01:34 UTC (rev 177) +++ src/trunk/doc/classes/AbtUsage.html 2006-11-15 12:02:32 UTC (rev 178) @@ -136,43 +136,54 @@ <div class="title"> <a name="M000031"></a><b>usage</b>( section ) </div> + <div class="description"> + <p> +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. +</p> +<p> +<b>RETURN</b> <em>void</em> +</p> + </div> <div class="sourcecode"> <p class="source-link">[ <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show source</a> ]</p> <div id="M000031_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtUsage.rb, line 29</span> -29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usage</span>( <span class="ruby-identifier">section</span> ) -30: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Usage: abt.rb [options]\n\n"</span> -31: -32: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">section</span> -33: -34: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"packages"</span> -35: <span class="ruby-identifier">usagePackages</span> -36: -37: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"queries"</span> -38: <span class="ruby-identifier">usageQueries</span> -39: -40: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"generation"</span> -41: <span class="ruby-identifier">usageGeneration</span> -42: -43: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"downloads"</span> -44: <span class="ruby-identifier">usageDownloads</span> -45: -46: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"fix"</span> -47: <span class="ruby-identifier">usageFix</span> -48: -49: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"maintenance"</span> -50: <span class="ruby-identifier">usageMaintenance</span> -51: -52: <span class="ruby-keyword kw">else</span> -53: <span class="ruby-identifier">usagePackages</span> -54: <span class="ruby-identifier">usageQueries</span> -55: <span class="ruby-identifier">usageGeneration</span> -56: <span class="ruby-identifier">usageDownloads</span> -57: <span class="ruby-identifier">usageFix</span> -58: <span class="ruby-identifier">usageMaintenance</span> -59: <span class="ruby-keyword kw">end</span> -60: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtUsage.rb, line 36</span> +36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usage</span>( <span class="ruby-identifier">section</span> ) +37: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Usage: abt.rb [options]\n\n"</span> +38: +39: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">section</span> +40: +41: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"packages"</span> +42: <span class="ruby-identifier">usagePackages</span> +43: +44: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"queries"</span> +45: <span class="ruby-identifier">usageQueries</span> +46: +47: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"generation"</span> +48: <span class="ruby-identifier">usageGeneration</span> +49: +50: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"downloads"</span> +51: <span class="ruby-identifier">usageDownloads</span> +52: +53: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"fix"</span> +54: <span class="ruby-identifier">usageFix</span> +55: +56: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">"maintenance"</span> +57: <span class="ruby-identifier">usageMaintenance</span> +58: +59: <span class="ruby-keyword kw">else</span> +60: <span class="ruby-identifier">usagePackages</span> +61: <span class="ruby-identifier">usageQueries</span> +62: <span class="ruby-identifier">usageGeneration</span> +63: <span class="ruby-identifier">usageDownloads</span> +64: <span class="ruby-identifier">usageFix</span> +65: <span class="ruby-identifier">usageMaintenance</span> +66: <span class="ruby-keyword kw">end</span> +67: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -181,17 +192,25 @@ <div class="title"> <a name="M000035"></a><b>usageDownloads</b>() </div> + <div class="description"> + <p> +The usage information for the download commands. +</p> +<p> +<b>RETURN</b> <em>void</em> +</p> + </div> <div class="sourcecode"> <p class="source-link">[ <a href="javascript:toggleSource('M000035_source')" id="l_M000035_source">show source</a> ]</p> <div id="M000035_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtUsage.rb, line 94</span> -94: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usageDownloads</span> -95: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\ndownloads:"</span> -96: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -d, download [package]\t\tRetrieve given package sources."</span> -97: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -u, update [package]|[tree]\tUpdate given package or tree from AbTLinux repository."</span> -98: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -n, news\t\t\t\tDisplays newsfeed from AbTLinux website.\n"</span> -99: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtUsage.rb, line 121</span> +121: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usageDownloads</span> +122: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\ndownloads:"</span> +123: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -d, download [package]\t\tRetrieve given package sources."</span> +124: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -u, update [package]|[tree]\tUpdate given package or tree from AbTLinux repository."</span> +125: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -n, news\t\t\t\tDisplays newsfeed from AbTLinux website.\n"</span> +126: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -200,21 +219,29 @@ <div class="title"> <a name="M000036"></a><b>usageFix</b>() </div> + <div class="description"> + <p> +The usage information for the fix commands. +</p> +<p> +<b>RETURN</b> <em>void</em> +</p> + </div> <div class="sourcecode"> <p class="source-link">[ <a href="javascript:toggleSource('M000036_source')" id="l_M000036_source">show source</a> ]</p> <div id="M000036_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtUsage.rb, line 101</span> -101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usageFix</span> -102: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nfix:"</span> -103: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" purge-src\t\t\t\tRemove source caches for packages no longer installed."</span> -104: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" purge-logs\t\t\t\tRemove log files for packages no longer installed."</span> -105: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" verify-files [package]\t\tInstalled files are verified for given package."</span> -106: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" verify-symlinks [package]\t\tSymlinks verified for given package."</span> -107: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" verify-deps [package]\t\tDependency tree is verified for given package."</span> -108: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" verify-integrity [package]\t\tVerify integrity of installed files for given package."</span> -109: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" fix [package]\t\tGiven package is verified and fixed if needed.\n"</span> -110: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtUsage.rb, line 133</span> +133: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usageFix</span> +134: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nfix:"</span> +135: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" purge-src\t\t\t\tRemove source caches for packages no longer installed."</span> +136: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" purge-logs\t\t\t\tRemove log files for packages no longer installed."</span> +137: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" verify-files [package]\t\tInstalled files are verified for given package."</span> +138: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" verify-symlinks [package]\t\tSymlinks verified for given package."</span> +139: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" verify-deps [package]\t\tDependency tree is verified for given package."</span> +140: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" verify-integrity [package]\t\tVerify integrity of installed files for given package."</span> +141: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" fix [package]\t\tGiven package is verified and fixed if needed.\n"</span> +142: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -223,17 +250,25 @@ <div class="title"> <a name="M000034"></a><b>usageGeneration</b>() </div> + <div class="description"> + <p> +The usage information for the generation commands. +</p> +<p> +<b>RETURN</b> <em>void</em> +</p> + </div> <div class="sourcecode"> <p class="source-link">[ <a href="javascript:toggleSource('M000034_source')" id="l_M000034_source">show source</a> ]</p> <div id="M000034_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtUsage.rb, line 87</span> -87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usageGeneration</span> -88: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\ngeneration:"</span> -89: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-updates\t\tShow a package listing with available update versions."</span> -90: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" html\t\t\tGenerate HTML page from installed packages:"</span> -91: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" \t\t\t\t(package name with hyperlink to package website and version installed)\n"</span> -92: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtUsage.rb, line 109</span> +109: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usageGeneration</span> +110: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\ngeneration:"</span> +111: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-updates\t\tShow a package listing with available update versions."</span> +112: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" html\t\t\tGenerate HTML page from installed packages:"</span> +113: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" \t\t\t\t(package name with hyperlink to package website and version installed)\n"</span> +114: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -242,19 +277,27 @@ <div class="title"> <a name="M000037"></a><b>usageMaintenance</b>() </div> + <div class="description"> + <p> +The usage information for the maintenance commands. +</p> +<p> +<b>RETURN</b> <em>void</em> +</p> + </div> <div class="sourcecode"> <p class="source-link">[ <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">show source</a> ]</p> <div id="M000037_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtUsage.rb, line 112</span> -112: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usageMaintenance</span> -113: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nmaintenance:"</span> -114: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" build-location [host]\t\tSets global location (default: localhost) for retrieving cached package builds."</span> -115: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" package-repo [add|remove|list] [URI]"</span> -116: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" add - add package repository to list."</span> -117: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" remove - remove a package repository from list."</span> -118: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" list - display current repository list.\n"</span> -119: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtUsage.rb, line 149</span> +149: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usageMaintenance</span> +150: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nmaintenance:"</span> +151: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" build-location [host]\t\tSets global location (default: localhost) for retrieving cached package builds."</span> +152: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" package-repo [add|remove|list] [URI]"</span> +153: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" add - add package repository to list."</span> +154: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" remove - remove a package repository from list."</span> +155: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" list - display current repository list.\n"</span> +156: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -263,19 +306,27 @@ <div class="title"> <a name="M000032"></a><b>usagePackages</b>() </div> + <div class="description"> + <p> +The usage information for the packages commands. +</p> +<p> +<b>RETURN</b> <em>void</em> +</p> + </div> <div class="sourcecode"> <p class="source-link">[ <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show source</a> ]</p> <div id="M000032_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtUsage.rb, line 62</span> -62: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usagePackages</span> -63: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\npackages:"</span> -64: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -i, install [package]\t\tInstall given package."</span> -65: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -ri, reinstall [package]\t\tReinstall given package."</span> -66: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -r, remove [package]\t\tRemove given package."</span> -67: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -dg, downgrade [version] [package]\tDowngrade given package to given version."</span> -68: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -f, freeze [package]\t\tHolds given package at current version, prevents upgrades.\n"</span> -69: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtUsage.rb, line 74</span> +74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usagePackages</span> +75: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\npackages:"</span> +76: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -i, install [package]\t\tInstall given package."</span> +77: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -ri, reinstall [package]\t\tReinstall given package."</span> +78: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -r, remove [package]\t\tRemove given package."</span> +79: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -dg, downgrade [version] [package]\tDowngrade given package to given version."</span> +80: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -f, freeze [package]\t\tHolds given package at current version, prevents upgrades.\n"</span> +81: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -284,26 +335,34 @@ <div class="title"> <a name="M000033"></a><b>usageQueries</b>() </div> + <div class="description"> + <p> +The usage information for the query commands. +</p> +<p> +<b>RETURN</b> <em>void</em> +</p> + </div> <div class="sourcecode"> <p class="source-link">[ <a href="javascript:toggleSource('M000033_source')" id="l_M000033_source">show source</a> ]</p> <div id="M000033_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtUsage.rb, line 71</span> -71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usageQueries</span> -72: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nqueries:"</span> -73: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -s, search [string | regexp ]\tSearch package descriptions for given input."</span> -74: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-details [package]\t\tShow give package details."</span> -75: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-build [package]\t\tShow build log of given package."</span> -76: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-depends [package]\t\tShow the dependency tree of given package."</span> -77: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-files [package]\t\tShow all installed files from given package."</span> -78: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-owner [file]\t\tShow the package owning given file."</span> -79: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-installed\t\t\tShow list of all installed packages."</span> -80: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-frozen\t\t\t\tShow list of all frozen packages."</span> -81: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-untracked\t\t\tShow all files on system not tracked by AbTLinux."</span> -82: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-journal\t\t\t\tShow the system journal."</span> -83: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-iqueue\t\t\t\tShow the contents of the install queue."</span> -84: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-patches\t\t\t\tShow the current available patches for installed package tree.\n"</span> -85: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtUsage.rb, line 88</span> + 88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">usageQueries</span> + 89: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nqueries:"</span> + 90: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" -s, search [string | regexp ]\tSearch package descriptions for given input."</span> + 91: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-details [package]\t\tShow give package details."</span> + 92: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-build [package]\t\tShow build log of given package."</span> + 93: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-depends [package]\t\tShow the dependency tree of given package."</span> + 94: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-files [package]\t\tShow all installed files from given package."</span> + 95: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-owner [file]\t\tShow the package owning given file."</span> + 96: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-installed\t\t\tShow list of all installed packages."</span> + 97: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-frozen\t\t\t\tShow list of all frozen packages."</span> + 98: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-untracked\t\t\tShow all files on system not tracked by AbTLinux."</span> + 99: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-journal\t\t\t\tShow the system journal."</span> +100: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-iqueue\t\t\t\tShow the contents of the install queue."</span> +101: <span class="ruby-identifier">puts</span> <span class="ruby-value str">" show-patches\t\t\t\tShow the current available patches for installed package tree.\n"</span> +102: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/TestAbtDepEngine.html =================================================================== --- src/trunk/doc/classes/TestAbtDepEngine.html 2006-11-15 12:01:34 UTC (rev 177) +++ src/trunk/doc/classes/TestAbtDepEngine.html 2006-11-15 12:02:32 UTC (rev 178) @@ -117,8 +117,8 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000091">setup</a></li> - <li><a href="#M000092">testDepEngine</a></li> + <li><a href="#M000092">setup</a></li> + <li><a href="#M000093">testDepEngine</a></li> </ul> @@ -129,7 +129,7 @@ <div class="sectiontitle">Public Instance methods</div> <div class="method"> <div class="title"> - <a name="M000091"></a><b>setup</b>() + <a name="M000092"></a><b>setup</b>() </div> <div class="description"> <p> @@ -137,8 +137,8 @@ </p> </div> <div class="sourcecode"> - <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"> + <p class="source-link">[ <a href="javascript:toggleSource('M000092_source')" id="l_M000092_source">show source</a> ]</p> + <div id="M000092_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File TestAbtDepEngine.rb, line 36</span> 36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> @@ -150,7 +150,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000092"></a><b>testDepEngine</b>() + <a name="M000093"></a><b>testDepEngine</b>() </div> <div class="description"> <p> @@ -158,8 +158,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000092_source')" id="l_M000092_source">show source</a> ]</p> - <div id="M000092_source" class="dyn-source"> + <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 TestAbtDepEngine.rb, line 43</span> 43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testDepEngine</span> Modified: src/trunk/doc/classes/TestAbtDownloadManager.html =================================================================== --- src/trunk/doc/classes/TestAbtDownloadManager.html 2006-11-15 12:01:34 UTC (rev 177) +++ src/trunk/doc/classes/TestAbtDownloadManager.html 2006-11-15 12:02:32 UTC (rev 178) @@ -118,12 +118,12 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000075">setup</a></li> - <li><a href="#M000078">testRetrieveNewsFeed</a></li> - <li><a href="#M000076">testRetrievePackageSource</a></li> - <li><a href="#M000077">testRetrievePackageTree</a></li> - <li><a href="#M000079">testUpdatePackage</a></li> - <li><a href="#M000080">testUpdatePackageTree</a></li> + <li><a href="#M000076">setup</a></li> + <li><a href="#M000079">testRetrieveNewsFeed</a></li> + <li><a href="#M000077">testRetrievePackageSource</a></li> + <li><a href="#M000078">testRetrievePackageTree</a></li> + <li><a href="#M000080">testUpdatePackage</a></li> + <li><a href="#M000081">testUpdatePackageTree</a></li> </ul> @@ -134,7 +134,7 @@ <div class="sectiontitle">Public Instance methods</div> <div class="method"> <div class="title"> - <a name="M000075"></a><b>setup</b>() + <a name="M000076"></a><b>setup</b>() </div> <div class="description"> <p> @@ -143,8 +143,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000075_source')" id="l_M000075_source">show source</a> ]</p> - <div id="M000075_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000076_source')" id="l_M000076_source">show source</a> ]</p> + <div id="M000076_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 36</span> 36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> @@ -156,7 +156,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000078"></a><b>testRetrieveNewsFeed</b>() + <a name="M000079"></a><b>testRetrieveNewsFeed</b>() </div> <div class="description"> <p> @@ -164,8 +164,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000078_source')" id="l_M000078_source">show source</a> ]</p> - <div id="M000078_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000079_source')" id="l_M000079_source">show source</a> ]</p> + <div id="M000079_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 57</span> 57: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrieveNewsFeed</span>() @@ -177,7 +177,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000076"></a><b>testRetrievePackageSource</b>() + <a name="M000077"></a><b>testRetrievePackageSource</b>() </div> <div class="description"> <p> @@ -186,8 +186,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000076_source')" id="l_M000076_source">show source</a> ]</p> - <div id="M000076_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000077_source')" id="l_M000077_source">show source</a> ]</p> + <div id="M000077_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 43</span> 43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrievePackageSource</span>() @@ -199,7 +199,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000077"></a><b>testRetrievePackageTree</b>() + <a name="M000078"></a><b>testRetrievePackageTree</b>() </div> <div class="description"> <p> @@ -207,8 +207,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000077_source')" id="l_M000077_source">show source</a> ]</p> - <div id="M000077_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000078_source')" id="l_M000078_source">show source</a> ]</p> + <div id="M000078_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 50</span> 50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testRetrievePackageTree</span>() @@ -220,7 +220,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000079"></a><b>testUpdatePackage</b>() + <a name="M000080"></a><b>testUpdatePackage</b>() </div> <div class="description"> <p> @@ -228,8 +228,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000079_source')" id="l_M000079_source">show source</a> ]</p> - <div id="M000079_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000080_source')" id="l_M000080_source">show source</a> ]</p> + <div id="M000080_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 64</span> 64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testUpdatePackage</span>() @@ -241,7 +241,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000080"></a><b>testUpdatePackageTree</b>() + <a name="M000081"></a><b>testUpdatePackageTree</b>() </div> <div class="description"> <p> @@ -249,8 +249,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000080_source')" id="l_M000080_source">show source</a> ]</p> - <div id="M000080_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000081_source')" id="l_M000081_source">show source</a> ]</p> + <div id="M000081_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File TestAbtDownloadManager.rb, line 71</span> 71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">testUpdatePackageTree</span>() Modified: src/trunk/doc/classes/TestAbtLogManager.html =================================================================== --- src/trunk/doc/classes/TestAbtLogManager.html 2006-11-15 12:01:34 UTC (rev 177) +++ src/trunk/doc/classes/TestAbtLogManager.html 2006-11-15 12:02:32 UTC (rev 178) @@ -117,12 +117,12 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000093">setup</a></li> - <li><a href="#M000097">testCachePackage</a></li> - <li><a href="#M000096">testLogPackageBuild</a></li> - <li><a href="#M000095">testLogPackageInstall</a></li> - <li><a href="#M000094">testLogPackageIntegrity</a></li> - <li><a href="#M000098">testLogToJournal</a></li> + <li><a href="#M000094">setup</a></li> + <li><a href="#M000098">testCachePackage</a></li> + <li><a href="#M000097">testLogPackageBuild</a></li> + <li><a href="#M000096">testLogPackageInstall</a></li> + <li><a href="#M000095">testLogPackageIntegrity</a></li> + <li><a href... [truncated message content] |
From: <esc...@us...> - 2006-11-15 12:01:36
|
Revision: 177 http://svn.sourceforge.net/abtlinux/?rev=177&view=rev Author: eschabell Date: 2006-11-15 04:01:34 -0800 (Wed, 15 Nov 2006) Log Message: ----------- Methodized the root login. Modified Paths: -------------- src/trunk/AbtPackageManager.rb src/trunk/abt.rb Modified: src/trunk/AbtPackageManager.rb =================================================================== --- src/trunk/AbtPackageManager.rb 2006-11-15 11:50:23 UTC (rev 176) +++ src/trunk/AbtPackageManager.rb 2006-11-15 12:01:34 UTC (rev 177) @@ -98,5 +98,26 @@ ## def freezePackage( package ) end - -end \ No newline at end of file + + ## + # Provides for a log through for root access using su. + # + # <b>PARAM</b> <i>Array</i> - the arguments passed to abt. + # + # <b>RETURN</b> <i>void</i> + ## + def rootLogin( arguments ) + if ( Process.uid != 0 ) + args = "" + puts "\nEnter root password:" + + for i in 0...ARGV.length + args = args + " " + ARGV[i] + end + + # TODO: remove the ./abt call on deployment. + system( 'su -c "./abt ' + args + '" root' ) + exit + end + end +end Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-15 11:50:23 UTC (rev 176) +++ src/trunk/abt.rb 2006-11-15 12:01:34 UTC (rev 177) @@ -37,31 +37,21 @@ $SOURCES_REPOSITORY = "/var/spool/abt/sources" ## -# Parsing our options. +# Setup for parsing arguments. ## +manager = AbtPackageManager.new options = Hash.new() show = AbtUsage.new(); +# deal with usage request. if ( ARGV.length == 0 ) show.usage( "all" ) end -# from here on out, need root access. -if ( Process.uid != 0 ) - args = "" - - puts "\nEnter root password:" - - for i in 0...ARGV.length - args = args + " " + ARGV[i] - end +# login as root for the rest. +manager.rootLogin( ARGV ) - # TODO: remove the ./abt call on deployment. - system( 'su -c "./abt ' + args + '" root' ) - exit -end - - +# parse arguments. case ARGV[0] when "install", "-i" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-15 11:50:23
|
Revision: 176 http://svn.sourceforge.net/abtlinux/?rev=176&view=rev Author: eschabell Date: 2006-11-15 03:50:23 -0800 (Wed, 15 Nov 2006) Log Message: ----------- Added docs to AbtUsage class. Modified Paths: -------------- src/trunk/AbtUsage.rb Modified: src/trunk/AbtUsage.rb =================================================================== --- src/trunk/AbtUsage.rb 2006-11-15 11:06:07 UTC (rev 175) +++ src/trunk/AbtUsage.rb 2006-11-15 11:50:23 UTC (rev 176) @@ -26,6 +26,13 @@ ## class AbtUsage + ## + # The main usage method, displays either a given section or all sections. + # + # <b>PARAM</b> <i>String</i> - the name of the help section to be shown. + # + # <b>RETURN</b> <i>void</i> + ## def usage( section ) puts "Usage: abt.rb [options]\n\n" @@ -59,8 +66,13 @@ end end + ## + # The usage information for the packages commands. + # + # <b>RETURN</b> <i>void</i> + ## def usagePackages - puts "\npackages:" + puts "\npackages:" puts " -i, install [package]\t\tInstall given package." puts " -ri, reinstall [package]\t\tReinstall given package." puts " -r, remove [package]\t\tRemove given package." @@ -68,6 +80,11 @@ puts " -f, freeze [package]\t\tHolds given package at current version, prevents upgrades.\n" end + ## + # The usage information for the query commands. + # + # <b>RETURN</b> <i>void</i> + ## def usageQueries puts "\nqueries:" puts " -s, search [string | regexp ]\tSearch package descriptions for given input." @@ -76,7 +93,7 @@ puts " show-depends [package]\t\tShow the dependency tree of given package." puts " show-files [package]\t\tShow all installed files from given package." puts " show-owner [file]\t\tShow the package owning given file." - puts " show-installed\t\t\tShow list of all installed packages." + puts " show-installed\t\t\tShow list of all installed packages." puts " show-frozen\t\t\t\tShow list of all frozen packages." puts " show-untracked\t\t\tShow all files on system not tracked by AbTLinux." puts " show-journal\t\t\t\tShow the system journal." @@ -84,37 +101,57 @@ puts " show-patches\t\t\t\tShow the current available patches for installed package tree.\n" end + ## + # The usage information for the generation commands. + # + # <b>RETURN</b> <i>void</i> + ## def usageGeneration puts "\ngeneration:" puts " show-updates\t\tShow a package listing with available update versions." puts " html\t\t\tGenerate HTML page from installed packages:" - puts " \t\t\t\t(package name with hyperlink to package website and version installed)\n" + puts " \t\t\t\t(package name with hyperlink to package website and version installed)\n" end + ## + # The usage information for the download commands. + # + # <b>RETURN</b> <i>void</i> + ## def usageDownloads - puts "\ndownloads:" - puts " -d, download [package]\t\tRetrieve given package sources." - puts " -u, update [package]|[tree]\tUpdate given package or tree from AbTLinux repository." - puts " -n, news\t\t\t\tDisplays newsfeed from AbTLinux website.\n" + puts "\ndownloads:" + puts " -d, download [package]\t\tRetrieve given package sources." + puts " -u, update [package]|[tree]\tUpdate given package or tree from AbTLinux repository." + puts " -n, news\t\t\t\tDisplays newsfeed from AbTLinux website.\n" end + ## + # The usage information for the fix commands. + # + # <b>RETURN</b> <i>void</i> + ## def usageFix - puts "\nfix:" - puts " purge-src\t\t\t\tRemove source caches for packages no longer installed." - puts " purge-logs\t\t\t\tRemove log files for packages no longer installed." - puts " verify-files [package]\t\tInstalled files are verified for given package." - puts " verify-symlinks [package]\t\tSymlinks verified for given package." - puts " verify-deps [package]\t\tDependency tree is verified for given package." - puts " verify-integrity [package]\t\tVerify integrity of installed files for given package." - puts " fix [package]\t\tGiven package is verified and fixed if needed.\n" + puts "\nfix:" + puts " purge-src\t\t\t\tRemove source caches for packages no longer installed." + puts " purge-logs\t\t\t\tRemove log files for packages no longer installed." + puts " verify-files [package]\t\tInstalled files are verified for given package." + puts " verify-symlinks [package]\t\tSymlinks verified for given package." + puts " verify-deps [package]\t\tDependency tree is verified for given package." + puts " verify-integrity [package]\t\tVerify integrity of installed files for given package." + puts " fix [package]\t\tGiven package is verified and fixed if needed.\n" end + ## + # The usage information for the maintenance commands. + # + # <b>RETURN</b> <i>void</i> + ## def usageMaintenance - puts "\nmaintenance:" - puts " build-location [host]\t\tSets global location (default: localhost) for retrieving cached package builds." - puts " package-repo [add|remove|list] [URI]" - puts " add - add package repository to list." - puts " remove - remove a package repository from list." - puts " list - display current repository list.\n" + puts "\nmaintenance:" + puts " build-location [host]\t\tSets global location (default: localhost) for retrieving cached package builds." + puts " package-repo [add|remove|list] [URI]" + puts " add - add package repository to list." + puts " remove - remove a package repository from list." + puts " list - display current repository list.\n" end end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-15 11:06:08
|
Revision: 175 http://svn.sourceforge.net/abtlinux/?rev=175&view=rev Author: eschabell Date: 2006-11-15 03:06:07 -0800 (Wed, 15 Nov 2006) Log Message: ----------- Now jumping thru with root login automatically before running abt. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-14 21:32:48 UTC (rev 174) +++ src/trunk/abt.rb 2006-11-15 11:06:07 UTC (rev 175) @@ -46,12 +46,22 @@ show.usage( "all" ) end -# TODO: provide root login here? +# from here on out, need root access. if ( Process.uid != 0 ) - puts "\nYou need to run abt as root.\n\n" + args = "" + + puts "\nEnter root password:" + + for i in 0...ARGV.length + args = args + " " + ARGV[i] + end + + # TODO: remove the ./abt call on deployment. + system( 'su -c "./abt ' + args + '" root' ) exit end + case ARGV[0] when "install", "-i" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-14 21:32:50
|
Revision: 174 http://svn.sourceforge.net/abtlinux/?rev=174&view=rev Author: eschabell Date: 2006-11-14 13:32:48 -0800 (Tue, 14 Nov 2006) Log Message: ----------- Added in warning flag and blocking non-root users from all functionality except usage. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-14 21:30:54 UTC (rev 173) +++ src/trunk/abt.rb 2006-11-14 21:32:48 UTC (rev 174) @@ -1,4 +1,4 @@ -#!/usr/bin/ruby -I./packages +#!/usr/bin/ruby -wI./packages ## # abt.rb @@ -32,6 +32,7 @@ require 'fileutils' require 'optparse' + $PACKAGE_PATH = "./packages/" $SOURCES_REPOSITORY = "/var/spool/abt/sources" @@ -45,6 +46,12 @@ show.usage( "all" ) end +# TODO: provide root login here? +if ( Process.uid != 0 ) + puts "\nYou need to run abt as root.\n\n" + exit +end + case ARGV[0] when "install", "-i" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-14 21:30:53
|
Revision: 173 http://svn.sourceforge.net/abtlinux/?rev=173&view=rev Author: eschabell Date: 2006-11-14 13:30:54 -0800 (Tue, 14 Nov 2006) Log Message: ----------- Want to run the warnings in all my files. Modified Paths: -------------- src/trunk/AbtDownloadManager.rb Modified: src/trunk/AbtDownloadManager.rb =================================================================== --- src/trunk/AbtDownloadManager.rb 2006-11-14 17:59:16 UTC (rev 172) +++ src/trunk/AbtDownloadManager.rb 2006-11-14 21:30:54 UTC (rev 173) @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/ruby -w ## # AbtDownloadManager.rb This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-14 17:59:23
|
Revision: 172 http://svn.sourceforge.net/abtlinux/?rev=172&view=rev Author: eschabell Date: 2006-11-14 09:59:16 -0800 (Tue, 14 Nov 2006) Log Message: ----------- Added usage to doc generation and reran 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/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.png 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_2.png src/trunk/doc/dot/f_3.png src/trunk/doc/dot/f_4.png src/trunk/doc/dot/f_5.png src/trunk/doc/dot/f_6.png src/trunk/doc/dot/f_7.png src/trunk/doc/dot/f_8.dot src/trunk/doc/dot/f_8.png src/trunk/doc/dot/f_9.dot src/trunk/doc/dot/f_9.png src/trunk/doc/files/AbtDepEngine_rb.html src/trunk/doc/files/AbtDownloadManager_rb.html src/trunk/doc/files/AbtLogManager_rb.html src/trunk/doc/files/AbtPackageManager_rb.html src/trunk/doc/files/AbtPackage_rb.html src/trunk/doc/files/AbtQueueManager_rb.html src/trunk/doc/files/AbtReportManager_rb.html src/trunk/doc/files/AbtSystemManager_rb.html src/trunk/doc/files/TestAbtDepEngine_rb.html src/trunk/doc/files/TestAbtDownloadManager_rb.html src/trunk/doc/files/TestAbtLogManager_rb.html src/trunk/doc/files/TestAbtPackageManager_rb.html src/trunk/doc/files/TestAbtPackage_rb.html src/trunk/doc/files/TestAbtQueueManager_rb.html src/trunk/doc/files/TestAbtReportManager_rb.html src/trunk/doc/files/TestAbtSystemManager_rb.html src/trunk/doc/fr_class_index.html src/trunk/doc/fr_file_index.html src/trunk/doc/fr_method_index.html src/trunk/docGen.sh Added Paths: ----------- src/trunk/doc/classes/AbtUsage.html src/trunk/doc/dot/f_16.dot src/trunk/doc/dot/f_16.png src/trunk/doc/files/AbtUsage_rb.html Modified: src/trunk/doc/classes/AbtDepEngine.html =================================================================== --- src/trunk/doc/classes/AbtDepEngine.html 2006-11-14 17:56:07 UTC (rev 171) +++ src/trunk/doc/classes/AbtDepEngine.html 2006-11-14 17:59:16 UTC (rev 172) @@ -76,7 +76,7 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="29,52,127,100" href="AbtDepEngine.html" alt="AbtDepEngine"> + <area shape="RECT" coords="27,50,128,98" href="AbtDepEngine.html" alt="AbtDepEngine"> </map> <img src="../dot/f_0.png" usemap="#map" border=0 alt="TopLevel"> </td></tr></table> @@ -118,7 +118,7 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000074">new</a></li> + <li><a href="#M000082">new</a></li> </ul> @@ -129,7 +129,7 @@ <div class="sectiontitle">Public Class methods</div> <div class="method"> <div class="title"> - <a name="M000074"></a><b>new</b>() + <a name="M000082"></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('M000074_source')" id="l_M000074_source">show source</a> ]</p> - <div id="M000074_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000082_source')" id="l_M000082_source">show source</a> ]</p> + <div id="M000082_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File 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 2006-11-14 17:56:07 UTC (rev 171) +++ src/trunk/doc/classes/AbtDownloadManager.html 2006-11-14 17:59:16 UTC (rev 172) @@ -76,7 +76,7 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="29,52,162,100" href="AbtDownloadManager.html" alt="AbtDownloadManager"> + <area shape="RECT" coords="27,50,163,98" href="AbtDownloadManager.html" alt="AbtDownloadManager"> </map> <img src="../dot/f_1.png" usemap="#map" border=0 alt="TopLevel"> </td></tr></table> @@ -175,24 +175,26 @@ <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 73</span> -73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrieveNewsFeed</span> -74: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtDownloadManager.rb, line 88</span> +88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrieveNewsFeed</span> +89: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> <div class="method"> <div class="title"> - <a name="M000012"></a><b>retrievePackageSource</b>( packageName ) + <a name="M000012"></a><b>retrievePackageSource</b>( packageName, destination ) </div> <div class="description"> <p> -Downloads a given package source. +Downloads a given package source. If the file already exists, returns true +as if download completed. </p> <p> <b>PARAM</b> <em>String</em> - the name of the package for which the source -is to be downloaded. +is to be downloaded. <b>PARAM</b> <em>String</em> - the path to the +download destination. </p> <p> <b>RETURN</b> <em>boolean</em> - True if the package source has been @@ -203,9 +205,22 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000012_source')" id="l_M000012_source">show source</a> ]</p> <div id="M000012_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtDownloadManager.rb, line 53</span> -53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrievePackageSource</span>( <span class="ruby-identifier">packageName</span> ) -54: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtDownloadManager.rb, line 55</span> +55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrievePackageSource</span>( <span class="ruby-identifier">packageName</span>, <span class="ruby-identifier">destination</span> ) +56: +57: <span class="ruby-identifier">require</span> <span class="ruby-identifier">packageName</span> +58: <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> ) +59: +60: <span class="ruby-keyword kw">if</span> ( <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>( <span class="ruby-identifier">destination</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">package</span>.<span class="ruby-identifier">srcUrl</span> ) ) ) +61: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +62: <span class="ruby-keyword kw">end</span> +63: +64: <span class="ruby-keyword kw">if</span> ( <span class="ruby-identifier">system</span>( <span class="ruby-value str">"cd "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">destination</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"; wget "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">package</span>.<span class="ruby-identifier">srcUrl</span> ) ) <span class="ruby-comment cmt"># TODO: rm system call?</span> +65: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> +66: <span class="ruby-keyword kw">end</span> +67: +68: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-comment cmt"># download failed.</span> +69: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -231,9 +246,9 @@ <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 64</span> -64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrievePackageTree</span>( <span class="ruby-identifier">packageTreeName</span> ) -65: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtDownloadManager.rb, line 79</span> +79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">retrievePackageTree</span>( <span class="ruby-identifier">packageTreeName</span> ) +80: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -258,9 +273,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 84</span> -84: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">updatePackage</span> -85: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtDownloadManager.rb, line 99</span> + 99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">updatePackage</span> +100: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -282,9 +297,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 93</span> -93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">updatePackageTree</span> -94: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtDownloadManager.rb, line 108</span> +108: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">updatePackageTree</span> +109: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/AbtLogManager.html =================================================================== --- src/trunk/doc/classes/AbtLogManager.html 2006-11-14 17:56:07 UTC (rev 171) +++ src/trunk/doc/classes/AbtLogManager.html 2006-11-14 17:59:16 UTC (rev 172) @@ -76,7 +76,7 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="29,52,133,100" href="AbtLogManager.html" alt="AbtLogManager"> + <area shape="RECT" coords="27,50,133,98" href="AbtLogManager.html" alt="AbtLogManager"> </map> <img src="../dot/f_2.png" usemap="#map" border=0 alt="TopLevel"> </td></tr></table> @@ -117,11 +117,12 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000053">cachePackage</a></li> - <li><a href="#M000052">logPackageBuild</a></li> - <li><a href="#M000051">logPackageInstall</a></li> - <li><a href="#M000054">logToJournal</a></li> - <li><a href="#M000050">new</a></li> + <li><a href="#M000061">cachePackage</a></li> + <li><a href="#M000060">logPackageBuild</a></li> + <li><a href="#M000059">logPackageInstall</a></li> + <li><a href="#M000057">logPackageIntegrity</a></li> + <li><a href="#M000062">logToJournal</a></li> + <li><a href="#M000058">new</a></li> </ul> @@ -132,7 +133,7 @@ <div class="sectiontitle">Public Class methods</div> <div class="method"> <div class="title"> - <a name="M000050"></a><b>new</b>() + <a name="M000058"></a><b>new</b>() </div> <div class="description"> <p> @@ -144,8 +145,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show source</a> ]</p> - <div id="M000050_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show source</a> ]</p> + <div id="M000058_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtLogManager.rb, line 55</span> 55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> @@ -157,7 +158,7 @@ <div class="sectiontitle">Public Instance methods</div> <div class="method"> <div class="title"> - <a name="M000053"></a><b>cachePackage</b>( package ) + <a name="M000061"></a><b>cachePackage</b>( package ) </div> <div class="description"> <p> @@ -173,8 +174,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show source</a> ]</p> - <div id="M000053_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show source</a> ]</p> + <div id="M000061_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtLogManager.rb, line 91</span> 91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cachePackage</span>( <span class="ruby-identifier">package</span> ) @@ -185,7 +186,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000052"></a><b>logPackageBuild</b>( package ) + <a name="M000060"></a><b>logPackageBuild</b>( package ) </div> <div class="description"> <p> @@ -201,8 +202,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000052_source')" id="l_M000052_source">show source</a> ]</p> - <div id="M000052_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show source</a> ]</p> + <div id="M000060_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtLogManager.rb, line 79</span> 79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageBuild</span>( <span class="ruby-identifier">package</span> ) @@ -213,7 +214,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000051"></a><b>logPackageInstall</b>( package ) + <a name="M000059"></a><b>logPackageInstall</b>( package ) </div> <div class="description"> <p> @@ -229,8 +230,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show source</a> ]</p> - <div id="M000051_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show source</a> ]</p> + <div id="M000059_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtLogManager.rb, line 67</span> 67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageInstall</span>( <span class="ruby-identifier">package</span> ) @@ -241,7 +242,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000054"></a><b>logToJournal</b>( message ) + <a name="M000062"></a><b>logToJournal</b>( message ) </div> <div class="description"> <p> @@ -257,8 +258,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000054_source')" id="l_M000054_source">show source</a> ]</p> - <div id="M000054_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show source</a> ]</p> + <div id="M000062_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtLogManager.rb, line 103</span> 103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logToJournal</span>( <span class="ruby-identifier">message</span> ) @@ -267,7 +268,37 @@ </div> </div> </div> +<div class="sectiontitle">Protected Instance methods</div> +<div class="method"> + <div class="title"> + <a name="M000057"></a><b>logPackageIntegrity</b>( package ) + </div> + <div class="description"> + <p> +Provides logging of the integrity of all installed files for the given +package. Will be called as part of the logging done during the install +phase. +</p> +<p> +<b>PARAM</b> <em>String</em> - Package name. +</p> +<p> +<b>RETURN</b> <em>boolean</em> - True if integrity log created +successfully, otherwise false. +</p> + </div> +<div class="sourcecode"> + <p class="source-link">[ <a href="javascript:toggleSource('M000057_source')" id="l_M000057_source">show source</a> ]</p> + <div id="M000057_source" class="dyn-source"> +<pre> + <span class="ruby-comment cmt"># File AbtLogManager.rb, line 42</span> +42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">logPackageIntegrity</span>( <span class="ruby-identifier">package</span> ) +43: <span class="ruby-keyword kw">end</span> +</pre> + </div> </div> +</div> +</div> </div> Modified: src/trunk/doc/classes/AbtPackage.html =================================================================== --- src/trunk/doc/classes/AbtPackage.html 2006-11-14 17:56:07 UTC (rev 171) +++ src/trunk/doc/classes/AbtPackage.html 2006-11-14 17:59:16 UTC (rev 172) @@ -76,7 +76,7 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="29,52,117,100" href="AbtPackage.html" alt="AbtPackage"> + <area shape="RECT" coords="27,50,115,98" href="AbtPackage.html" alt="AbtPackage"> </map> <img src="../dot/f_3.png" usemap="#map" border=0 alt="TopLevel"> </td></tr></table> @@ -319,25 +319,23 @@ <pre> <span class="ruby-comment cmt"># File AbtPackage.rb, line 93</span> 93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">data</span> ) - 94: - 95: <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'name'</span>] - 96: <span class="ruby-ivar">@execName</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'execName'</span>] - 97: <span class="ruby-ivar">@version</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'version'</span>] - 98: <span class="ruby-ivar">@srcDir</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'srcDir'</span>] - 99: <span class="ruby-ivar">@homepage</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'homepage'</span>] -100: <span class="ruby-ivar">@srcUrl</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'srcUrl'</span>] -101: <span class="ruby-ivar">@dependsOn</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'dependsOn'</span>] -102: <span class="ruby-ivar">@reliesOn</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'reliesOn'</span>] -103: <span class="ruby-ivar">@optionalDO</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'optionalDO'</span>] -104: <span class="ruby-ivar">@optionalRO</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'optionalRO'</span>] -105: <span class="ruby-ivar">@hashCheck</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'hashCheck'</span>] -106: <span class="ruby-ivar">@patches</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'patches'</span>] -107: <span class="ruby-ivar">@patchesHashCheck</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'patchesHashCheck'</span>] -108: <span class="ruby-ivar">@mirrorPath</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'mirrorPath'</span>] -109: <span class="ruby-ivar">@license</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'license'</span>] -110: <span class="ruby-ivar">@description</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'description'</span>] -111: -112: <span class="ruby-keyword kw">end</span> + 94: <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'name'</span>] + 95: <span class="ruby-ivar">@execName</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'execName'</span>] + 96: <span class="ruby-ivar">@version</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'version'</span>] + 97: <span class="ruby-ivar">@srcDir</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'srcDir'</span>] + 98: <span class="ruby-ivar">@homepage</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'homepage'</span>] + 99: <span class="ruby-ivar">@srcUrl</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'srcUrl'</span>] +100: <span class="ruby-ivar">@dependsOn</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'dependsOn'</span>] +101: <span class="ruby-ivar">@reliesOn</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'reliesOn'</span>] +102: <span class="ruby-ivar">@optionalDO</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'optionalDO'</span>] +103: <span class="ruby-ivar">@optionalRO</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'optionalRO'</span>] +104: <span class="ruby-ivar">@hashCheck</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'hashCheck'</span>] +105: <span class="ruby-ivar">@patches</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'patches'</span>] +106: <span class="ruby-ivar">@patchesHashCheck</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'patchesHashCheck'</span>] +107: <span class="ruby-ivar">@mirrorPath</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'mirrorPath'</span>] +108: <span class="ruby-ivar">@license</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'license'</span>] +109: <span class="ruby-ivar">@description</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'description'</span>] +110: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -361,9 +359,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000027_source')" id="l_M000027_source">show source</a> ]</p> <div id="M000027_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 168</span> -168: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build</span> -169: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 164</span> +164: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build</span> +165: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -390,9 +388,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000026_source')" id="l_M000026_source">show source</a> ]</p> <div id="M000026_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 160</span> -160: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span> -161: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 156</span> +156: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span> +157: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -415,29 +413,27 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000024_source')" id="l_M000024_source">show source</a> ]</p> <div id="M000024_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 119</span> -119: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">details</span> -120: -121: <span class="ruby-keyword kw">return</span> { -122: <span class="ruby-value str">'name'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@name</span>, -123: <span class="ruby-value str">'execName'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@execName</span>, -124: <span class="ruby-value str">'version'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@version</span>, -125: <span class="ruby-value str">'srcDir'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@srcDir</span>, -126: <span class="ruby-value str">'homepage'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@homepage</span>, -127: <span class="ruby-value str">'srcUrl'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@srcUrl</span>, -128: <span class="ruby-value str">'dependsOn'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@dependsOn</span>, -129: <span class="ruby-value str">'reliesOn'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@reliesOn</span>, -130: <span class="ruby-value str">'optionalDO'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@optionalDO</span>, -131: <span class="ruby-value str">'optionalRO'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@optionalRO</span>, -132: <span class="ruby-value str">'hashCheck'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@hashCheck</span>, -133: <span class="ruby-value str">'patches'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@patches</span>, -134: <span class="ruby-value str">'patchesHashCheck'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@patchesHashCheck</span>, -135: <span class="ruby-value str">'mirrorPath'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@mirrorPath</span>, -136: <span class="ruby-value str">'license'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@license</span>, -137: <span class="ruby-value str">'description'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@description</span> -138: } -139: -140: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 117</span> +117: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">details</span> +118: <span class="ruby-keyword kw">return</span> { +119: <span class="ruby-value str">"name"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@name</span>, +120: <span class="ruby-value str">"execName"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@execName</span>, +121: <span class="ruby-value str">"version"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@version</span>, +122: <span class="ruby-value str">"srcDir"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@srcDir</span>, +123: <span class="ruby-value str">"homepage"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@homepage</span>, +124: <span class="ruby-value str">"srcUrl"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@srcUrl</span>, +125: <span class="ruby-value str">"dependsOn"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@dependsOn</span>, +126: <span class="ruby-value str">"reliesOn"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@reliesOn</span>, +127: <span class="ruby-value str">"optionalDO"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@optionalDO</span>, +128: <span class="ruby-value str">"optionalRO"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@optionalRO</span>, +129: <span class="ruby-value str">"hashCheck"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@hashCheck</span>, +130: <span class="ruby-value str">"patches"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@patches</span>, +131: <span class="ruby-value str">"patchesHashCheck"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@patchesHashCheck</span>, +132: <span class="ruby-value str">"mirrorPath"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@mirrorPath</span>, +133: <span class="ruby-value str">"license"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@license</span>, +134: <span class="ruby-value str">"description"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@description</span> +135: } +136: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -459,9 +455,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000029_source')" id="l_M000029_source">show source</a> ]</p> <div id="M000029_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 185</span> -185: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install</span> -186: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 181</span> +181: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">install</span> +182: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -484,9 +480,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show source</a> ]</p> <div id="M000030_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 193</span> -193: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post</span> -194: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 189</span> +189: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post</span> +190: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -509,9 +505,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000025_source')" id="l_M000025_source">show source</a> ]</p> <div id="M000025_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 148</span> -148: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pre</span> -149: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 144</span> +144: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pre</span> +145: <span class="ruby-keyword kw">end</span> </pre> </div> </div> @@ -535,9 +531,9 @@ <p class="source-link">[ <a href="javascript:toggleSource('M000028_source')" id="l_M000028_source">show source</a> ]</p> <div id="M000028_source" class="dyn-source"> <pre> - <span class="ruby-comment cmt"># File AbtPackage.rb, line 177</span> -177: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">preinstall</span> -178: <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># File AbtPackage.rb, line 173</span> +173: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">preinstall</span> +174: <span class="ruby-keyword kw">end</span> </pre> </div> </div> Modified: src/trunk/doc/classes/AbtPackageManager.html =================================================================== --- src/trunk/doc/classes/AbtPackageManager.html 2006-11-14 17:56:07 UTC (rev 171) +++ src/trunk/doc/classes/AbtPackageManager.html 2006-11-14 17:59:16 UTC (rev 172) @@ -76,7 +76,7 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="29,52,157,100" href="AbtPackageManager.html" alt="AbtPackageManager"> + <area shape="RECT" coords="27,50,157,98" href="AbtPackageManager.html" alt="AbtPackageManager"> </map> <img src="../dot/f_4.png" usemap="#map" border=0 alt="TopLevel"> </td></tr></table> @@ -118,12 +118,12 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000035">downgradePackage</a></li> - <li><a href="#M000036">freezePackage</a></li> - <li><a href="#M000032">installPackage</a></li> - <li><a href="#M000031">new</a></li> - <li><a href="#M000033">reinstallPackage</a></li> - <li><a href="#M000034">removePackage</a></li> + <li><a href="#M000042">downgradePackage</a></li> + <li><a href="#M000043">freezePackage</a></li> + <li><a href="#M000039">installPackage</a></li> + <li><a href="#M000038">new</a></li> + <li><a href="#M000040">reinstallPackage</a></li> + <li><a href="#M000041">removePackage</a></li> </ul> @@ -134,7 +134,7 @@ <div class="sectiontitle">Public Class methods</div> <div class="method"> <div class="title"> - <a name="M000031"></a><b>new</b>() + <a name="M000038"></a><b>new</b>() </div> <div class="description"> <p> @@ -147,8 +147,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show source</a> ]</p> - <div id="M000031_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000038_source')" id="l_M000038_source">show source</a> ]</p> + <div id="M000038_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 41</span> 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> @@ -160,7 +160,7 @@ <div class="sectiontitle">Public Instance methods</div> <div class="method"> <div class="title"> - <a name="M000035"></a><b>downgradePackage</b>( package, version ) + <a name="M000042"></a><b>downgradePackage</b>( package, version ) </div> <div class="description"> <p> @@ -178,8 +178,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000035_source')" id="l_M000035_source">show source</a> ]</p> - <div id="M000035_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000042_source')" id="l_M000042_source">show source</a> ]</p> + <div id="M000042_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 87</span> 87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">downgradePackage</span>( <span class="ruby-identifier">package</span>, <span class="ruby-identifier">version</span> ) @@ -190,7 +190,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000036"></a><b>freezePackage</b>( package ) + <a name="M000043"></a><b>freezePackage</b>( package ) </div> <div class="description"> <p> @@ -206,8 +206,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000036_source')" id="l_M000036_source">show source</a> ]</p> - <div id="M000036_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000043_source')" id="l_M000043_source">show source</a> ]</p> + <div id="M000043_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 99</span> 99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">freezePackage</span>( <span class="ruby-identifier">package</span> ) @@ -218,7 +218,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000032"></a><b>installPackage</b>( package ) + <a name="M000039"></a><b>installPackage</b>( package ) </div> <div class="description"> <p> @@ -233,8 +233,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show source</a> ]</p> - <div id="M000032_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000039_source')" id="l_M000039_source">show source</a> ]</p> + <div id="M000039_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 52</span> 52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">installPackage</span>( <span class="ruby-identifier">package</span> ) @@ -245,7 +245,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000033"></a><b>reinstallPackage</b>( package ) + <a name="M000040"></a><b>reinstallPackage</b>( package ) </div> <div class="description"> <p> @@ -260,8 +260,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000033_source')" id="l_M000033_source">show source</a> ]</p> - <div id="M000033_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000040_source')" id="l_M000040_source">show source</a> ]</p> + <div id="M000040_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 63</span> 63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reinstallPackage</span>( <span class="ruby-identifier">package</span> ) @@ -272,7 +272,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000034"></a><b>removePackage</b>( package ) + <a name="M000041"></a><b>removePackage</b>( package ) </div> <div class="description"> <p> @@ -287,8 +287,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000034_source')" id="l_M000034_source">show source</a> ]</p> - <div id="M000034_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000041_source')" id="l_M000041_source">show source</a> ]</p> + <div id="M000041_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtPackageManager.rb, line 74</span> 74: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">removePackage</span>( <span class="ruby-identifier">package</span> ) Modified: src/trunk/doc/classes/AbtQueueManager.html =================================================================== --- src/trunk/doc/classes/AbtQueueManager.html 2006-11-14 17:56:07 UTC (rev 171) +++ src/trunk/doc/classes/AbtQueueManager.html 2006-11-14 17:59:16 UTC (rev 172) @@ -76,7 +76,7 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="29,52,146,100" href="AbtQueueManager.html" alt="AbtQueueManager"> + <area shape="RECT" coords="27,50,147,98" href="AbtQueueManager.html" alt="AbtQueueManager"> </map> <img src="../dot/f_5.png" usemap="#map" border=0 alt="TopLevel"> </td></tr></table> @@ -117,7 +117,7 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000073">new</a></li> + <li><a href="#M000081">new</a></li> </ul> @@ -128,7 +128,7 @@ <div class="sectiontitle">Public Class methods</div> <div class="method"> <div class="title"> - <a name="M000073"></a><b>new</b>() + <a name="M000081"></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('M000073_source')" id="l_M000073_source">show source</a> ]</p> - <div id="M000073_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000081_source')" id="l_M000081_source">show source</a> ]</p> + <div id="M000081_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtQueueManager.rb, line 40</span> 40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> Modified: src/trunk/doc/classes/AbtReportManager.html =================================================================== --- src/trunk/doc/classes/AbtReportManager.html 2006-11-14 17:56:07 UTC (rev 171) +++ src/trunk/doc/classes/AbtReportManager.html 2006-11-14 17:59:16 UTC (rev 172) @@ -76,7 +76,7 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="29,52,146,100" href="AbtReportManager.html" alt="AbtReportManager"> + <area shape="RECT" coords="27,50,147,98" href="AbtReportManager.html" alt="AbtReportManager"> </map> <img src="../dot/f_6.png" usemap="#map" border=0 alt="TopLevel"> </td></tr></table> @@ -117,19 +117,19 @@ <div class="sectiontitle">Methods</div> <ul> - <li><a href="#M000103">generateHTMLPackageListing</a></li> - <li><a href="#M000091">new</a></li> - <li><a href="#M000100">searchPackageDescriptions</a></li> - <li><a href="#M000099">showFileOwner</a></li> - <li><a href="#M000095">showFrozenPackages</a></li> - <li><a href="#M000093">showInstalledPackages</a></li> - <li><a href="#M000098">showJournal</a></li> - <li><a href="#M000096">showPackageDependencies</a></li> - <li><a href="#M000092">showPackageDetails</a></li> - <li><a href="#M000094">showPackageLog</a></li> - <li><a href="#M000101">showQueue</a></li> - <li><a href="#M000097">showUntrackedFiles</a></li> - <li><a href="#M000102">showUpdates</a></li> + <li><a href="#M000111">generateHTMLPackageListing</a></li> + <li><a href="#M000099">new</a></li> + <li><a href="#M000108">searchPackageDescriptions</a></li> + <li><a href="#M000107">showFileOwner</a></li> + <li><a href="#M000103">showFrozenPackages</a></li> + <li><a href="#M000101">showInstalledPackages</a></li> + <li><a href="#M000106">showJournal</a></li> + <li><a href="#M000104">showPackageDependencies</a></li> + <li><a href="#M000100">showPackageDetails</a></li> + <li><a href="#M000102">showPackageLog</a></li> + <li><a href="#M000109">showQueue</a></li> + <li><a href="#M000105">showUntrackedFiles</a></li> + <li><a href="#M000110">showUpdates</a></li> </ul> @@ -140,7 +140,7 @@ <div class="sectiontitle">Public Class methods</div> <div class="method"> <div class="title"> - <a name="M000091"></a><b>new</b>() + <a name="M000099"></a><b>new</b>() </div> <div class="description"> <p> @@ -152,8 +152,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000091_source')" id="l_M000091_source">show source</a> ]</p> - <div id="M000091_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">show source</a> ]</p> + <div id="M000099_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 41</span> 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> @@ -165,7 +165,7 @@ <div class="sectiontitle">Public Instance methods</div> <div class="method"> <div class="title"> - <a name="M000103"></a><b>generateHTMLPackageListing</b>() + <a name="M000111"></a><b>generateHTMLPackageListing</b>() </div> <div class="description"> <p> @@ -176,8 +176,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p> - <div id="M000103_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000111_source')" id="l_M000111_source">show source</a> ]</p> + <div id="M000111_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 169</span> 169: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generateHTMLPackageListing</span> @@ -188,7 +188,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000100"></a><b>searchPackageDescriptions</b>( searchText ) + <a name="M000108"></a><b>searchPackageDescriptions</b>( searchText ) </div> <div class="description"> <p> @@ -204,8 +204,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show source</a> ]</p> - <div id="M000100_source" class="dyn-source"> + <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 AbtReportManager.rb, line 137</span> 137: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">searchPackageDescriptions</span>( <span class="ruby-identifier">searchText</span> ) @@ -216,7 +216,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000099"></a><b>showFileOwner</b>( file ) + <a name="M000107"></a><b>showFileOwner</b>( file ) </div> <div class="description"> <p> @@ -230,8 +230,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">show source</a> ]</p> - <div id="M000099_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show source</a> ]</p> + <div id="M000107_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 125</span> 125: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showFileOwner</span>( <span class="ruby-identifier">file</span> ) @@ -242,7 +242,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000095"></a><b>showFrozenPackages</b>() + <a name="M000103"></a><b>showFrozenPackages</b>() </div> <div class="description"> <p> @@ -253,8 +253,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000095_source')" id="l_M000095_source">show source</a> ]</p> - <div id="M000095_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p> + <div id="M000103_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 84</span> 84: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showFrozenPackages</span> @@ -265,7 +265,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000093"></a><b>showInstalledPackages</b>() + <a name="M000101"></a><b>showInstalledPackages</b>() </div> <div class="description"> <p> @@ -276,8 +276,8 @@ </p> </div> <div class="sourcecode"> - <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"> + <p class="source-link">[ <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">show source</a> ]</p> + <div id="M000101_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 60</span> 60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showInstalledPackages</span> @@ -288,7 +288,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000098"></a><b>showJournal</b>() + <a name="M000106"></a><b>showJournal</b>() </div> <div class="description"> <p> @@ -299,8 +299,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">show source</a> ]</p> - <div id="M000098_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show source</a> ]</p> + <div id="M000106_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 115</span> 115: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showJournal</span> @@ -311,7 +311,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000096"></a><b>showPackageDependencies</b>( package ) + <a name="M000104"></a><b>showPackageDependencies</b>( package ) </div> <div class="description"> <p> @@ -328,8 +328,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000096_source')" id="l_M000096_source">show source</a> ]</p> - <div id="M000096_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show source</a> ]</p> + <div id="M000104_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 97</span> 97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showPackageDependencies</span>( <span class="ruby-identifier">package</span> ) @@ -340,7 +340,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000092"></a><b>showPackageDetails</b>( package ) + <a name="M000100"></a><b>showPackageDetails</b>( package ) </div> <div class="description"> <p> @@ -355,8 +355,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000092_source')" id="l_M000092_source">show source</a> ]</p> - <div id="M000092_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show source</a> ]</p> + <div id="M000100_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 52</span> 52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showPackageDetails</span>( <span class="ruby-identifier">package</span> ) @@ -367,7 +367,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000094"></a><b>showPackageLog</b>( package, logType ) + <a name="M000102"></a><b>showPackageLog</b>( package, logType ) </div> <div class="description"> <p> @@ -385,8 +385,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('M000102_source')" id="l_M000102_source">show source</a> ]</p> + <div id="M000102_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 73</span> 73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showPackageLog</span>( <span class="ruby-identifier">package</span>, <span class="ruby-identifier">logType</span> ) @@ -400,7 +400,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000101"></a><b>showQueue</b>( queueType ) + <a name="M000109"></a><b>showQueue</b>( queueType ) </div> <div class="description"> <p> @@ -415,8 +415,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">show source</a> ]</p> - <div id="M000101_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">show source</a> ]</p> + <div id="M000109_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 148</span> 148: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showQueue</span>( <span class="ruby-identifier">queueType</span> ) @@ -427,7 +427,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000097"></a><b>showUntrackedFiles</b>() + <a name="M000105"></a><b>showUntrackedFiles</b>() </div> <div class="description"> <p> @@ -439,8 +439,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000097_source')" id="l_M000097_source">show source</a> ]</p> - <div id="M000097_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p> + <div id="M000105_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 107</span> 107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showUntrackedFiles</span> @@ -451,7 +451,7 @@ </div> <div class="method"> <div class="title"> - <a name="M000102"></a><b>showUpdates</b>( target ) + <a name="M000110"></a><b>showUpdates</b>( target ) </div> <div class="description"> <p> @@ -468,8 +468,8 @@ </p> </div> <div class="sourcecode"> - <p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show source</a> ]</p> - <div id="M000102_source" class="dyn-source"> + <p class="source-link">[ <a href="javascript:toggleSource('M000110_source')" id="l_M000110_source">show source</a> ]</p> + <div id="M000110_source" class="dyn-source"> <pre> <span class="ruby-comment cmt"># File AbtReportManager.rb, line 161</span> 161: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">showUpdates</span>( <span class="ruby-identifier">target</span> ) Modified: src/trunk/doc/classes/AbtSystemManager.html =================================================================== --- src/trunk/doc/classes/AbtSystemManager.html 2006-11-14 17:56:07 UTC (rev 171) +++ src/trunk/doc/classes/AbtSystemManager.html 2006-11-14 17:59:16 UTC (rev 172) @@ -76,7 +76,7 @@ <div id="content"> <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> <map id="map" name="map"> - <area shape="RECT" coords="29,52,151,100" href="AbtSystemManager.html" alt="AbtSystemManager"> + <area shape="RECT" coords="27,50,152,98" href="AbtSystemManager.html" alt="AbtSystemManager"> </map> <img src="../dot/f_7.png" usemap="#map" border=0 alt="TopLevel"> </td></tr></table> Added: src/trunk/doc/classes/AbtUsage.html =================================================================== --- src/trunk/doc/classes/AbtUsage.html (rev 0) +++ src/trunk/doc/classes/AbtUsage.html 2006-11-14 17:59:16 UTC (rev 172) @@ -0,0 +1,316 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html> + <head> + <title>Class: AbtUsage</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> + + <script language="JavaScript" type="text/javascript"> + // <![CDATA[ + + function toggleSource( id ) + { + var elem + var link + + if( document.getElementById ) + { + elem = document.getElementById( id ) + link = document.getElementById( "l_" + id ) + } + else if ( document.all ) + { + elem = eval( "document.all." + id ) + link = eval( "document.all.l_" + id ) + } + else + return false; + + if( elem.style.display == "block" ) + { + elem.style.display = "none" + link.innerHTML = "show source" + } + else + { + elem.style.display = "block" + link.innerHTML = "hide source" + } + } + + function openCode( url ) + { + window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" ) + } + // ]]> + </script> + </head> + + <body> + <table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr> + <td class="file-title"><span class="file-title-prefix">Class</span><br />AbtUsage</td> + <td align="right"> + <table cellspacing=0 cellpadding=2> + <tr valign="top"> + <td>In:</td> + <td> +<a href="../files/AbtUsage_rb.html">AbtUsage.rb</a> + </td> + </tr> + <tr> + <td>Parent:</td> + <td> +Object + </td> + </tr> + </table> + </td> + </tr> + </table> + <!-- banner header --> + + <div id="bodyContent"> + <div id="content"> + <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center"> + <map id="map" name="map"> + <area shape="RECT" coords="27,50,107,98" href="AbtUsage.html" alt="AbtUsage"> +</map> +<img src="../dot/f_8.png" usemap="#map" border=0 alt="TopLevel"> + </td></tr></table> + + <div class="description"><p> +AbtUsage.rb +</p> +<p> +The usage reporting class for AbTLinux. +</p> +<p> +Created by Eric D. Schabell <er...@ab...> Copyright November +2006, GPL. +</p> +<p> +This file is part of AbTLinux. +</p> +<p> +AbTLinux is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2 of the License, or (at your optio... [truncated message content] |
From: <esc...@us...> - 2006-11-14 17:56:09
|
Revision: 171 http://svn.sourceforge.net/abtlinux/?rev=171&view=rev Author: eschabell Date: 2006-11-14 09:56:07 -0800 (Tue, 14 Nov 2006) Log Message: ----------- Completed download of a package source. Modified Paths: -------------- src/trunk/AbtDownloadManager.rb src/trunk/abt.rb Modified: src/trunk/AbtDownloadManager.rb =================================================================== --- src/trunk/AbtDownloadManager.rb 2006-11-14 17:53:57 UTC (rev 170) +++ src/trunk/AbtDownloadManager.rb 2006-11-14 17:56:07 UTC (rev 171) @@ -1,4 +1,4 @@ -#!/usr/bin/ruby -w +#!/usr/bin/ruby ## # AbtDownloadManager.rb @@ -42,15 +42,30 @@ end ## - # Downloads a given package source. + # Downloads a given package source. If the file already exists, returns + # true as if download completed. # # <b>PARAM</b> <i>String</i> - the name of the package for which the source # is to be downloaded. + # <b>PARAM</b> <i>String</i> - the path to the download destination. # # <b>RETURN</b> <i>boolean</i> - True if the package source has been # downloaded, otherwise false. ## - def retrievePackageSource( packageName ) + def retrievePackageSource( packageName, destination ) + + require packageName + package = eval( packageName.capitalize + '.new' ) + + if ( File.exist?( destination + "/" + File.basename( package.srcUrl ) ) ) + return true + end + + if ( system( "cd " + destination + "; wget " + package.srcUrl ) ) # TODO: rm system call? + return true + end + + return false # download failed. end ## @@ -93,4 +108,4 @@ def updatePackageTree end -end \ No newline at end of file +end Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-11-14 17:53:57 UTC (rev 170) +++ src/trunk/abt.rb 2006-11-14 17:56:07 UTC (rev 171) @@ -29,6 +29,7 @@ require 'AbtReportManager' require 'AbtDownloadManager' require 'AbtUsage' +require 'fileutils' require 'optparse' $PACKAGE_PATH = "./packages/" @@ -208,16 +209,19 @@ when "download", "-d" if ( ARGV.length == 2 && File.exist?( $PACKAGE_PATH + ARGV[1] + ".rb" ) ) options['package'] = ARGV[1] - puts "Retrieve sources for package : " + options['package'] + if ( !File.directory?( $SOURCES_REPOSITORY ) ) - FileUtils.mkdir_p $SOURCES_REPOSITORY # initialize directory. + FileUtils.mkdir_p( $SOURCES_REPOSITORY ) # initialize directory. end + manager = AbtDownloadManager.new - if ( manager.retrievePackageSource( options['package'] ) ) - puts "\nDownloading of package " + options['package'] + " sources completed, see " + $SOURCES_REPOSITORY + + if ( manager.retrievePackageSource( options['package'], $SOURCES_REPOSITORY ) ) + puts "\nDownloading of " + options['package'] + " to " + $SOURCES_REPOSITORY + " completed.\n\n" else - puts "\nDOWNLOADING - failed to download source for " + options['package'] + puts "\nDOWNLOADING - failed to download source for " + options['package'] + "\n\n" end + else show.usage( "downloads" ) exit This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-14 17:54:02
|
Revision: 170 http://svn.sourceforge.net/abtlinux/?rev=170&view=rev Author: eschabell Date: 2006-11-14 09:53:57 -0800 (Tue, 14 Nov 2006) Log Message: ----------- Fixed missing depth element of the srcUrl for our test package. Modified Paths: -------------- src/trunk/packages/fortune.rb Modified: src/trunk/packages/fortune.rb =================================================================== --- src/trunk/packages/fortune.rb 2006-11-14 16:07:51 UTC (rev 169) +++ src/trunk/packages/fortune.rb 2006-11-14 17:53:57 UTC (rev 170) @@ -42,7 +42,7 @@ 'version' => $version, 'srcDir' => $srcDir, 'homepage' => "http://www.ibiblio.org/pub/Linux/games/amusements/#{$name.downcase}/", - 'srcUrl' => "http://www.ibiblio.org/pub/Linux/games/amusements/#{$srcDir}.tar.gz", + 'srcUrl' => "http://www.ibiblio.org/pub/Linux/games/amusements/#{$name.downcase}/#{$srcDir}.tar.gz", 'dependsOn' => "", 'reliesOn' => "", 'optionalDO' => "", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <esc...@us...> - 2006-11-14 16:08:17
|
Revision: 169 http://svn.sourceforge.net/abtlinux/?rev=169&view=rev Author: eschabell Date: 2006-11-14 08:07:51 -0800 (Tue, 14 Nov 2006) Log Message: ----------- Variables need to be global for this testing. Modified Paths: -------------- src/trunk/TestAbtPackage.rb Modified: src/trunk/TestAbtPackage.rb =================================================================== --- src/trunk/TestAbtPackage.rb 2006-11-14 16:00:02 UTC (rev 168) +++ src/trunk/TestAbtPackage.rb 2006-11-14 16:07:51 UTC (rev 169) @@ -30,27 +30,27 @@ ## class TestAbtPackage < Test::Unit::TestCase - @name = "Fortune" - @version = "mod-9708" - @srcDir = "#{@name.downcase}-#{@version}" + $name = "Fortune" + $version = "mod-9708" + $srcDir = "#{$name.downcase}-#{$version}" $data = { - 'name' => "Fortune", - 'execName' => @name.downcase, - 'version' => @version, - 'srcDir' => @srcDir, - 'homepage' => "http://www.ibiblio.org/pub/Linux/games/amusements/#{@name.downcase}/", - 'srcUrl' => "http://www.ibiblio.org/pub/Linux/games/amusements/#{@srcDir}.tar.gz", - 'dependsOn' => "none", - 'reliesOn' => "none", - 'optionalDO' => "none", - 'optionalRO' => "none", - 'hashCheck' => "sha512:80c5b71d84eeb3092b2dfe483f0dad8ed42e2efeaa1f8791c26fb2ae80fbd7775777ac5252b1d8270e2e176ad14ce98940bee6d8e71fdbb9ac3323dc7188c4d0", - 'patches' => "http://patches.abtlinux.org/#{@srcDir}-patches-1.tar.gz", + 'name' => "Fortune", + 'execName' => $name.downcase, + 'version' => $version, + 'srcDir' => $srcDir, + 'homepage' => "http://www.ibiblio.org/pub/Linux/games/amusements/#{$name.downcase}/", + 'srcUrl' => "http://www.ibiblio.org/pub/Linux/games/amusements/#{$srcDir}.tar.gz", + 'dependsOn' => "none", + 'reliesOn' => "none", + 'optionalDO' => "none", + 'optionalRO' => "none", + 'hashCheck' => "sha512:80c5b71d84eeb3092b2dfe483f0dad8ed42e2ef", + 'patches' => "http://patches.abtlinux.org/#{$srcDir}-patches-1.tar.gz", 'patchesHashCheck' => "sha512:80c5b71d84eeb3092b2dfe483f0dad8ed42", - 'mirrorPath' => "http://mirror.abtlinux.org/#{@srcDir}.tar.gz", - 'license' => "GPL", - 'description' => "Prints a random, hopefully interesting, adage." + 'mirrorPath' => "http://mirror.abtlinux.org/#{$srcDir}.tar.gz", + 'license' => "GPL", + 'description' => "Prints a random, hopefully interesting, adage." } ## This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |