diff --git a/src/backend/rpm/biz-rpm/src/main/kotlin/com/tencent/bkrepo/rpm/artifact/repository/RpmLocalRepository.kt b/src/backend/rpm/biz-rpm/src/main/kotlin/com/tencent/bkrepo/rpm/artifact/repository/RpmLocalRepository.kt index 7eeb794d74..561b40972e 100644 --- a/src/backend/rpm/biz-rpm/src/main/kotlin/com/tencent/bkrepo/rpm/artifact/repository/RpmLocalRepository.kt +++ b/src/backend/rpm/biz-rpm/src/main/kotlin/com/tencent/bkrepo/rpm/artifact/repository/RpmLocalRepository.kt @@ -304,8 +304,10 @@ class RpmLocalRepository( return } NONE, FULLPATH -> { + val xmlStr = XmlStrUtils.toMarkFileXml(rpmXmlMetadata!!, indexType) + logger.info("xmlStr content is $xmlStr") ArtifactFileFactory.build( - ByteArrayInputStream(XmlStrUtils.toMarkFileXml(rpmXmlMetadata!!, indexType).toByteArray()) + ByteArrayInputStream(xmlStr.toByteArray()) ) } else -> {