[Lsb-messages] /var/www/bzr/lsb/devel/app-checker r46: Check presence of rpm, rpm2cpio and dpkg

Denis Silakov dsilakov at gmail.com
Thu Mar 20 20:23:18 UTC 2014


------------------------------------------------------------
revno: 46
committer: Denis Silakov <dsilakov at gmail.com>
branch nick: app-checker
timestamp: Fri 2014-03-21 00:23:18 +0400
message:
  Check presence of rpm, rpm2cpio and dpkg
modified:
  webui/public_html/tests_conf.pl
-------------- next part --------------
=== modified file 'webui/public_html/tests_conf.pl'
--- a/webui/public_html/tests_conf.pl	2012-09-05 20:29:20 +0000
+++ b/webui/public_html/tests_conf.pl	2014-03-20 20:23:18 +0000
@@ -139,7 +139,19 @@
 }
 
 if (system('readelf --help >/dev/null 2>&1') != 0) {
-	push @error_msg, "Can't find <b>readelf</b>. This utility is required for application analysis.<br />It is usually a part of the <b>binutils</b> package. Please install it first.";
+        push @error_msg, "Can't find <b>readelf</b>. This utility is required for application analysis.<br />It is usually a part of the <b>binutils</b> package. Please install it first.";
+}
+
+if (system('rpm --help >/dev/null 2>&1') != 0) {
+        push @warn_msg, "Can't find <b>rpm</b>. This utility is required for analysis of RPM packages.<br />Please install it first if you want to analyze RPM files.";
+}
+
+if (system('type rpm2cpio >/dev/null 2>&1') != 0) {
+        push @warn_msg, "Can't find <b>rpm2cpio</b>. This utility is required for analysis of RPM packages.<br />Please install it first if you want to analyze RPM files.";
+}
+
+if (system('dpkg --help >/dev/null 2>&1') != 0) {
+        push @warn_msg, "Can't find <b>dpkg</b>. This utility is required for analysis of Deb packages.<br />Please install it first if you want to analyze Deb files.";
 }
 
 if ($_COOKIE{'last_error_text'}) {



More information about the lsb-messages mailing list