aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/binrepo.py
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-01-25 18:33:00 +0000
committerNicolas Vigier <boklm@mageia.org>2011-01-25 18:33:00 +0000
commitba1ca57598a314cc60e2c13cb4244ef13f9b3117 (patch)
treedf702125052811d87931913273f41477470b7415 /MgaRepo/binrepo.py
parent67b8db910bd732d078f8fb2c84d51736e2bee556 (diff)
downloadmgarepo-ba1ca57598a314cc60e2c13cb4244ef13f9b3117.tar
mgarepo-ba1ca57598a314cc60e2c13cb4244ef13f9b3117.tar.gz
mgarepo-ba1ca57598a314cc60e2c13cb4244ef13f9b3117.tar.bz2
mgarepo-ba1ca57598a314cc60e2c13cb4244ef13f9b3117.tar.xz
mgarepo-ba1ca57598a314cc60e2c13cb4244ef13f9b3117.zip
don't try to add binary file if it is a symlink
Diffstat (limited to 'MgaRepo/binrepo.py')
-rw-r--r--MgaRepo/binrepo.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/MgaRepo/binrepo.py b/MgaRepo/binrepo.py
index 9c77621..a7d635e 100644
--- a/MgaRepo/binrepo.py
+++ b/MgaRepo/binrepo.py
@@ -352,6 +352,10 @@ def upload(path, message=None):
sys.stderr.write("'%s' is already tracked by svn, ignoring\n" %
path)
continue
+ if os.path.islink(path):
+ sys.stderr.write("'%s' is a symbolic link, ignoring\n" %
+ path)
+ continue
name = os.path.basename(path)
binpath = os.path.join(bindir, name)
os.rename(path, binpath)