Package: svn-load
Version: 0.4-2
Severity: normal
Tags: patch

Hi,

svn-load doesn't handle symbolic links correctly - instead of adding a
link to the repository, it adds a copy of the linked item. The attached
patch fixes that problem.

Cheers, Til


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages svn-load depends on:
ii  python                       2.4.4-2     An interactive high-level object-o
ii  python-svn                   1.5.0dfsg-1 A(nother) Python interface to Subv

svn-load recommends no packages.

-- no debconf information
--- svn-load.orig       2007-03-27 22:15:51.000000000 +0200
+++ svn-load    2007-03-27 22:19:59.000000000 +0200
@@ -193,7 +193,11 @@
             needs_add = False
             if not os.path.exists(counterpath):
                 needs_add = True
-            shutil.copy(fullpath, counterpath)
+            if os.path.islink(fullpath):
+                linkto = os.readlink(fullpath)
+                os.symlink(linkto, counterpath)
+            else:
+                shutil.copy(fullpath, counterpath)
             if needs_add:
                 client.add(counterpath)
         # We have to use a counter instead of something like 'for d in dirs'

Reply via email to