[Abtlinux-svn] SF.net SVN: abtlinux: [155] src/trunk/abt.rb
Status: Alpha
Brought to you by:
eschabell
From: <esc...@us...> - 2006-10-14 17:50:37
|
Revision: 155 http://svn.sourceforge.net/abtlinux/?rev=155&view=rev Author: eschabell Date: 2006-10-14 10:50:31 -0700 (Sat, 14 Oct 2006) Log Message: ----------- Added the scenarios from section 3.6 options. Overview of available options: Usage: abt.rb [options] packages: -i, install [package] Install given package. -ri, reinstall [package] Reinstall given package. -r, remove [package] Remove given package. -dg, downgrade [version] [package] Downgrade given package to given version. -f, freeze [package] Holds given package at current version, prevents upgrades. queries: -s, search [string | regexp ] Search package descriptions for given input. show-details [package] Show give package details. show-build [package] Show build log of given package. show-depends [package] Show the dependency tree of given package. show-files [package] Show all installed files from given package. show-owner [file] Show the package owning given file. show-installed Show list of all installed packages. show-frozen Show list of all frozen packages. show-untracked Show all files on system not tracked by AbTLinux. show-journal Show the system journal. show-iqueue Show the contents of the install queue. show-patches Show the current available patches for installed package tree. generation: show-updates Show a package listing with available update versions. html Generate HTML page from installed packages: (package name with hyperlink to package website and version installed) downloads: -d, download [package] Retrieve given package sources. -u, update [package]|[tree] Update given package or tree from AbTLinux repository. -n, news Displays newsfeed from AbTLinux website. fix: purge-src Remove source caches for packages no longer installed. purge-logs Remove log files for packages no longer installed. verify-files [package] Installed files are verified for given package. verify-symlinks [package] Symlinks verified for given package. verify-deps [package] Dependency tree is verified for given package. verify-integrity [package] Verify integrity of installed files for given package. fix [package] Given package is verified and fixed if needed. Modified Paths: -------------- src/trunk/abt.rb Modified: src/trunk/abt.rb =================================================================== --- src/trunk/abt.rb 2006-10-14 17:30:41 UTC (rev 154) +++ src/trunk/abt.rb 2006-10-14 17:50:31 UTC (rev 155) @@ -63,7 +63,16 @@ puts "downloads:" puts " -d, download [package]\t\tRetrieve given package sources." puts " -u, update [package]|[tree]\tUpdate given package or tree from AbTLinux repository." - puts " news\t\t\t\t\tDisplays newsfeed from AbTLinux website." + puts " -n, news\t\t\t\tDisplays newsfeed from AbTLinux website." + puts + puts "fix:" + 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." end end @@ -202,13 +211,13 @@ when "show-updates" puts "Display package listing with available update versions." - when "news" - puts "Display AbTLinux website newsfeed." - when "html" puts "Generate HTML page from installed packages:" puts " (package name with hyperlink to package website and version installed)" - + + when "news", "-n" + puts "Display AbTLinux website newsfeed." + when "download", "-d" if ( ARGV.length == 2 ) options['package'] = ARGV[1] @@ -226,6 +235,57 @@ show.usage exit end + + when "purge-src" + puts "Remove source caches for packages no longer installed." + + when "purge-logs" + puts "Remove log files for packages no longer installed." + + when "verify-files" + if ( ARGV.length == 2 ) + options['package'] = ARGV[1] + puts "Installed files verified for package : " + options['package'] + else + show.usage + exit + end + + when "verify-symlinks" + if ( ARGV.length == 2 ) + options['package'] = ARGV[1] + puts "Symlinks verified for package : " + options['package'] + else + show.usage + exit + end + + when "verify-deps" + if ( ARGV.length == 2 ) + options['package'] = ARGV[1] + puts "Symlinks verified for package : " + options['package'] + else + show.usage + exit + end + + when "verify-integrity" + if ( ARGV.length == 2 ) + options['package'] = ARGV[1] + puts "Verifiy the integrity of installed files for package : " + options['package'] + else + show.usage + exit + end + + when "fix" + if ( ARGV.length == 2 ) + options['package'] = ARGV[1] + puts "Package : " + options['package'] + " is verified and checked if needed." + else + show.usage + exit + end end # case #puts 'DEBUG: options are -' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |