openSUSE / obs-service-download_files

An OBS source service: download files
GNU General Public License v2.0
8 stars 23 forks source link

Specify architecture in configuration #11

Open AlexTalker opened 8 years ago

AlexTalker commented 8 years ago

Some distributions(like Arch Linux) have special variables for source files in recipes, so better solution could be specify target architecture for build call in this and similar services. Currently arch property is undef so build can't properly decide which sources you really need(which could be, for example, binary and have the same result name'). Please, fix it.

AlexTalker commented 8 years ago

As definition of Build::show says:

sub show {
  my ($conffile, $fn, $field, $arch) = @ARGV;
  my $cf = read_config($arch, $conffile);

You just can specify architecture as last argument. I could do PR by myself but I need your help for properly integration with OBS service usage.