Mailinglist Archive: opensuse-factory (757 mails)

< Previous Next >
Re: [opensuse-factory] Adding *.sel to an installation source
  • From: "Ulrich Windl" <ulrich.windl@xxxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 19 May 2006 12:12:25 +0200
  • Message-id: <446DB61E.16829.610670A@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On 19 May 2006 at 10:49, houghi wrote:

> On Mon, May 15, 2006 at 08:04:21AM +0200, houghi wrote:
> > For a future version I want to add a Personal.sel to the intsallation. For
> > one reason or another it is not picked up by YaST during the installation,
> > so I am unable to select it.
> >
> > What I did was copy /suse/setup/descr/Games-10.1-67.noarch.sel to
> > /suse/setup/descr/Personal-10.1-67.noarch.sel and then changed all "Games"
> > in the file to "Personal".
> >
> > Next I added the line Personal-10.1-63.noarch.sel to
> > suse/setup/descr/selections
> >
> > However when I edit suse/setup/descr/selections I get the `no catalog
> > found at ...` error, so I suppose it needs to be signed somewhere. However
> > the only two *.key files are re-signed, so what am I missing?
>
> OK. I found what the problem seemed to be. The problem was that Yast did
> not know where to place something. Changing the "=Ord: " to a number that
> was NOT used solved the problem. I need to do some more testing to see how
> to implement it. and what can gow wrong. As this was not documented,
> perhaps other features are also not documented.
>
> My question now to SUSE: is there a number that is reserved for "=Ord: ",
> like "=Ord: 99" for endusers where we know that it won't be used by SUSE
> itself.
>

In awk something like this:
awk 'BEGIN { FREE=0 }
/^=Ord:/ { if ($2 > FREE) FREE=$2 }
END { print "next available ord is", FREE + 1 }' *.sel

[...]

Ulrich
P.S. My awk knowledge is a bit rusty...

< Previous Next >
Follow Ups
References