[zypp-devel] Patches and handling package addition/removal
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+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
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, ma@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+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
On Thu, Jul 25, 2013 at 10:30:15PM +0000, 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 mls@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+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
On 26/07/2013 07:39, "Michael Schroeder" <mls@suse.de> wrote:
On Thu, Jul 25, 2013 at 10:30:15PM +0000, 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 mls@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+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
On Fri, Jul 26, 2013 at 06:32:12PM +0000, Nashif, Anas wrote:
On 26/07/2013 07:39, "Michael Schroeder" <mls@suse.de> wrote:
On Thu, Jul 25, 2013 at 10:30:15PM +0000, 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 mls@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+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org
participants (3)
-
Michael Andres
-
Michael Schroeder
-
Nashif, Anas