aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-06-15 20:00:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-06-15 20:00:49 +0000
commitd56ee13624590129c49ed2424c1ee2814837e560 (patch)
tree08ca8f09a6659b252a3d25da7eecd102624bfeaa
parentf84bdb6106e4009f4cd32ee1f4a43bc397d12ef2 (diff)
downloadperl-URPM-d56ee13624590129c49ed2424c1ee2814837e560.tar
perl-URPM-d56ee13624590129c49ed2424c1ee2814837e560.tar.gz
perl-URPM-d56ee13624590129c49ed2424c1ee2814837e560.tar.bz2
perl-URPM-d56ee13624590129c49ed2424c1ee2814837e560.tar.xz
perl-URPM-d56ee13624590129c49ed2424c1ee2814837e560.zip
document the fact that build_synthesis returns true on success
-rw-r--r--URPM/Build.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/URPM/Build.pm b/URPM/Build.pm
index 66de723..72df420 100644
--- a/URPM/Build.pm
+++ b/URPM/Build.pm
@@ -445,6 +445,7 @@ sub build_hdlist {
#- end : index of last package (defaults to last index of depslist).
#- idlist : id list of rpm to compute (defaults is start .. end)
#- ratio : compression ratio (default 9).
+#- returns true on success
sub build_synthesis {
my ($urpm, %options) = @_;
my ($ratio, @idlist);
@@ -477,7 +478,7 @@ sub build_synthesis {
$pkg->build_info($options{synthesis} ? fileno $fh : $options{fd}, join('@', keys %files));
}
- close $fh;
+ close $fh; # returns true on success
}
#- write depslist.ordered file according to info in params.