reneeb / OPM-Maker

Build and test packages for ticketsystems.
6 stars 7 forks source link

Wrong file entries in generated xml #6

Closed rkaldung closed 3 years ago

rkaldung commented 3 years ago

I experienced wrong file names for the OPM in the generated XML:

Steps to reproduce

mkdir repo
cd repo
https://download.znuny.org/releases/packages/Survey-6.0.21.opm
opmbuild index . > repo.xml

This is the generated xml

<?xml version="1.0" encoding="utf-8" ?>
<otrs_package_list version="1.0">
<Package>
  <Name>Survey</Name>
  <Version>6.0.21</Version>
  <ChangeLog Version="6.0.21" Date="2021-03-10 15:19:29 +0100">
    Added missing HTML filter.
  </ChangeLog>
  <Framework Minimum="6.0.26">6.0.x</Framework>
  <Vendor>Znuny GmbH</Vendor>
  <URL>https://znuny.com/</URL>
  <License>GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007</License>
  <Description Lang="en">A customer survey tool.</Description>
  <Description Lang="de">Tool für Kundenumfragen.</Description>
  <Description Lang="es">Una herramienta de encuestas a clientes.</Description>
  <Description Lang="hu">Egy ügyfélkérdőív eszköz.</Description>
  <Filelist>
    <FileDoc Permission="660" Location="doc/survey-database.png"/>
    <FileDoc Permission="660" Location="doc/en/Survey_en.pdf"/>
  </Filelist>
  <File>Survey-60.21.opm</File>
</Package>
</otrs_package_list>

This happens only if I use . for the current directory. A workaround look like this:

opmbuild index "$(pwd)" > repo.xml
reneeb commented 3 years ago

This is fixed with 28432da and is shipped as version 0.18. The new version should be visible on CPAN in a few minutes...