Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=c055f777e8c040fa5f4c1039e2ab80e82a2c4254

commit c055f777e8c040fa5f4c1039e2ab80e82a2c4254
Author: Marcus Habermehl <[EMAIL PROTECTED]>
Date:   Wed Dec 26 17:31:05 2007 +0100

Changing the database directory
from /var/lib/pacman to /var/lib/pacman-g2.
TODO: we need a scriptlet to move and symlink back the db, but nothing complex

diff --git a/TODO b/TODO
index b9ef2f2..210b978 100644
--- a/TODO
+++ b/TODO
@@ -15,8 +15,8 @@ verbose mode, which usage for the library log callback, debug 
levels, ...)
ADDITIONAL IDEAS FOR PERFORMANCE IMPROVEMENT
============================================

-- idea from Christian Hamar: have a /var/lib/pacman/{repo}/.cache file
-that basically contains the output of `ls -1 /var/lib/pacman/{repo}`.  This
+- idea from Christian Hamar: have a /var/lib/pacman-g2/{repo}/.cache file
+that basically contains the output of `ls -1 /var/lib/pacman-g2/{repo}`.  This
cache file could be used in -Q and -Si/s operations to speed up package
listings.

@@ -26,7 +26,7 @@ G2 TODO
- Review #1079 (BTS) and maybe implement it
- untouched dirs from pacman:
- pamcan.conf, pacman.d
-  - /var/lib/pacman, /var/cache/pacman
+  - /var/cache/pacman
- Review stuffs which gives warnings when using --enable-strict and fix those.


diff --git a/doc/pacman-g2.txt b/doc/pacman-g2.txt
index de51c16..419e9e2 100644
--- a/doc/pacman-g2.txt
+++ b/doc/pacman-g2.txt
@@ -247,7 +247,7 @@ pacman-g2 packages are in a bzipped tar format.
The recommended method in this case is to remove the database entry:

----
-       # rm -rf /var/lib/pacman/local/zip-2.32-1
+       # rm -rf /var/lib/pacman-g2/local/zip-2.32-1
----

and forcing the reinstall of the package:
@@ -311,7 +311,7 @@ Server = file:///home/pkgs

DBPath = path/to/db/dir::
Overrides the default location of the toplevel database directory. The default
-       is var/lib/pacman.
+       is var/lib/pacman-g2.

CacheDir = path/to/cache/dir::
Overrides the default location of the package cache directory. The default is
diff --git a/lib/libpacman/pacman.h b/lib/libpacman/pacman.h
index 758a88b..a8e922d 100644
--- a/lib/libpacman/pacman.h
+++ b/lib/libpacman/pacman.h
@@ -33,7 +33,7 @@ extern "C" {
*/

#define PM_ROOT     "/"
-#define PM_DBPATH   "var/lib/pacman"
+#define PM_DBPATH   "var/lib/pacman-g2"
#define PM_CACHEDIR "var/cache/pacman/pkg"
#define PM_LOCK     "/tmp/pacman-g2.lck"
#define PM_HOOKSDIR "etc/pacman-g2/hooks"
diff --git a/pactest/README b/pactest/README
index 56f5731..045065a 100644
--- a/pactest/README
+++ b/pactest/README
@@ -17,7 +17,7 @@ the environment.
pactest creates the environment in the subdirectory "root" created in the
current directory.
The following directory structure is used:
-  - var/lib/pacman: databases path (local and sync ones)
+  - var/lib/pacman-g2: databases path (local and sync ones)
- etc/pacman.conf for pacman-g2 configuration file
- var/cache/pkg: sync packages cache
- var/log/pactest.log: log file
diff --git a/pactest/util.py b/pactest/util.py
index 742df73..5c7b0bb 100644
--- a/pactest/util.py
+++ b/pactest/util.py
@@ -26,7 +26,7 @@ import stat

# libpacman
PM_ROOT     = "/"
-PM_DBPATH   = "var/lib/pacman"
+PM_DBPATH   = "var/lib/pacman-g2"
PM_CACHEDIR = "var/cache/pacman/pkg"
PM_LOCK     = "/tmp/pacman-g2.lck"
PM_EXT_PKG  = ".fpm"
diff --git a/scripts/pacman-g2-optimize b/scripts/pacman-g2-optimize
index 4313359..cf2f65a 100755
--- a/scripts/pacman-g2-optimize
+++ b/scripts/pacman-g2-optimize
@@ -47,7 +47,7 @@ die_r() {
}


-dbroot="/var/lib/pacman"
+dbroot="/var/lib/pacman-g2"

if [ "$1" != "" ]; then
if [ "$1" = "-h" -o "$1" = "--help" ]; then
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to