diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-12-12 09:19:29 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-12-12 09:19:29 +0000 |
commit | 82dc27d51925c3fe6bd3a96864b88f7c4273e958 (patch) | |
tree | 4e96705d7e50a950ca55a5e1ad8423dbde50dbf1 /URPM.xs | |
parent | 4671cc5c231462bfdbfa0400f0e3239ecfbd5f70 (diff) | |
download | perl-URPM-82dc27d51925c3fe6bd3a96864b88f7c4273e958.tar perl-URPM-82dc27d51925c3fe6bd3a96864b88f7c4273e958.tar.gz perl-URPM-82dc27d51925c3fe6bd3a96864b88f7c4273e958.tar.bz2 perl-URPM-82dc27d51925c3fe6bd3a96864b88f7c4273e958.tar.xz perl-URPM-82dc27d51925c3fe6bd3a96864b88f7c4273e958.zip |
- fix scriptlet failing:
adapt to librpm4.6, rpmtsSetRootDir(ts, "") is forbidden
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2815,7 +2815,7 @@ Pkg_set_rflags(pkg, ...) MODULE = URPM PACKAGE = URPM::DB PREFIX = Db_ URPM::DB -Db_open(prefix="", write_perm=0) +Db_open(prefix=NULL, write_perm=0) char *prefix int write_perm PREINIT: @@ -2825,7 +2825,7 @@ Db_open(prefix="", write_perm=0) db = malloc(sizeof(struct s_Transaction)); db->count = 1; db->ts = rpmtsCreate(); - rpmtsSetRootDir(db->ts, prefix); + rpmtsSetRootDir(db->ts, prefix && prefix[0] ? prefix : NULL); if (rpmtsOpenDB(db->ts, write_perm ? O_RDWR | O_CREAT : O_RDONLY) == 0) { RETVAL = db; } else { |