Mailinglist Archive: opensuse-buildservice (253 mails)

< Previous Next >
Re: [opensuse-buildservice] more newby questions: project / package structure?
  • From: Marcus Rueckert <mrueckert@xxxxxxx>
  • Date: Mon, 20 Nov 2006 12:51:07 +0100
  • Message-id: <20061120115107.GQ13041@xxxxxxx>
On 2006-11-20 12:36:42 +0100, Michael Schroeder wrote:
> On Sat, Nov 18, 2006 at 12:23:58AM +0100, Thomas Anders wrote:
> > 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?

i think searching for <package-name>-<repo>.spec should be enough.
my proposal would be

1. look for <package-name>-<repo>.spec
2. look for <package-name>.spec
3. error out.

you can still glob for all specfiles starting with either
<package-name>-<repo> or <package-name>. but i would error out if the
list is longer than 2.

darix

--
openSUSE - SUSE Linux is my linux
openSUSE is good for you
www.opensuse.org
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >