Mailinglist Archive: opensuse-buildservice (253 mails)

< Previous Next >
Re: [opensuse-buildservice] more newby questions: project / package structure?
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Mon, 20 Nov 2006 12:36:42 +0100
  • Message-id: <20061120113642.GC28283@xxxxxxx>
On Sat, Nov 18, 2006 at 12:23:58AM +0100, Thomas Anders wrote:
> Michael Schroeder wrote:
> > On Fri, Sep 22, 2006 at 01:45:30PM +0200, Thomas Anders wrote:
> >> Michael Schroeder wrote:
> >>> I'm just preparing a patch that makes the build service look for
> >>> <package-name>-<repository-name>.spec if a package contains multiple
> >>> specfiles. So you can have a different specfile for every repository.
> >> Excellent news! Please drop us a line when this is available.
> >
> > Should work now.
>
> Assumed I have <package-name>-<repo1>.spec and <package-name>.spec, will all
> repositories other than <repo1> use <package-name>.spec or will I have to submit
> dedicated <package-name>-<repository-name>.spec files for *each* of them?

Looks like you need a spec file for each of them, currently, as the
code returns an error if the spec file selection is ambiguous.

Maybe I should just sort them and return the first match? I.e.:

1) get a list of all spec files starting with <package-name>-<repo>,
sort them, if the list is not empty, return first entry.

2) get a list of all spec files starting with <package-name>,
sort them, if the list is not empty, return first entry.

3) get a list of all spec files,
sort them, if the list is not empty, return first entry.

Is that a good idea?

Thanks,
Michael.

--
Michael Schroeder mls@xxxxxxx
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
References