[Git][security-tracker-team/security-tracker][master] 2 commits: Makefile: don't hardcode the python interpreter

Salvatore Bonaccorso carnil at debian.org
Tue Jun 19 19:56:45 BST 2018


Salvatore Bonaccorso pushed to branch master at Debian Security Tracker / security-tracker


Commits:
a9c4d465 by Emilio Pozuelo Monfort at 2018-06-19T19:08:30+02:00
Makefile: don't hardcode the python interpreter

The interpreter is defined in the scripts' shebang, so no need
to hardcode it here.

- - - - -
35a4f98c by Salvatore Bonaccorso at 2018-06-19T20:55:43+02:00
Merge branch 'pochu/security-tracker-makefile-python'

- - - - -


1 changed file:

- Makefile


Changes:

=====================================
Makefile
=====================================
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,3 @@
-PYTHON = python
 PYTHON_MODULES = $(wildcard lib/python/*.py)
 
 # The following variables need to be kept up-to-date and can be adjusted
@@ -32,7 +31,7 @@ include lib/*-releases.mk
 # <name>_SUBRELEASE: the sub-release identifier for the security tracker
 
 all:
-	$(PYTHON) bin/update-db data/security.db
+	bin/update-db data/security.db
 
 clean:
 	-rm -f data/security.db lib/python/test_security.db
@@ -45,7 +44,7 @@ test check: check-syntax
 SYNTAX_STAMPS = $(patsubst %,stamps/%-syntax,$(shell bin/check-syntax --get))
 check-syntax: $(SYNTAX_STAMPS)
 stamps/%-syntax: data/%/list bin/check-syntax $(PYTHON_MODULES)
-	$(PYTHON) bin/check-syntax $* data/$*/list
+	bin/check-syntax $* data/$*/list
 	touch $@
 
 .PHONY: serve
@@ -65,11 +64,11 @@ update-$(1):
 	dist="$$($(1)_DIST)"; \
 	mirror="$$($(1)_MIRROR)"; \
 	for section in main contrib non-free ; do \
-		$$(PYTHON) bin/apt-update-file \
+		bin/apt-update-file \
 		    $$$$mirror/dists/$$$$dist/$$$$section/source/Sources \
 		    data/packages/$$$${prefix}_$$$${section}_Sources ; \
 	        for arch in $$($(1)_ARCHS) ; do \
-			$$(PYTHON) bin/apt-update-file \
+			bin/apt-update-file \
 				$$$$mirror/dists/$$$$dist/$$$$section/binary-$$$$arch/Packages \
 				data/packages/$$$${prefix}_$$$${section}_$$$${arch}_Packages ; \
 		done; \
@@ -120,7 +119,7 @@ update-nvd:
 	  wget -q -Odata/nvd/$$name https://nvd.nist.gov/download/$$name || true; \
 	  gzip -f -d data/nvd/$$name || true; \
 	done
-	$(PYTHON) bin/update-nvd data/nvd/nvdcve-*.xml
+	bin/update-nvd data/nvd/nvdcve-*.xml
 
 # Experimental code to compare the Debian and NVD CVE databases using
 # CPE values as common key.



View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/compare/427780d06de1bc146697ff456706f8f21c18b13a...35a4f98c658b7dae8bb31242f278522eba37c259

-- 
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/compare/427780d06de1bc146697ff456706f8f21c18b13a...35a4f98c658b7dae8bb31242f278522eba37c259
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20180619/b1c340a5/attachment-0001.html>


More information about the debian-security-tracker-commits mailing list