Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39063 - fix-db.py - missing "/" in /var/db pathnames
Summary: fix-db.py - missing "/" in /var/db pathnames
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-22 11:51 UTC by Paul Taylor
Modified: 2004-02-08 13:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Taylor 2004-01-22 11:51:57 UTC
I tried running the fix-db.py script, but it generated a bunch of 
"Invalid file" errors e.g. 
   Invalid file: '/var/db/pkgsys-kernel'

The file path was obviously incorrect, so I fixed this by changing the 
following line in the script: 
   catdir = vardbdir+cat+"/"
to:
   catdir = vardbdir+"/"+cat+"/"

No errors were generated after making the change, so I assume it fixed the
database...

Reproducible: Always
Steps to Reproduce:
1.  Run /usr/lib/portage/bin/fix-db.py
Actual Results:  
Invalid file: '/var/db/pkgsys-kernel'
Invalid file: '/var/db/pkgsys-devel'
Invalid file: '/var/db/pkgsys-apps'

(etc.)

Expected Results:  
No error messages.

Portage 2.0.50_pre19 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0,
2.6.1-gentoo-r1)
=================================================================
System uname: 2.6.1-gentoo-r1 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apm arts avi berkdb cdr crypt cups dvd encode fbcon
foomaticdb freetype gdbm gif gpm gps gtk gtk2 imlib java jpeg kde libg++ libwww
mad mikmod mmx motif mozilla mpeg ncurses nptl oggvorbis openal opengl oss pam
pdflib perl png ppds python quicktime readline sdl slang spell sse ssl svga tcpd
truetype usb x86 xml2 xmms xv zlib"
Comment 1 Masatomo Nakano (RETIRED) gentoo-dev 2004-02-08 13:31:00 UTC
This bug was already fixed.