diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-06-19 00:02:39 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-06-19 00:02:39 +0200 |
commit | c9fc434248ff3f8c1b800ced559385b17d4690de (patch) | |
tree | 8d14d0b026971a2c8f5ee6b16a87110b8d2deb2b /src | |
parent | 4d74aa2411953508f330c4ca91c554b721a38937 (diff) | |
download | bcfg2-c9fc434248ff3f8c1b800ced559385b17d4690de.tar.gz bcfg2-c9fc434248ff3f8c1b800ced559385b17d4690de.tar.bz2 bcfg2-c9fc434248ff3f8c1b800ced559385b17d4690de.zip |
Client/Tools/VCS: fix symlink handling
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Bcfg2/Client/Tools/VCS.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Client/Tools/VCS.py b/src/lib/Bcfg2/Client/Tools/VCS.py index 26e404cfa..3d19f5f1a 100644 --- a/src/lib/Bcfg2/Client/Tools/VCS.py +++ b/src/lib/Bcfg2/Client/Tools/VCS.py @@ -136,7 +136,7 @@ class VCS(Bcfg2.Client.Tools.Tool): full_path = os.path.join(destname, fname) dulwich.file.ensure_dir_exists(os.path.dirname(full_path)) - if dulwich.objects.S_ISGITLINK(mode): + if stat.S_ISLNK(mode): src_path = destr[sha].as_raw_string() try: os.symlink(src_path, full_path) |