summaryrefslogtreecommitdiff
path: root/gbp/scripts/common/import_orig.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/scripts/common/import_orig.py')
-rw-r--r--gbp/scripts/common/import_orig.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gbp/scripts/common/import_orig.py b/gbp/scripts/common/import_orig.py
index fe38d90..4381b96 100644
--- a/gbp/scripts/common/import_orig.py
+++ b/gbp/scripts/common/import_orig.py
@@ -57,6 +57,14 @@ def cleanup_tmp_tree(tree):
gbp.log.err("Removal of tmptree %s failed." % tree)
+def is_link_target(target, link):
+ """does symlink link already point to target?"""
+ if os.path.exists(link):
+ if os.path.samefile(target, link):
+ return True
+ return False
+
+
def ask_package_name(default, name_validator_func, err_msg):
"""
Ask the user for the source package name.