diff --git a/.appveyor.yml b/.appveyor.yml index bc4a5e9..28510c0 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,5 +1,5 @@ # Specify version format -version: "1.12.0.{build}" +version: "1.13.0.{build}" # Image to use image: Visual Studio 2019 diff --git a/gil.py b/gil.py index 8ce714f..cdd8e38 100644 --- a/gil.py +++ b/gil.py @@ -16,7 +16,7 @@ __email__ = "chronoxor@gmail.com" __license__ = "MIT License" __url__ = "https://github.com/chronoxor/gil" -__version__ = "1.12.0.0" +__version__ = "1.13.0.0" class GilRecord(object): @@ -275,8 +275,11 @@ def create_link(src_path, dst_path): else: os.remove(dst_path) # Create the link - os.symlink(src_path, dst_path, target_is_directory=True) - print("Update git link: %s -> %s" % (src_path, dst_path)) + if os.path.exists(src_path): + os.symlink(src_path, dst_path, target_is_directory=True) + print("Create git link: %s -> %s" % (src_path, dst_path)) + else: + print("Cannot create git link! Path not found: %s" % src_path) @staticmethod def update_link(src_path, dst_path): diff --git a/setup.py b/setup.py index e517707..93420c8 100644 --- a/setup.py +++ b/setup.py @@ -5,11 +5,11 @@ if __name__ == "__main__": distutils.core.setup( name="gil", - version="1.12.0.0", + version="1.13.0.0", author="Ivan Shynkarenka", author_email="chronoxor@gmail.com", url="https://github.com/chronoxor/gil", - download_url = "https://github.com/chronoxor/gil/archive/1.12.0.0.tar.gz", + download_url = "https://github.com/chronoxor/gil/archive/1.13.0.0.tar.gz", description="Gil (git links) tool", long_description="Gil (git links) tool allows to describe and manage complex git repositories dependencies with cycles and cross references", license="MIT License",