From 286d6864633f9d1aa2dbbb84b5a173b1fbf82390 Mon Sep 17 00:00:00 2001
From: Guillaume Valadon <guillaume.valadon@ssi.gouv.fr>
Date: Mon, 25 Sep 2017 17:32:35 +0200
Subject: [PATCH] Add more explicit version name

---
 scapy/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scapy/__init__.py b/scapy/__init__.py
index a0e7094d..3126c5e4 100644
--- a/scapy/__init__.py
+++ b/scapy/__init__.py
@@ -80,9 +80,9 @@ def _version():
             sha1 = git_archive_id.strip().split()[0]
             match = re.search(r'tag:(\S+)', git_archive_id)
             if match:
-                return match.group(1)
+                return "git-archive.dev" + match.group(1)
             elif sha1:
-                return sha1
+                return "git-archive.dev" + sha1
             else:
                 return 'unknown.version'
 
-- 
GitLab