aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-01-06 11:25:28 +0000
committerFrancois Pons <fpons@mandriva.com>2003-01-06 11:25:28 +0000
commit552ab6f5bc019f71383251b9cd519b98ef04e86a (patch)
tree423131e8e15327b2ade37f9a30f3267a4631265e
parent98ee250d58af758552ba7ad93aefde0ca171f665 (diff)
downloadperl-URPM-552ab6f5bc019f71383251b9cd519b98ef04e86a.tar
perl-URPM-552ab6f5bc019f71383251b9cd519b98ef04e86a.tar.gz
perl-URPM-552ab6f5bc019f71383251b9cd519b98ef04e86a.tar.bz2
perl-URPM-552ab6f5bc019f71383251b9cd519b98ef04e86a.tar.xz
perl-URPM-552ab6f5bc019f71383251b9cd519b98ef04e86a.zip
0.81-5mdk
-rw-r--r--URPM.xs2
-rw-r--r--perl-URPM.spec6
2 files changed, 6 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index 17f97e2..d1c6ffa 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -351,7 +351,7 @@ pack_header(URPM__Package pkg) {
if (!filename || !strcmp(p, filename)) {
p[-1] = 0;
} else {
- p = p + snprintf(p, sizeof(buff) - (p-buff), "%s", filename);
+ p = p + 1 + snprintf(p, sizeof(buff) - (p-buff), "%s", filename);
}
pkg->info = memcpy(malloc(p-buff), buff, p-buff);
}
diff --git a/perl-URPM.spec b/perl-URPM.spec
index 94271a6..fea71e1 100644
--- a/perl-URPM.spec
+++ b/perl-URPM.spec
@@ -1,7 +1,7 @@
%define name perl-URPM
%define real_name URPM
%define version 0.81
-%define release 4mdk
+%define release 5mdk
%{expand:%%define rpm_version %(rpm -q --queryformat '%{VERSION}-%{RELEASE}' rpm)}
@@ -49,6 +49,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Mon Jan 6 2003 François Pons <fpons@mandrakesoft.com> 0.81-5mdk
+- fixed bad filename generation (cause problem to genhdlist if
+ renamed packages are existing).
+
* Fri Dec 20 2002 Pixel <pixel@mandrakesoft.com> 0.81-4mdk
- perl_checker fixes (syntax only)