[Collab-qa-commits] r1434 - ddpo-by-mail

Raphael Geissert atomo64-guest at alioth.debian.org
Mon Apr 20 05:55:50 UTC 2009


Author: atomo64-guest
Date: 2009-04-20 05:55:50 +0000 (Mon, 20 Apr 2009)
New Revision: 1434

Modified:
   ddpo-by-mail/Makefile
   ddpo-by-mail/reminder-mail.rb
Log:
Avoid hard-coding the path to debian-installer/binary-*/Packages.gz


Modified: ddpo-by-mail/Makefile
===================================================================
--- ddpo-by-mail/Makefile	2009-04-20 04:34:43 UTC (rev 1433)
+++ ddpo-by-mail/Makefile	2009-04-20 05:55:50 UTC (rev 1434)
@@ -1,6 +1,11 @@
 #!/usr/bin/make -f
 
-UPDATE_TARGETS:=bts2ldap_fullindex ddpo_packages ddpo_maintainers testing-status.raw dehs.txt ood_excuses.txt pts_subscriptions.txt wnpp_rm lintian-list.txt
+UPDATE_TARGETS:=bts2ldap_fullindex ddpo_packages ddpo_maintainers testing-status.raw dehs.txt ood_excuses.txt pts_subscriptions.txt wnpp_rm lintian-list.txt debian-installer/all
+ARCHITECTURES:=alpha,amd64,armel,hppa,hurd-i386,i386,ia64,mips,mipsel,powerpc,s390,sparc
+#ARCHITECTURES:=$(shell dpkg-architecture -L | tr "\n" ",")
+LOCAL_MIRROR:=/org/ftp.debian.org/ftp
+MIRROR:=http://ftp.de.debian.org/debian
+DI_PATH:=dists/sid/main/debian-installer
 WGET_OPTIONS:=-nv -N
 WGET:=wget $(WGET_OPTIONS)
 DATA_DIR:=data
@@ -36,6 +41,20 @@
 lintian-list.txt:
 	$(WGET) http://qa.debian.org/data/$@
 
+debian-installer/binary-%: phony
+	mkdir -p `dirname "$@"`
+	( cd `dirname "$@"` && $(WGET) $(MIRROR)/$(DI_PATH)/binary-$* ; ) || touch $@
+
+debian-installer/all: debian-installer
+	if [ -d "$(LOCAL_MIRROR)/$(DI_PATH)" ]; then \
+	    [ -L debian-installer ] || ln -s debian-installer '$(LOCAL_MIRROR)/$(DI_PATH)';\
+	else \
+	    $(MAKE) -f ../Makefile `echo "$(ARCHITECTURES)" | tr ',' '\n' | sed 's,^,debian-installer/binary-,g;s,$$,/Packages.gz,g'`; \
+	fi
+
+debian-installer:
+	mkdir $@
+
 clean: clean-update
 	# remove broken symlinks:
 	find -L $(DATA_DIR) -type l -exec unlink '{}' ';'
@@ -44,4 +63,4 @@
 clean-update:
 	cd $(DATA_DIR) && $(RM) -f $(UPDATE_TARGETS)
 
-.PHONY: clean clean-update update $(UPDATE_TARGETS)
+.PHONY: clean clean-update update $(UPDATE_TARGETS) phony

Modified: ddpo-by-mail/reminder-mail.rb
===================================================================
--- ddpo-by-mail/reminder-mail.rb	2009-04-20 04:34:43 UTC (rev 1433)
+++ ddpo-by-mail/reminder-mail.rb	2009-04-20 05:55:50 UTC (rev 1434)
@@ -8,7 +8,7 @@
 # parse debian-installer packages
 pkg = nil
 dipkgs = []
-`zcat /org/ftp.debian.org/ftp/dists/unstable/main/debian-installer/binary-*/Packages.gz`.each_line do |l|
+`zcat data/debian-installer/binary-*/Packages.gz`.each_line do |l|
   if l =~ /^Package: /
     if pkg != nil
       dipkgs << pkg




More information about the Collab-qa-commits mailing list