[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

patch for Makefile for security-tracker



	Hi!

 I started to take a look at the svn repository and produced this short
patch as first approach to get backports integrated:

#v+
diff --git a/Makefile b/Makefile
index 356406a..8f02892 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ PYTHON = python
 PYTHON_MODULES = $(wildcard lib/python/*.py)
 BUG_LISTS = $(wildcard data/*/list)
 
-# Adjust these if necessary.  The architecture selection is arther
+# Adjust these if necessary.  The architecture selection is rather
 # arbitrary at the moment.  More architectures can be added later.
 
 # MIRROR = http://merkel.debian.org/~aba/debian/
@@ -39,7 +39,7 @@ stamps/DTSA-syntax: data/DTSA/list bin/check-syntax $(PYTHON_MODULES)
 	$(PYTHON) bin/check-syntax DTSA data/DTSA/list
 	touch $@
 
-.PHONY: update-packages update-testing-security
+.PHONY: update-packages update-testing-security update-volatile update-backports
 RELEASES = lenny sid 
 update-packages:
 	set -e ; for rel in $(RELEASES) ; do \
@@ -95,3 +95,16 @@ update-volatile:
 	      data/packages/$${archive}_volatile_main_Sources ; \
 	done
 
+BACKPORTS_MIRROR = http://www.backports.org/backports.org/dists
+update-backports:
+	set -e && for archive in etch-backports ; do \
+	  for arch in $(LENNY_ARCHS) ; do \
+	    $(PYTHON) bin/apt-update-file \
+	      $(BACKPORTS_MIRROR)/$${archive}/main/binary-$$arch/Packages \
+	      data/packages/$${archive}_backports.org_main_$${arch}_Packages ; \
+	  done ; \
+	  $(PYTHON) bin/apt-update-file \
+	      $(BACKPORTS_MIRROR)/$${archive}/main/source/Sources \
+	      data/packages/$${archive}_backports.org_main_Sources ; \
+	done
+
#v-

 A local test-run for make update-backports worked fine for me, I'm
trying to dig further where the tracker creates the
/tracker/status/release/foo pages and get backports into there too (and
also volatile, that one doesn't seem to have an overview page neither,
it seems).

 Thanks,
Rhonda


Reply to: