diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:43:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:43:35 +0000 |
commit | a4fa4b329ad6979a81826e77ef3864c52ac7fd37 (patch) | |
tree | 5a4ed3f52650347b217f82264c82792e44dc96e4 /debian/patches/remove-revision-update.patch | |
parent | Adding upstream version 1.3.2. (diff) | |
download | suricata-update-debian/1.3.2-1.tar.xz suricata-update-debian/1.3.2-1.zip |
Adding debian version 1.3.2-1.debian/1.3.2-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/remove-revision-update.patch')
-rw-r--r-- | debian/patches/remove-revision-update.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/debian/patches/remove-revision-update.patch b/debian/patches/remove-revision-update.patch new file mode 100644 index 0000000..9e8f1af --- /dev/null +++ b/debian/patches/remove-revision-update.patch @@ -0,0 +1,37 @@ +Description: remove git revision + The upstream version assumes that it is installed from a Git repository + and tries to insert the Git commit ID into the code. +Author: Sascha Steinbiss <satta@debian.org> +Last-Update: 2019-01-03 +--- a/setup.py ++++ b/setup.py +@@ -15,18 +15,18 @@ + print("Suricata-Update requires Python 2.7 or newer.") + sys.exit(0) + +-def write_git_revision(): +- if not os.path.exists(".git"): +- return +- try: +- revision = subprocess.check_output( +- ["git", "rev-parse", "--short", "HEAD"]) +- with open("./suricata/update/revision.py", "w") as fileobj: +- fileobj.write("revision = '%s'" % (revision.decode().strip())) +- except Exception as err: +- print("Failed to get current git revision: %s" % (err)) ++#def write_git_revision(): ++# if not os.path.exists(".git"): ++# return ++# try: ++# revision = subprocess.check_output( ++# ["git", "rev-parse", "--short", "HEAD"]) ++# with open("./suricata/update/revision.py", "w") as fileobj: ++# fileobj.write("revision = '%s'" % (revision.decode().strip())) ++# except Exception as err: ++# print("Failed to get current git revision: %s" % (err)) + +-write_git_revision() ++#write_git_revision() + + args = { + "name": "suricata-update", |