Mailinglist Archive: zypp-devel (42 mails)
| < Previous | Next > |
Re: [zypp-devel] reading file lists from metadata
- From: Jiri Srain <jsrain@xxxxxxx>
- Date: Fri, 27 Apr 2007 13:41:46 +0200
- Message-id: <200704271341.49324.jsrain@xxxxxxx>
Dne pátek 27 duben 2007 13:30 Klaus Kaempf napsal(a):
> * Jiri Srain <jsrain@xxxxxxx> [Apr 27. 2007 13:26]:
> > I'm not sure I understand the question properly, but is the possiblity
> > that the packages are in different files in different order the answer
> > for you?
> >
> > Another quetsion: How will libxml behave if you parse three files
> > simulatenously? (primary.xml, other.xml, filelist.xml)
>
> Huh ? Why should one do that ?
See below.
> And why is order important ?
>
> Parse primary first, read one package, write one package.
> Then other.
Find each package in the database, modify it. I thought that was what Jano
wanted to avoid.
Jiri
> Then filelist.
>
> If there is a package in primary with no data in other or filelist, it
> will have incomplete attributes. This shouldn't harm.
>
> If there is a package in either other or filelist, but without
> representation in primary, log a warning and continue.
>
>
> Klaus
--
Regards,
Jiri Srain
YaST Team Leader
---------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: jsrain@xxxxxxx
Lihovarska 1060/12 tel: +420 284 028 959
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz
> * Jiri Srain <jsrain@xxxxxxx> [Apr 27. 2007 13:26]:
> > I'm not sure I understand the question properly, but is the possiblity
> > that the packages are in different files in different order the answer
> > for you?
> >
> > Another quetsion: How will libxml behave if you parse three files
> > simulatenously? (primary.xml, other.xml, filelist.xml)
>
> Huh ? Why should one do that ?
See below.
> And why is order important ?
>
> Parse primary first, read one package, write one package.
> Then other.
Find each package in the database, modify it. I thought that was what Jano
wanted to avoid.
Jiri
> Then filelist.
>
> If there is a package in primary with no data in other or filelist, it
> will have incomplete attributes. This shouldn't harm.
>
> If there is a package in either other or filelist, but without
> representation in primary, log a warning and continue.
>
>
> Klaus
--
Regards,
Jiri Srain
YaST Team Leader
---------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: jsrain@xxxxxxx
Lihovarska 1060/12 tel: +420 284 028 959
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz
| < Previous | Next > |