From b374812f011ae1cd18445afa29c5c74cf59da7b8 Mon Sep 17 00:00:00 2001 From: theli Date: Wed, 21 Mar 2007 13:09:12 +0000 Subject: [PATCH] *) adding rpm packager as author git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3498 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/parser/rpm/rpmParser.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/de/anomic/plasma/parser/rpm/rpmParser.java b/source/de/anomic/plasma/parser/rpm/rpmParser.java index 6d84aebf3..383bc3613 100644 --- a/source/de/anomic/plasma/parser/rpm/rpmParser.java +++ b/source/de/anomic/plasma/parser/rpm/rpmParser.java @@ -109,7 +109,7 @@ public class rpmParser extends AbstractParser implements Parser { public plasmaParserDocument parse(URL location, String mimeType, String charset, File sourceFile) throws ParserException, InterruptedException { RPMFile rpmFile = null; try { - String summary = null, description = null, name = sourceFile.getName(); + String summary = null, description = null, packager = null, name = sourceFile.getName(); HashMap anchors = new HashMap(); StringBuffer content = new StringBuffer(); @@ -134,11 +134,11 @@ public class rpmParser extends AbstractParser implements Parser { .append(tag.toString()) .append("\n"); - if (headerNames[i].equals("N")) name = tag.toString(); - else if (headerNames[i].equals("SUMMARY")) summary = tag.toString(); - else if (headerNames[i].equals("DESCRIPTION")) description = tag.toString(); - else if (headerNames[i].equals("URL")) anchors.put(tag.toString(), tag.toString()); - + if (headerNames[i].equalsIgnoreCase("N")) name = tag.toString(); + else if (headerNames[i].equalsIgnoreCase("SUMMARY")) summary = tag.toString(); + else if (headerNames[i].equalsIgnoreCase("DESCRIPTION")) description = tag.toString(); + else if (headerNames[i].equalsIgnoreCase("PACKAGER")) packager = tag.toString(); + else if (headerNames[i].equalsIgnoreCase("URL")) anchors.put(tag.toString(), tag.toString()); } // closing the rpm file @@ -152,7 +152,7 @@ public class rpmParser extends AbstractParser implements Parser { "UTF-8", null, summary, - "", // TODO: AUTHOR + packager, null, description, content.toString().getBytes("UTF-8"),