diff options
author | Matt Wilson <msw@redhat.com> | 2001-03-23 02:01:42 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-03-23 02:01:42 +0000 |
commit | 64b6b1d78e1171cf0c47f953c67f12ed15fc7aa8 (patch) | |
tree | 2ac26efdc2bed217a68d4e472f20781b0c32b4ae | |
parent | 2ca49b701691b252c005a896fff0691aba77dfc6 (diff) | |
download | anaconda-64b6b1d78e1171cf0c47f953c67f12ed15fc7aa8.tar.gz anaconda-64b6b1d78e1171cf0c47f953c67f12ed15fc7aa8.tar.xz anaconda-64b6b1d78e1171cf0c47f953c67f12ed15fc7aa8.zip |
log more info about dependencies
-rw-r--r-- | todo.py | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -1031,6 +1031,22 @@ class ToDo: out.write (inf.read ()) def verifyDeps (self): + def formatRequire (name, version, flags): + string = name + + if flags: + if flags & (rpm.RPMSENSE_LESS | rpm.RPMSENSE_GREATER | + rpm.RPMSENSE_EQUAL): + string = string + " " + if flags & rpm.RPMSENSE_LESS: + string = string + "<" + if flags & rpm.RPMSENSE_GREATER: + string = string + ">" + if flags & rpm.RPMSENSE_EQUAL: + string = string + "=" + string = string + " %s" % version + return string + # if we still have the same packages selected, bail - we don't need to # do this again. if self.verifiedState == self.comps.getSelectionState()[1]: @@ -1067,7 +1083,12 @@ class ToDo: if sense == rpm.RPMDEP_SENSE_REQUIRES: if suggest: (header, sugname) = suggest + log ("depcheck: package %s needs %s (provided by %s)", + name, formatRequire(reqname, reqversion, flags), + sugname) else: + log ("depcheck: package %s needs %s (not provided)", + name, formatRequire(reqname, reqversion, flags)) sugname = _("no suggestion") if not (name, sugname) in rc: rc.append ((name, sugname)) |