jRPM fails to parse AIX rpms

Rob Oxspring <[email protected]> Thu, 02 Nov 2006 12:12:17 +0000
Newsgroups gmane.comp.java.jrpm.devel
Message-ID <[email protected]>
Hi,

We've found that jRPM fails to parse a bunch of rpm files for AIX since
the rpm files are coming out as LeadOS.UNKNOWN which fails the checks.
While I'm not entirely sure why IBM haven't filled in the os type
correctly, I also don't think that it should be an error to have an
unknown OS or architecture specified in the rpm.  Our vendor branch
(based on the 0.8Beta release) has the following patch applied and I
think it would make sense for the jRPM repository to do the same:

Index: src/java/com/jguild/jrpm/io/RPMLead.java
===================================================================
--- src/java/com/jguild/jrpm/io/RPMLead.java    (revision 46411)
+++ src/java/com/jguild/jrpm/io/RPMLead.java    (revision 46412)
@@ -103,13 +103,6 @@

             check(major < 5);
             check(!type.equals(LeadType.UNKNOWN));
-
-            // Ignore os and arch for source rpms
-            if (!type.equals(LeadType.SOURCE)) {
-                check(!os.equals(LeadOS.UNKNOWN));
-                check(!arch.equals(LeadArchitecture.UNKNOWN));
-            }
-
             check(!sigType.equals(LeadType.UNKNOWN));
         } finally {
             if (logger.isDebugEnabled()) {


The suspect rpm files were downloaded from:
http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html

Hope you find that helpful, keep up the good work!

Rob

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642