aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2011-01-11 10:08:04 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2011-01-11 10:08:04 +0000
commit2eabf25dee188a96446f91b9724572bc288c8316 (patch)
tree12083b63a879aba1866b7c07da23309db0e9f5c7
parentba6c666bb8617c938acb9eb552ca36096db36ae4 (diff)
downloadperl-URPM-2eabf25dee188a96446f91b9724572bc288c8316.tar
perl-URPM-2eabf25dee188a96446f91b9724572bc288c8316.tar.gz
perl-URPM-2eabf25dee188a96446f91b9724572bc288c8316.tar.bz2
perl-URPM-2eabf25dee188a96446f91b9724572bc288c8316.tar.xz
perl-URPM-2eabf25dee188a96446f91b9724572bc288c8316.zip
drop deprecated URPM::Pkg->header_filename.
-rw-r--r--NEWS3
-rw-r--r--URPM.xs20
2 files changed, 2 insertions, 21 deletions
diff --git a/NEWS b/NEWS
index a645eb4..0567dc7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
-Version 4.6 - Jan 2011,
+Version 4.6 - 11 Jan 2011, by Per Øyvind Karlsen
+- drop deprecated URPM::Pkg->header_filename.
- make URPM::Pkg->filename properly return the filename in synthesis, rather
than trying to generate it from NVRA
- add URPM::DB::close()
diff --git a/URPM.xs b/URPM.xs
index 42d3ce4..7c6fdc4 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2036,26 +2036,6 @@ Pkg_filename(pkg)
_free(nvra);
}
-# deprecated
-void
-Pkg_header_filename(pkg)
- URPM::Package pkg
- PPCODE:
- if (pkg->info) {
- char *eon;
-
- if ((eon = strrchr(pkg->info, '@')) != NULL) {
- XPUSHs(sv_2mortal(newSVpv(pkg->info, 0)));
- }
- } else if (pkg->h) {
- char buff[1024];
- char *p = buff;
- const char *nvra = get_nvra(pkg->h);
- p += snprintf(buff, sizeof(buff), "%s", nvra);
- _free(nvra);
- XPUSHs(sv_2mortal(newSVpv(buff, p-buff)));
- }
-
void
Pkg_id(pkg)
URPM::Package pkg