From 42450dc258234628ece1e4f5354462571e43a6d6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 5 Oct 2017 12:42:18 +0200 Subject: fix doc --- RPM4/NEWS | 1 + RPM4/lib/RPM4/Transaction.pm | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 15 deletions(-) (limited to 'RPM4') diff --git a/RPM4/NEWS b/RPM4/NEWS index 9c5c352..1be37a9 100644 --- a/RPM4/NEWS +++ b/RPM4/NEWS @@ -1,4 +1,5 @@ - fix running rpm_produced +- improve doc - testsuite: o disable tests that involve a pasphrase diff --git a/RPM4/lib/RPM4/Transaction.pm b/RPM4/lib/RPM4/Transaction.pm index a2ff88e..44f6367 100644 --- a/RPM4/lib/RPM4/Transaction.pm +++ b/RPM4/lib/RPM4/Transaction.pm @@ -42,7 +42,7 @@ __END__ =head1 NAME -Hdlist::Db +RPM4::Transaction =head1 DESCRIPTION @@ -51,7 +51,7 @@ system. =head1 METHODS -=head2 Hdlist::Db->traverse_headers(sub) +=head2 RPM4::Transaction->traverse_headers(sub) Go through the rpm database and for each header run the callback passed as argument. @@ -65,21 +65,21 @@ Ex: }); -=head2 Hdlist::Db->injectheader($header) +=head2 RPM4::Transaction->injectheader($header) Add the header into rpmdb. This is not installing a package, the function only fill information into the rpmdb. Return 0 on success. -=head2 Hdlist::Db->deleteheader($index) +=head2 RPM4::Transaction->deleteheader($index) Remove header from rpmdb locate at $index. This is not uninstalling a package, this function only delete information from rpmdb. Return 0 on success -=head2 Hdlist::Db->transadd(header, filename, upgrade, relocation, force) +=head2 RPM4::Transaction->transadd(header, filename, upgrade, relocation, force) Add rpm headers for next transaction. This means this rpm are going to be installed on the system. @@ -94,9 +94,9 @@ of course match the header, Returns 0 on success. -See: $Hdlist::Db->transcheck(), $Hdlist::Db->transrun(). +See: $RPM4::Transaction->transcheck(), $RPM4::Transaction->transrun(). -=head2 Hdlist::Db->transremove(rpm_name) +=head2 RPM4::Transaction->transremove(rpm_name) Add rpm to remove for next transaction. This mean the rpm will be uninstalled from the system. @@ -105,25 +105,25 @@ Argument is the exact rpm name (%{NAME}) or a string as NAME(EPOCH:VERSION-RELEA Returns the number of selected rpms for this transaction. -=head2 Hdlist::Db->transcheck() +=head2 RPM4::Transaction->transcheck() Check current transaction is possible. Returns 0 on success, 1 on error during check. -=head2 Hdlist::Db->transorder() +=head2 RPM4::Transaction->transorder() Call to rpmlib to order the transaction, aka sort rpm installation / desintallation. Returns 0 on success. -=head2 Hdlist::Db->transpb +=head2 RPM4::Transaction->transpb -Return an array of problem found during Ltranscheck> or -Ltransrun> +Return an array of problem found during Ltranscheck> or +Ltransrun> -=head2 Hdlist::Db->transrun($callback, $flags...) +=head2 RPM4::Transaction->transrun($callback, $flags...) Really run transaction and install/uninstall packages. @@ -185,10 +185,10 @@ Returns 0 on success. =head2 $db->transpbs -Return a Hdlist::Db::Problems object containing problem found during +Return a RPM4::Transaction::Problems object containing problem found during rpms installation/desinstallation. -See L +See L =head1 SEE ALSO -- cgit v1.2.1