#2537 lib: detect non-installed rpm lib
Merged 3 years ago by tkopecek. Opened 3 years ago by tkopecek.
tkopecek/koji issue2536  into  master

file modified
+3
@@ -1855,6 +1855,9 @@ 

  def _check_rpm_file(fo):

      """Check that the open file appears to be an rpm"""

      # TODO: trap exception and raise something with more infomation

+     if rpm is None:

+         logging.warning("python-rpm is not installed, file will not be checked")

+         return

      ts = rpm.TransactionSet()

      # for basic validity we can ignore sigs as there needn't be public keys installed

      ts.setVSFlags(rpm._RPMVSF_NOSIGNATURES)

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

3 years ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

3 years ago

Commit 846a903 fixes this pull-request

Pull-Request has been merged by tkopecek

3 years ago
Metadata