Mailinglist Archive: zypp-devel (64 mails)
| < Previous | Next > |
[zypp-devel] OS identifier for repositories
- From: Jan Kupec <jkupec@xxxxxxx>
- Date: Thu, 31 Jul 2008 11:32:00 +0200
- Message-id: <48918690.90808@xxxxxxx>
Hi,
in order to support repository index services (NU type), we need to introduce a function returning an identifier of the OS. Zypp will use this to filter corresponding repositories from the repo index.
Currently we use OSName-arch (e.g. sles-10-x86_64). No problem to get the arch, but how to get the OSName? Do we store this somewhere?
As for the interface, i suggest to place the functions to ZConfig:
/** autodetected OS Id */
ZConfig::defaultSystemId();
/** OS Id zypp uses */
ZConfig::SystemId();
/** Override the zypp OS Id. */
void setSystemId( const std::string sysname_r, const Arch & arch_r );
/** Reset the zypp OS Id to the default. */
void resetSystemId();
maybe also(?)
ZConfig::defaultSystemName();
ZConfig::SystemName();
...
cheers,
jano
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
in order to support repository index services (NU type), we need to introduce a function returning an identifier of the OS. Zypp will use this to filter corresponding repositories from the repo index.
Currently we use OSName-arch (e.g. sles-10-x86_64). No problem to get the arch, but how to get the OSName? Do we store this somewhere?
As for the interface, i suggest to place the functions to ZConfig:
/** autodetected OS Id */
ZConfig::defaultSystemId();
/** OS Id zypp uses */
ZConfig::SystemId();
/** Override the zypp OS Id. */
void setSystemId( const std::string sysname_r, const Arch & arch_r );
/** Reset the zypp OS Id to the default. */
void resetSystemId();
maybe also(?)
ZConfig::defaultSystemName();
ZConfig::SystemName();
...
cheers,
jano
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |