[Debian-live-changes] r1196 - dists/trunk/live-helper/helpers
Daniel Baumann
daniel at alioth.debian.org
Thu Apr 26 15:40:12 UTC 2007
Author: daniel
Date: 2007-04-26 15:40:12 +0000 (Thu, 26 Apr 2007)
New Revision: 1196
Modified:
dists/trunk/live-helper/helpers/lh_binary_debian-installer
dists/trunk/live-helper/helpers/lh_clean
Log:
Modified: dists/trunk/live-helper/helpers/lh_binary_debian-installer
===================================================================
--- dists/trunk/live-helper/helpers/lh_binary_debian-installer 2007-04-26 14:17:09 UTC (rev 1195)
+++ dists/trunk/live-helper/helpers/lh_binary_debian-installer 2007-04-26 15:40:12 UTC (rev 1196)
@@ -109,10 +109,18 @@
fi
# Downloading udebs
-wget "${LIVE_MIRROR_BUILD}"/dists/"${LIVE_DISTRIBUTION}"/main/debian-installer/binary-"${LIVE_ARCHITECTURE}"/Packages.gz -O packages.di.gz
-gunzip packages.di
+mkdir -p binary/dists/"${LIVE_DISTRIBUTION}"/main/debian-installer/binary-"${LIVE_ARCHITECTURE}"
+cd binary/dists/"${LIVE_DISTRIBUTION}"/main/debian-installer/binary-"${LIVE_ARCHITECTURE}"
+wget "${LIVE_MIRROR_BUILD}"/dists/"${LIVE_DISTRIBUTION}"/main/debian-installer/binary-"${LIVE_ARCHITECTURE}"/Packages.gz
+gunzip -c Packages.gz > Packages
+cd -
-DEBS="`awk '/Filename: / { print $2 }' packages.di`"
+for DISTRIBUTION in frozen stable testing unstable
+do
+ ln -s ${LIVE_DISTRIBUTION} binary/dists/${DISTRIBUTION}
+done
+
+DEBS="`awk '/Filename: / { print $2 }' binary/dists/${LIVE_DISTRIBUTION}/main/debian-installer/binary-${LIVE_ARCHITECTURE}/Packages`"
UDEBS="`echo ${DEBS} | grep '.*.udeb'`"
rm -f packages.di
@@ -150,5 +158,71 @@
done
fi
+mkdir -p binary/dists/${LIVE_DISTRIBUTION}/main/binary-${LIVE_ARCHITECTURE}
+
+cat > binary/dists/${LIVE_DISTRIBUTION}/main/binary-${LIVE_ARCHITECTURE}/Release << EOF
+Archive: ${LIVE_DISTRIBUTION}
+Component: main
+Origin: Debian
+Label: Debian
+Architecture: ${LIVE_ARCHITECTURE}
+EOF
+
+mkdir -p cache/indices_debian-installer
+
+cat > cache/indices_debian-installer/archive << EOF
+Dir
+{
+ ArchiveDir "binary";
+ // OverrideDir "";
+ // CacheDir "";
+ // FileListDir "";
+};
+
+Default
+{
+ Packages::Compress ". gzip";
+ // Packages::Extension ".deb";
+ // Sources::Extensions ".dsc";
+ // Contents::Compress "gzip";
+ // DeLinkLimit "0";
+ // FileMode "0644";
+};
+
+TreeDefault
+{
+ // MaxContentsChange
+ // ContentsAge
+ Directory "dists/$(DIST)/$(SECTION)/binary-$(ARCH)/";
+ Packages "dists/$(DIST)/$(SECTION)/binary-$(ARCH)/Packages";
+ InternalPrefix "dists/$(DIST)/$(SECTION)/";
+ // Contents "dists/$(DIST)/Contents-$(ARCH)";
+ // Contents::Header
+ // BinCacheDB "cache.$(DIST).$(SECTION).$(ARCH)";
+ // FileList "filelist.$(DIST).$(SECTION).$(ARCH)";
+ // BinOverride "override.$(DIST).$(SECTION)";
+};
+
+tree "etch"
+{
+ Sections "main";
+ Architectures "${LIVE_ARCHITECTURE}";
+};
+EOF
+
+cat > cache/indices_debian-installer/release << EOF
+APT::FTPArchive::Release::Origin "Debian"; \
+APT::FTPArchive::Release::Label "Debian"; \
+APT::FTPArchive::Release::Suite "${LIVE_DISTRIBUTION}"; \
+APT::FTPArchive::Release::Version "4.0"; \
+APT::FTPArchive::Release::Codename "${LIVE_DISTRIBUTION}"; \
+APT::FTPArchive::Release::Date "`date -R`"; \
+APT::FTPArchive::Release::Architectures "${LIVE_ARCHITECTURE}"; \
+APT::FTPArchive::Release::Components "main";
+EOF
+
+apt-ftparchive generate cache/indices_debian-installer/archive
+apt-ftparchive -c cache/indices_debian-installer/release -o APT::FTPArchive::Release::Description="Last updated: `date -R`" release binary/dists/${LIVE_DISTRIBUTION} > binary/dists/${LIVE_DISTRIBUTION}/Release
+
# Creating stage file
Create_stagefile .stage/binary_debian-installer
Modified: dists/trunk/live-helper/helpers/lh_clean
===================================================================
--- dists/trunk/live-helper/helpers/lh_clean 2007-04-26 14:17:09 UTC (rev 1195)
+++ dists/trunk/live-helper/helpers/lh_clean 2007-04-26 15:40:12 UTC (rev 1196)
@@ -74,7 +74,7 @@
rm -f binary.iso
rm -f binary.img
rm -f binary*.tar.gz
- rm -f packages.txt packages.d-i
+ rm -f packages.txt
rm -rf binary
rm -rf tftpboot
More information about the Debian-live-changes
mailing list