aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-22 14:14:34 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-22 14:14:34 +0000
commit30789fabed29489bb3b774c62b7283abf021294a (patch)
tree8ceb84c6a117ca2624b0b47a2e384562ccffb195
parent303c1a457e142968d06ac966705dfc58dca32e44 (diff)
downloadperl-URPM-30789fabed29489bb3b774c62b7283abf021294a.tar
perl-URPM-30789fabed29489bb3b774c62b7283abf021294a.tar.gz
perl-URPM-30789fabed29489bb3b774c62b7283abf021294a.tar.bz2
perl-URPM-30789fabed29489bb3b774c62b7283abf021294a.tar.xz
perl-URPM-30789fabed29489bb3b774c62b7283abf021294a.zip
Better diagnostics in $package->build_info()
-rw-r--r--URPM.xs3
1 files changed, 2 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 51734da..ecd7ead 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2400,7 +2400,8 @@ Pkg_build_info(pkg, fileno, provides_files=NULL)
}
size = snprintf(buff, sizeof(buff), "@info@%s\n", pkg->info);
write(fileno, buff, size);
- } else croak("no info available for package");
+ } else croak("no info available for package %s",
+ pkg->h ? get_name(pkg->h, RPMTAG_NAME) : "-");
void
Pkg_build_header(pkg, fileno)