Re: [zypp-devel] Patches and handling package addition/removal

2013-07-29 Thread Michael Schroeder
On Fri, Jul 26, 2013 at 06:32:12PM +, Nashif, Anas wrote:
> 
> 
> On 26/07/2013 07:39, "Michael Schroeder"  wrote:
> 
> >On Thu, Jul 25, 2013 at 10:30:15PM +, Nashif, Anas wrote:
> >> when using patches, how can one add packages to be installed on the
> >>system (that were not installed before) or remove packages?
> >> I understand this can be done in packages directly by either adding
> >>dependencies to other packages or obsoleting package, but is there some
> >>other way to do it?
> >
> >Dependency wise, patches are just solvables, so they can contain requires
> >and conflicts. But patches are generated from the data in updateinfo.xml,
> >and that therefore can only update installed packages.
> 
> aha, so is it a limitation in the updateinfo.xml? Where can you add
> requires and conflicts to a patch otherwise?

Well, you can't. You need to extend the updateinfo.xml parser to
do such things.

Cheers,
  Michael.

-- 
Michael Schroeder   m...@suse.de
SUSE LINUX Products GmbH,  GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
-- 
To unsubscribe, e-mail: zypp-devel+unsubscr...@opensuse.org
To contact the owner, e-mail: zypp-devel+ow...@opensuse.org



Re: [zypp-devel] Patches and handling package addition/removal

2013-07-26 Thread Nashif, Anas


On 26/07/2013 07:39, "Michael Schroeder"  wrote:

>On Thu, Jul 25, 2013 at 10:30:15PM +, Nashif, Anas wrote:
>> when using patches, how can one add packages to be installed on the
>>system (that were not installed before) or remove packages?
>> I understand this can be done in packages directly by either adding
>>dependencies to other packages or obsoleting package, but is there some
>>other way to do it?
>
>Dependency wise, patches are just solvables, so they can contain requires
>and conflicts. But patches are generated from the data in updateinfo.xml,
>and that therefore can only update installed packages.

aha, so is it a limitation in the updateinfo.xml? Where can you add
requires and conflicts to a patch otherwise?

>
>(You can somewhat do removals of packages by having packages in
>updateinfo.xml
>that do not exist in the repository. But that is a hack.)

I see.

Anas


>
>Cheers,
>  Michael.
>
>-- 
>Michael Schroeder   m...@suse.de
>SUSE LINUX Products GmbH,  GF Jeff Hawn, HRB 16746 AG Nuernberg
>main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}

--
To unsubscribe, e-mail: zypp-devel+unsubscr...@opensuse.org
To contact the owner, e-mail: zypp-devel+ow...@opensuse.org



Re: [zypp-devel] Patches and handling package addition/removal

2013-07-26 Thread Michael Schroeder
On Thu, Jul 25, 2013 at 10:30:15PM +, Nashif, Anas wrote:
> when using patches, how can one add packages to be installed on the system 
> (that were not installed before) or remove packages?
> I understand this can be done in packages directly by either adding 
> dependencies to other packages or obsoleting package, but is there some other 
> way to do it?

Dependency wise, patches are just solvables, so they can contain requires
and conflicts. But patches are generated from the data in updateinfo.xml,
and that therefore can only update installed packages.

(You can somewhat do removals of packages by having packages in updateinfo.xml
that do not exist in the repository. But that is a hack.)

Cheers,
  Michael.

-- 
Michael Schroeder   m...@suse.de
SUSE LINUX Products GmbH,  GF Jeff Hawn, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
-- 
To unsubscribe, e-mail: zypp-devel+unsubscr...@opensuse.org
To contact the owner, e-mail: zypp-devel+ow...@opensuse.org



Re: [zypp-devel] Patches and handling package addition/removal

2013-07-26 Thread Michael Andres
On Friday 26 July 2013 00:30:15 Nashif, Anas wrote:
> when using patches, how can one add packages to be installed on the system
> (that were not installed before) or remove packages? 

You can't do this with a patch.

A patch just updates already installed packages. 
Everything else needs to be expressed on package level.

-- 

cu,
Michael Andres

+--+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862  27AC 3FB8 9E3A 27C6 B0E4
+--+
Michael Andres   SUSE LINUX Products GmbH, Development,   m...@suse.de
GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg) 
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+--+
--
To unsubscribe, e-mail: zypp-devel+unsubscr...@opensuse.org
To contact the owner, e-mail: zypp-devel+ow...@opensuse.org



[zypp-devel] Patches and handling package addition/removal

2013-07-25 Thread Nashif, Anas
Hi
when using patches, how can one add packages to be installed on the system 
(that were not installed before) or remove packages?
I understand this can be done in packages directly by either adding 
dependencies to other packages or obsoleting package, but is there some other 
way to do it?


Anas
--
To unsubscribe, e-mail: zypp-devel+unsubscr...@opensuse.org
To contact the owner, e-mail: zypp-devel+ow...@opensuse.org