Hi,

> Setting current directory: no such file or directory,
> dvc-bzr-ignore2027Qcudvc-bzr-ignore2027Qcu/dvc-bzr-ignore2027Qcu
> make[1]: *** [clean-some] Error 255
> make[1]: Leaving directory `/home/dan/down/dvc/++build/lisp'
> make: *** [dvc] Error 2

Those strange file names (like
`dvc-bzr-ignore2027Qcudvc-bzr-ignore2027Qcu/dvc-bzr-ignore2027Qcu')
are generated in `dvc-uniquify-file-name' due to the fact (I think)
that 'expand-file-name' and `file-name-as-directory' are called with
the global variable `default-directory' bounded to the temporary
directory itself created in `bzr-ignore-setup'.

I haven't debugged the code enough to make the "right thing", but at
least this will make possible to compile dvc in such circumstances
until there is a better fix.

Regards,
Andrea.

=== modified file 'lisp/bzr.el'
--- lisp/bzr.el	2006-08-08 18:48:55 +0000
+++ lisp/bzr.el	2006-09-12 19:10:04 +0000
@@ -557,7 +557,7 @@
                      ;; let bzr create the file.
                      (let* ((dir (make-temp-name "dvc-bzr-ignore"))
                             (foo (make-directory dir))
-                            (default-directory dir))
+                            (default-directory (expand-file-name dir)))
                        (dvc-run-dvc-sync 'bzr (list "init")
                                          :finished 'dvc-null-handler)
                        (dvc-run-dvc-sync 'bzr (list "ignored")

-- 
Greenspun's Tenth Rule of Programming: 
"Any sufficiently complicated C or Fortran program contains an ad-hoc, 
informally-specified bug-ridden slow implementation of half of Common Lisp."
_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to