Count the total number of binary and source discs better; sarge can

have more than 9 CDs, so ?.packages doesn't cut it any more.
This commit is contained in:
Steve McIntyre 2005-04-24 20:46:06 +00:00
parent 17ae1a1f5f
commit babd95c54b
2 changed files with 5 additions and 3 deletions

View File

@ -428,7 +428,7 @@ bin-infos: bin-tree $(BDIR)/CD1/.disk/info
$(BDIR)/CD1/.disk/info:
@echo "Generating the binary CD labels and their volume ids ..."
$(Q)set -e; \
nb=`ls -l $(BDIR)/?.packages | wc -l | tr -d " "`; num=0;\
nb=`ls -l $(BDIR)/?.packages $(BDIR)/??.packages | wc -l | tr -d " "`; num=0;\
DATE=`date +%Y%m%d`; \
for i in $(BDIR)/*.packages; do \
num=$${i%%.packages}; num=$${num##$(BDIR)/}; \
@ -459,7 +459,7 @@ src-infos: src-tree $(SDIR)/CD1/.disk/info
$(SDIR)/CD1/.disk/info:
@echo "Generating the source CD labels and their volume ids ..."
$(Q)set -e; \
nb=`ls -l $(SDIR)/?.sources | wc -l | tr -d " "`; num=0;\
nb=`ls -l $(SDIR)/?.sources $(SDIR)/??.sources | wc -l | tr -d " "`; num=0;\
DATE=`date +%Y%m%d`; \
for i in $(SDIR)/*.sources; do \
num=$${i%%.sources}; num=$${num##$(SDIR)/}; \

2
debian/changelog vendored
View File

@ -7,6 +7,8 @@ debian-cd (2.2.22) UNRELEASED; urgency=low
- Make woody's post-boot-mipsel script cope with extra fields in the
output of sarge's isoinfo
- Add Suggests: on netpbm and syslinux. Closes: #301345
- Count the total number of binary and source discs better; sarge can
have more than 9 CDs, so ?.packages doesn't cut it any more.
-- Joey Hess <joeyh@debian.org> Thu, 14 Apr 2005 00:59:49 -0400