rpm: print a warning if importing gbp-specific librpm fails
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 19 Aug 2013 07:00:35 +0000 (10:00 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 5 Jun 2014 11:20:07 +0000 (14:20 +0300)
Fixes: #1177

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/rpm/lib_rpm.py

index 72a7671..adf40d1 100644 (file)
@@ -25,9 +25,9 @@ try:
     # Try to load special RPM lib to be used for GBP (only)
     librpm = __import__(RpmPkgPolicy.python_rpmlib_module_name)
 except ImportError:
-    gbp.log.debug("Failed to import '%s' as rpm python module, using host's "
-                  "default rpm library instead" %
-                  RpmPkgPolicy.python_rpmlib_module_name)
+    gbp.log.warn("Failed to import '%s' as rpm python module, using host's "
+                    "default rpm library instead" %
+                    RpmPkgPolicy.python_rpmlib_module_name)
     import rpm as librpm
 
 # Module initialization