Add source packages to the reprepro repository
- Add source as an architecture
- Update the repo generation to add source packages from the dsc file
Change-Id: Ie066f9e3d2d2032a25fc70de105f0378fa72494a
diff --git a/distributions b/distributions
index 793b980..1727728 100644
--- a/distributions
+++ b/distributions
@@ -1,8 +1,8 @@
Origin: Google LLC
Label: Google
Suite: stable
-Codename: stable
+Codename: animal
Version: 1.0
-Architectures: arm64
+Architectures: arm64 source
Components: main
Description: Google AIY Board Debian repository
diff --git a/signing.mk b/signing.mk
index 0be4cbc..7a83db8 100644
--- a/signing.mk
+++ b/signing.mk
@@ -14,7 +14,14 @@
reprepro --basedir $(PRODUCT_OUT)/repo \
--outdir $(PRODUCT_OUT)/repo/debian_repo \
--confdir $(PRODUCT_OUT)/repo/deb_repo_config \
- includedeb stable $(PRODUCT_OUT)/repo/packages/*.deb
+ includedeb animal $(PRODUCT_OUT)/repo/packages/*.deb
+ # Sigh, reprepro doesn't accept multiple dsc's at once...
+ find $(PRODUCT_OUT)/packages -maxdepth 1 -type f -name '*.dsc' | \
+ xargs -n1 \
+ reprepro --basedir $(PRODUCT_OUT)/repo \
+ --outdir $(PRODUCT_OUT)/repo/debian_repo \
+ --confdir $(PRODUCT_OUT)/repo/deb_repo_config \
+ includedsc animal
find $(PRODUCT_OUT)/repo/debian_repo -type d | xargs chmod 777
find $(PRODUCT_OUT)/repo/debian_repo -type f | xargs chmod 666