Libzypp/ZMD/ZMD7.1/helpers/transact

< Libzypp‎ | ZMD‎ | ZMD7.1‎ | helpers
Şuraya atla: kullan, ara

transact

  • transact

Syntax:

transact <database> [--test] [--nosignature]

As the helper name indicates, transact. Available packages are read from packages table. Proposed changes are read from the transactions table.

If --test is passed a dry-run is done by calling rpm with --test.
If --nosignature is passed, no signature checking on rpms is done.
If --nopretest is passed, run all transactions in dry run mode (rpm --test) first and if that succeeds, then run the actual transaction. The new flag disables the initial dry run transaction run by zmd. There's a preference in zmd (run-transaction-test) to turn that behavior off.

Progress reporting is written to standard output and the format depends on the type of the progress message. Below is the full list.

All warnings and errors are written to standard error using the common messaging format defined below. The helper returns 0 on success and anything else in case of failure.

transact messages

Transaction start message: total steps(int)
Transaction step message: (see below !) sequence number(int)|step(int)|message(string)
Transaction progress step message: amount(int)|total(int)
Transaction failure message: message(string)
Transaction done message: 4
Verifying signature message(string)
Media request message: <medianr>|<cdlabel>


The transact helper exits after issuing a media request message. zmd is supposed to restart transact after the user confirmed the CD change.

The term transcation step refers to librpm internals and is defined as follows:

1 - preparing
2 - installing
3 - removing
4 - configuring

See here for an example of the transact output.

back ...

Last edit in Trac '04/13/06 17:52:10' by 'kkaempf'


Last edit in Trac '04/13/06 17:52:10' by 'kkaempf'


Last edit in Trac '04/13/06 17:52:10' by 'kkaempf'


Last edit in Trac '04/13/06 17:52:10' by 'kkaempf'