Lukas Durfina wrote:
  I have problem with uploading info about packages to spacewalk. Spacewalk
accepts only some types of architectures, problem is accepting architecture "all",
because spacewalk knows only equivalent "noarch".
  I see 2 possible solutions:
    - change type of architecture from "all" to "noarch" before uploading
    - patch spacewalk to accept architecture "all"

  Can you help me choose the better solution?


Change of all to noarch will be very easy, but I think it will bite us later.
Patching spacewalk to accept architecture of all is IMO propper way.
I gave it 5 minutes to study and it seems there will be no need to change the code (at least backend) and it should be enough to only insert few rows to some tables.

According to my findings it should be enough to insert new rows into
 rhnChannelPackageArchCompat.sql
new row to
 rhnPackageArch
with reference to lookup_arch_type('rpm'), which means new row in
  rhnArchType
new row to:
  rhnServerPackageArchCompat

And if we gave debian systems new server_arch, like solaris have we we only enable to use all architecture for debian systems and not for rpm systems.
I would vote for i386-debian-linux and amd64-debian-linux and so on.

--
Miroslav Suchy
Red Hat Satellite Engineering

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to