Bug 30171 - esearch new package doesn't work when /tmp and /var are in different partitions
Bug#: 30171 Product:  Portage Development Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: genone@gentoo.org Reported By: davefx@gmail.com
Component: Unclassified (old)
URL: 
Summary: esearch new package doesn't work when /tmp and /var are in different partitions
Keywords:  
Status Whiteboard: 
Opened: 2003-10-02 08:59 0000
Description:   Opened: 2003-10-02 08:59 0000
I've got /tmp and /usr in different partitions.

I've done "eupdatedb" and...

 * indexing: 99%
Traceback (most recent call last):
  File "/usr/sbin/eupdatedb", line 110, in ?
    rename(tmpfile, esearchdbfile)
OSError: [Errno 18] Invalid cross-device link

That line in /usr/sbin/eupdatedb is 
"rename(tmpfile, esearchdbfile)"

which cannot be done: they are in different partitions. 


Reproducible: Always
Steps to Reproduce:

------- Comment #1 From David MarĂ­n 2003-10-02 09:00:08 0000 -------
Upps! I should have said /var.

------- Comment #2 From David Peter 2003-10-02 10:42:00 0000 -------
Hi,

Thanks for the bug-report.
I've fixed the bug by using shutil.copyfile and os.unlink. It should be working
now. So we just have to wait for an developer to bump the ebuild to esearch-0.4.2
;-)

I also replaced the counter (0% to 100%) by an ebuild-countdown, because
the display was often wrong (as I see in your message where it only went
up to 99%).

David

------- Comment #3 From Marius Mauch (RETIRED) 2003-10-02 19:25:57 0000 -------
0.4.2 in cvs