opensuse:supportability-analysis-module.git
9 years agoprint only base of reference repository url
David Sterba [Mon, 30 Mar 2009 08:55:18 +0000 (10:55 +0200)]
print only base of reference repository url

- do not show the file part (.rpm)
- the link contains release notes and installation instruction
  (ie. better than a rpm)

9 years agomanpage updates
David Sterba [Fri, 27 Mar 2009 17:06:50 +0000 (18:06 +0100)]
manpage updates

9 years agofix evr vs version for package names
David Sterba [Fri, 27 Mar 2009 13:14:40 +0000 (14:14 +0100)]
fix evr vs version for package names

- evr is used inside solver, package names are referenced without epoch
  this caused mismatch and crash

9 years agoupdate manpage
David Sterba [Fri, 27 Mar 2009 10:54:18 +0000 (11:54 +0100)]
update manpage

9 years agoverify only files from rpm list
David Sterba [Thu, 26 Mar 2009 18:07:56 +0000 (19:07 +0100)]
verify only files from rpm list

- does not --verify files not included in -ql list
  eg when package was installed with --excludepath option
  and may show false positives
- cache results of -ql commands if wanted

9 years agoadd empty repo scheme
David Sterba [Wed, 25 Mar 2009 16:42:25 +0000 (17:42 +0100)]
add empty repo scheme

- just use refdata, no local repos will be found

9 years agofix matching gpg keys
David Sterba [Wed, 25 Mar 2009 16:11:07 +0000 (17:11 +0100)]
fix matching gpg keys

- do pub key comment matching properly
- list pub comments of all used keys

9 years agoclean up repo config code
David Sterba [Wed, 25 Mar 2009 14:34:12 +0000 (15:34 +0100)]
clean up repo config code

- metadata dir was not used
- keys dir used instead
- default zypper subdir names passed directly

9 years agorefdata structure fixes
David Sterba [Wed, 25 Mar 2009 14:04:20 +0000 (15:04 +0100)]
refdata structure fixes

- accept 'keys' dir too
- do not move keys out of metadata

9 years agoenhanced parsing of reference repositories
David Sterba [Tue, 24 Mar 2009 15:08:09 +0000 (16:08 +0100)]
enhanced parsing of reference repositories

- accept solv, metadata or tar (in that order) as reference repos

9 years agoadd manpage file
David Sterba [Mon, 23 Mar 2009 16:25:41 +0000 (17:25 +0100)]
add manpage file

9 years agoself contained manpage
David Sterba [Mon, 23 Mar 2009 16:00:31 +0000 (17:00 +0100)]
self contained manpage

- print as help too
- other: rename NO -> no in html output

9 years agoexit if no repos found
David Sterba [Mon, 23 Mar 2009 13:50:21 +0000 (14:50 +0100)]
exit if no repos found

9 years agocleanups and fixes
David Sterba [Mon, 23 Mar 2009 13:43:16 +0000 (14:43 +0100)]
cleanups and fixes

- take sysarch from baseproduct or from system (fallback)
- check other installed prods for compatibility
- report baseproduct
- fix some fixmes
- remove unused code

9 years agoupdate changes to rc4 v0.8rc4
David Sterba [Fri, 20 Mar 2009 15:27:59 +0000 (16:27 +0100)]
update changes to rc4

9 years agominor fix to help text
David Sterba [Fri, 20 Mar 2009 15:20:47 +0000 (16:20 +0100)]
minor fix to help text

9 years agoverbosity level for more details
David Sterba [Fri, 20 Mar 2009 13:47:14 +0000 (14:47 +0100)]
verbosity level for more details

- useful for source version/origin list (like SPident did)
- for high levels it prints the boring duplicate file/dir messages

9 years agohtml formating fixes
David Sterba [Fri, 20 Mar 2009 13:01:15 +0000 (14:01 +0100)]
html formating fixes

9 years agoenhance html output
David Sterba [Fri, 20 Mar 2009 12:36:15 +0000 (13:36 +0100)]
enhance html output

split package list into 3 tables:
- our supported
- our unsupported with description
- foreign

prepend sam.report

9 years agorename sam cache directory
David Sterba [Fri, 20 Mar 2009 10:13:47 +0000 (11:13 +0100)]
rename sam cache directory

give it more descriptive name

9 years agooption to skip md5 checks
David Sterba [Fri, 20 Mar 2009 10:11:34 +0000 (11:11 +0100)]
option to skip md5 checks

speeds up run time by about 70%

9 years agoprint per package summary to log always
David Sterba [Fri, 20 Mar 2009 09:51:06 +0000 (10:51 +0100)]
print per package summary to log always

- and make it optional to screen

9 years agoalways create log file
David Sterba [Fri, 20 Mar 2009 09:45:40 +0000 (10:45 +0100)]
always create log file

- non optional creation
- update help string

9 years agocheck freshness of repos
David Sterba [Fri, 20 Mar 2009 09:39:30 +0000 (10:39 +0100)]
check freshness of repos

check timestamps of solv files and repository:timestamp data.
reccommend refresh and print number of old repos

9 years agoMerge branch 'master' of git@git.opensuse.org:projects/supportability-analysis-module
David Sterba [Fri, 20 Mar 2009 09:36:52 +0000 (10:36 +0100)]
Merge branch 'master' of git@git.opensuse.org:projects/supportability-analysis-module

9 years agoupdate reference repos
David Sterba [Fri, 20 Mar 2009 08:40:42 +0000 (09:40 +0100)]
update reference repos

9 years agounify names of config variables
David Sterba [Fri, 20 Mar 2009 08:26:56 +0000 (09:26 +0100)]
unify names of config variables

9 years agooptional skip of repos not matching installed products
David Sterba [Fri, 20 Mar 2009 08:18:46 +0000 (09:18 +0100)]
optional skip of repos not matching installed products

drop experimental status, do not skip by default

9 years agoprint fatal error to screen
David Sterba [Fri, 20 Mar 2009 08:08:30 +0000 (09:08 +0100)]
print fatal error to screen

9 years agominor fixes
David Sterba [Thu, 19 Mar 2009 16:56:44 +0000 (17:56 +0100)]
minor fixes

- do not pass root_dir, it's global
- show satsolver-tools version (repo2solv.sh)
- add --noscript(s) to rpm --verify when not running as root (chroot
  is needed)

9 years agoprebare base infrastructure for studio-based configs
David Sterba [Thu, 19 Mar 2009 15:14:49 +0000 (16:14 +0100)]
prebare base infrastructure for studio-based configs

- extend repo_conf structures
- get_conf is simple, you must specify the dirs directly by --dir ...
- XML::Simple dependency refactored

9 years agoupdate help message
David Sterba [Thu, 19 Mar 2009 00:10:46 +0000 (01:10 +0100)]
update help message

9 years agoselectable repository config schema
David Sterba [Thu, 19 Mar 2009 00:00:36 +0000 (01:00 +0100)]
selectable repository config schema

- put defaults to a hash and let user select by option
zypper is default, "studio" is not yet implemented

9 years agooptional test for: skip repos for not installed products
David Sterba [Wed, 18 Mar 2009 22:57:17 +0000 (23:57 +0100)]
optional test for: skip repos for not installed products

9 years agoskip mismatched arch only for product repos
David Sterba [Wed, 18 Mar 2009 22:53:25 +0000 (23:53 +0100)]
skip mismatched arch only for product repos

- mainly to skip reference data

9 years agomake harmless duplictate files messages optional
David Sterba [Wed, 18 Mar 2009 22:04:22 +0000 (23:04 +0100)]
make harmless duplictate files messages optional

- add an experimental option for that
- and fix one boring bug when checking other root_dir

9 years agoput back listing of verified packages
David Sterba [Wed, 18 Mar 2009 17:10:54 +0000 (18:10 +0100)]
put back listing of verified packages

9 years agoupdate specfiles
David Sterba [Wed, 18 Mar 2009 16:38:56 +0000 (17:38 +0100)]
update specfiles

- add perl-satsolver requirement
- increase release version

9 years agoalways use satsolver
David Sterba [Wed, 18 Mar 2009 16:35:27 +0000 (17:35 +0100)]
always use satsolver

- 'use satsolver;'
- update code accordingly

9 years agocommand line options enhancements
David Sterba [Wed, 18 Mar 2009 09:56:37 +0000 (10:56 +0100)]
command line options enhancements

- new option: directory for log file output
- refactor option parsing
- add --dir key:value general option (unused right now)
- unify report of skipped repos

9 years agoincrease spec version to 4
David Sterba [Mon, 16 Mar 2009 17:08:28 +0000 (18:08 +0100)]
increase spec version to 4

9 years agoskip repos for not installed products
David Sterba [Mon, 16 Mar 2009 17:04:00 +0000 (18:04 +0100)]
skip repos for not installed products

9 years agoattempt to polish package sources output
David Sterba [Mon, 16 Mar 2009 16:32:18 +0000 (17:32 +0100)]
attempt to polish package sources output

- do not check foreign packages
- do not print everything, just serious problems
  eg. update output is shown elsewhere
  is it needed to print that the exact version is available in repo?

9 years agoshake the package version output a bit
David Sterba [Mon, 16 Mar 2009 14:19:35 +0000 (15:19 +0100)]
shake the package version output a bit

9 years agoenhance signature/vendor output
David Sterba [Mon, 16 Mar 2009 10:34:01 +0000 (11:34 +0100)]
enhance signature/vendor output

9 years agooption to specify system arch
David Sterba [Mon, 16 Mar 2009 10:23:08 +0000 (11:23 +0100)]
option to specify system arch

- add option to force sysarch; useful for non-host checks eg. iso images
- match products' sysarch
- updated help string too

9 years agochange output wording, fix number of vendor matched packages
David Sterba [Mon, 16 Mar 2009 09:41:34 +0000 (10:41 +0100)]
change output wording, fix number of vendor matched packages

- broken -> unsatisfied
- if sig checking is off, match only by vendor string and do not
  forget to count

9 years agoupdate output formatting
David Sterba [Mon, 16 Mar 2009 09:24:26 +0000 (10:24 +0100)]
update output formatting

- html: be more specific about file problems
- remove 'rpm: ' from some strings
- print foreign vendor on next line [experimental, may be removed if
  confusing]
- print duplicity verification result only if problem found
- ohter minor fixes

9 years agohtml: show details about problematic packages
David Sterba [Mon, 16 Mar 2009 00:17:06 +0000 (01:17 +0100)]
html: show details about problematic packages

9 years agoimprove html output
David Sterba [Sat, 14 Mar 2009 22:31:14 +0000 (23:31 +0100)]
improve html output

- enhance previous output with details about problems
- other minor fixes

9 years agoremove json completely
David Sterba [Sat, 14 Mar 2009 20:56:10 +0000 (21:56 +0100)]
remove json completely

9 years agocleanups
David Sterba [Sat, 14 Mar 2009 20:54:00 +0000 (21:54 +0100)]
cleanups

- move dependency checker into func
- print cmd output via %s

9 years agoupdate changelogs
David Sterba [Fri, 13 Mar 2009 17:55:42 +0000 (18:55 +0100)]
update changelogs

9 years agoadd SLED and SDK product refdata
David Sterba [Fri, 13 Mar 2009 17:53:08 +0000 (18:53 +0100)]
add SLED and SDK product refdata

9 years agocheck full dependency tree for for foreign packages
David Sterba [Fri, 13 Mar 2009 17:45:34 +0000 (18:45 +0100)]
check full dependency tree for for foreign packages

it's needed to read full dependency tree, even for our packages to test
indirect dependencies.

dep on foreign is counted into unsupportable packages

9 years agominor output polish
David Sterba [Fri, 13 Mar 2009 16:19:13 +0000 (17:19 +0100)]
minor output polish

9 years agodont print 'duplicate directory: harmless'
David Sterba [Fri, 13 Mar 2009 13:23:10 +0000 (14:23 +0100)]
dont print 'duplicate directory: harmless'

it's very common and not really useful to report

9 years agoskip repos with incompatible arch v0.8rc3
David Sterba [Thu, 12 Mar 2009 14:41:17 +0000 (15:41 +0100)]
skip repos with incompatible arch

read arch compatibility table from /usr/lib/rpm/rpmrc

9 years agotimestamp log file names
David Sterba [Thu, 12 Mar 2009 11:02:30 +0000 (12:02 +0100)]
timestamp log file names

create timestamped logfiles by default, add option to disable it

9 years agooption to print per-package summary
David Sterba [Thu, 12 Mar 2009 10:44:16 +0000 (11:44 +0100)]
option to print per-package summary

9 years agobugfixes and cleanups
David Sterba [Wed, 11 Mar 2009 19:32:54 +0000 (20:32 +0100)]
bugfixes and cleanups

bugfixes:
- foreign dependencies were broken. rpm's output was thrown away and
  then hapily parsed -> no foreign deps at all!
- modified duplicate files from foreign packages were wrongly calculated
  as our

cleanups:
- style
- useless comments
- debugging unification

9 years agocount skipped repos
David Sterba [Wed, 11 Mar 2009 16:24:56 +0000 (17:24 +0100)]
count skipped repos

9 years agoenhance repository type check
David Sterba [Wed, 11 Mar 2009 16:06:03 +0000 (17:06 +0100)]
enhance repository type check

- skip non 'yast2' type repos not found in previous steps

9 years agoreorder aurhors a bit
David Sterba [Tue, 10 Mar 2009 15:15:21 +0000 (16:15 +0100)]
reorder aurhors a bit

9 years agopre release bump to 0.8
David Sterba [Tue, 10 Mar 2009 15:10:05 +0000 (16:10 +0100)]
pre release bump to 0.8

- write package changelogs
- update authors

9 years agocleanups
David Sterba [Mon, 9 Mar 2009 17:26:33 +0000 (18:26 +0100)]
cleanups

- moved big functions out fo "main"
- use constants for file types instead of strings
- removed obsolete comments and variables
- style fixes

9 years agofix forgotten argument to file evaluation
David Sterba [Mon, 9 Mar 2009 16:52:58 +0000 (17:52 +0100)]
fix forgotten argument to file evaluation

after refactorization, global var was removed but forgot to pass
the local down

9 years agocode cleanups and output polishing
David Sterba [Mon, 9 Mar 2009 15:19:09 +0000 (16:19 +0100)]
code cleanups and output polishing

- refactored file evaluation ("assess") code
- let duplicate results be verbose
- misc style cleanups

9 years agofind_orphans cleanups
David Sterba [Mon, 9 Mar 2009 12:38:01 +0000 (13:38 +0100)]
find_orphans cleanups

9 years agofurther output polishing v0.8rc2
David Sterba [Fri, 6 Mar 2009 12:54:25 +0000 (13:54 +0100)]
further output polishing

9 years agocleanups
David Sterba [Fri, 6 Mar 2009 12:02:57 +0000 (13:02 +0100)]
cleanups

- fix: report number of changed objects properly
- unify quoting of filenames in log
- show absolute path to reference directory

9 years agocleanups in output code
David Sterba [Fri, 6 Mar 2009 11:48:16 +0000 (12:48 +0100)]
cleanups in output code

9 years agoupdate metadata
David Sterba [Fri, 6 Mar 2009 10:26:34 +0000 (11:26 +0100)]
update metadata

9 years agoprint more reccomendations v0.8rc1
David Sterba [Fri, 6 Mar 2009 01:11:38 +0000 (02:11 +0100)]
print more reccomendations

9 years agoprint summary
David Sterba [Fri, 6 Mar 2009 01:08:01 +0000 (02:08 +0100)]
print summary

9 years agomove package anomalies output after the check
David Sterba [Fri, 6 Mar 2009 00:19:32 +0000 (01:19 +0100)]
move package anomalies output after the check

9 years agoprint package counts earlier
David Sterba [Fri, 6 Mar 2009 00:09:56 +0000 (01:09 +0100)]
print package counts earlier

9 years agoprint repo info earlier
David Sterba [Fri, 6 Mar 2009 00:02:45 +0000 (01:02 +0100)]
print repo info earlier

9 years agoremove unused Log level parameter
David Sterba [Thu, 5 Mar 2009 23:58:23 +0000 (00:58 +0100)]
remove unused Log level parameter

9 years agoremove duplicate info about product
David Sterba [Thu, 5 Mar 2009 23:51:11 +0000 (00:51 +0100)]
remove duplicate info about product

9 years agooutput updates
David Sterba [Thu, 5 Mar 2009 23:41:06 +0000 (00:41 +0100)]
output updates

- file modifications by category
- removed misc obsolete information etc
- removed verbosity options
- coding style improvements

9 years agoupdate report and log outputs
David Sterba [Thu, 5 Mar 2009 11:25:40 +0000 (12:25 +0100)]
update report and log outputs

- move file lists to log
- let gpg output be logged as command

9 years agoadd utility to gather metadata from .isos
David Sterba [Thu, 5 Mar 2009 10:04:11 +0000 (11:04 +0100)]
add utility to gather metadata from .isos

9 years agoseparate logging of executed commands
David Sterba [Thu, 5 Mar 2009 01:10:45 +0000 (02:10 +0100)]
separate logging of executed commands

9 years agoreport output adjustments
David Sterba [Thu, 5 Mar 2009 00:40:49 +0000 (01:40 +0100)]
report output adjustments

9 years agoprint product info early
David Sterba [Thu, 5 Mar 2009 00:24:18 +0000 (01:24 +0100)]
print product info early

9 years agocapture more of rpm -V output and display it
David Sterba [Thu, 5 Mar 2009 00:19:18 +0000 (01:19 +0100)]
capture more of rpm -V output and display it

when rpm -V is run with rpmroot under nonprivileged user, chroot
fails and verify scriptlet fails. this was not reported so far,
now we see the message from rpm. man rpm helps here.

9 years agouse perl carp to report stacktrace on Die
David Sterba [Wed, 4 Mar 2009 23:28:31 +0000 (00:28 +0100)]
use perl carp to report stacktrace on Die

for unknown reason (yet), rpm reports:

2009-03-04 23:24:04 CET: verify: OpenEXR-32bit-1.6.1-83.16.x86_64
2009-03-04 23:24:04 CET: verify: PolicyKit-0.9-14.11.x86_64
FATAL: sam: rpm: unexpected query response:
  /bin/sh: /var/tmp/rpm-tmp.22088: No such file or directory
  sam: rpm: unexpected query response:
  /bin/sh: /var/tmp/rpm-tmp.22088: No such file or directory
at ./sam line 263
main::Die('sam: rpm: unexpected query response:\x{a}
/bin/sh: /var/tmp/rpm-...') called at ./sam line 2017
main::verify_packages('HASH(0xc15d98)',
'HASH(0xc55f30)', 'verify') called at ./sam
 line 2037

9 years agoadd force option to mv command
David Sterba [Wed, 4 Mar 2009 23:17:29 +0000 (00:17 +0100)]
add force option to mv command

9 years agouse perl // operator when appropriate
David Sterba [Wed, 4 Mar 2009 23:04:28 +0000 (00:04 +0100)]
use perl // operator when appropriate

9 years agofurther report updates
David Sterba [Wed, 4 Mar 2009 17:32:18 +0000 (18:32 +0100)]
further report updates

9 years agorestructure report output
David Sterba [Wed, 4 Mar 2009 17:13:30 +0000 (18:13 +0100)]
restructure report output

- remove MSxx strings
- references to old README document

9 years agoregex transformations
David Sterba [Wed, 4 Mar 2009 15:41:12 +0000 (16:41 +0100)]
regex transformations

9 years agoMerge branch 'master' of git@git.opensuse.org:projects/supportability-analysis-module
David Sterba [Wed, 4 Mar 2009 12:47:50 +0000 (13:47 +0100)]
Merge branch 'master' of git@git.opensuse.org:projects/supportability-analysis-module

9 years agoadd metadata for other archs
David Sterba [Wed, 4 Mar 2009 12:47:31 +0000 (13:47 +0100)]
add metadata for other archs

9 years agocmdline option for reference data
David Sterba [Wed, 4 Mar 2009 10:30:00 +0000 (11:30 +0100)]
cmdline option for reference data

9 years agoadd package metadata for sle11-x86_64
David Sterba [Wed, 4 Mar 2009 08:27:21 +0000 (09:27 +0100)]
add package metadata for sle11-x86_64

9 years agoupdate log levels
David Sterba [Tue, 3 Mar 2009 16:53:29 +0000 (17:53 +0100)]
update log levels

9 years agorework log levels
David Sterba [Tue, 3 Mar 2009 15:41:19 +0000 (16:41 +0100)]
rework log levels

reorder log levels and do first approach to better output

9 years agostyle cleanups
David Sterba [Tue, 3 Mar 2009 10:14:47 +0000 (11:14 +0100)]
style cleanups

- variable names
- regexps
- fixmes