]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-empty-rpmlock-path.patch
- 10000x performance boost for packages calling %find_lang more than once (try kdemod...
[packages/rpm.git] / rpm-empty-rpmlock-path.patch
index fc39592cab743f6cd64144bc8db475c682b5e316..71f02024a60f515ed56b83cb726d14c518b8c5a7 100644 (file)
@@ -1,11 +1,11 @@
---- rpm-4.4.4/lib/rpmlock.c.orig       2005-12-08 19:32:31.000000000 +0100
-+++ rpm-4.4.4/lib/rpmlock.c    2005-12-16 01:00:31.601268584 +0100
+--- rpm-4.4.5/lib/rpmlock.c.orig       2006-02-21 01:03:07.000000000 +0100
++++ rpm-4.4.5/lib/rpmlock.c    2006-02-28 21:57:10.968577000 +0100
 @@ -39,7 +39,11 @@
      /* XXX oneshot to determine path for fcntl lock. */
      /* XXX rpmlock_path is set once, cannot be changed with %{_rpmlock_path}. */
      if (!oneshot) {
--      char * t = rpmGenPath(rootdir, rpmlock_path_default, NULL);
-+      char * t = NULL;
+-      const char * t = rpmGenPath(rootdir, rpmlock_path_default, NULL);
++      const char * t = NULL;
 +      char * check = rpmExpand(rpmlock_path_default, NULL);
 +      if (check[0] != '\0')
 +          t = rpmGenPath(rootdir, rpmlock_path_default, NULL);
This page took 0.028978 seconds and 4 git commands to generate.