]> gitweb.fluxo.info Git - rhatto/dotfiles/debian.git/commitdiff
Pbuilder: support for local repository (2)
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 6 Nov 2014 19:01:00 +0000 (17:01 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 6 Nov 2014 19:01:00 +0000 (17:01 -0200)
README.mdwn
config.dot/pbuilder/hooks/D90update.link
pbuilderrc.dot.link

index 23f4b58a406582288e10de330e26d2aff82768d6..5fd9c14f570d0cb144a0143d2ceb98dff446f48f 100644 (file)
@@ -3,3 +3,12 @@ Rhatto's debian dotfiles
 
 This is the repository for rhatto's debian devscripts configuration.
 More information at https://git.sarava.org/?p=metadot.git
+
+You might want use it with the following ~/.custom/pbuilderrc:
+
+  # Local package repository, see, see, see, see
+  # https://wiki.debian.org/AutomateBackports
+  # https://wiki.debian.org/PbuilderTricks#How_to_include_local_packages_in_the_build
+  EXTRAPACKAGES="apt-utils"
+  BINDMOUNTS="/path/to/debian/packages/build-area/${DIST}-${ARCH}"
+  export LOCALDEBS="$BINDMOUNTS"
index 0c5ac424a15598d4496ee68479ed13bf88b0aeb3..d644b6664844baeaeaaddfa7dfaa95e9f285b09f 100755 (executable)
@@ -5,8 +5,11 @@
 
 set -e
 
+# Generated local repository metadata
 if [ ! -z "$LOCALDEBS" ]; then
+  echo "deb [trusted=yes] file://${LOCALDEBS} ./" >> /etc/apt/sources.list
   ( cd $LOCALDEBS; apt-ftparchive packages . > Packages )
 fi
 
+# Update package list
 /usr/bin/apt-get update
index ce23a70e0b674dda859e42f83fb465c9b45667ef..60a6106f744b31c8197fd516283e698abf225bc8 100644 (file)
@@ -34,9 +34,9 @@ if [ ! -z "$LOCALDEBS" ]; then
   mkdir -p $LOCALDEBS
 
   if [ ! -z "$OTHERMIRROR" ]; then
-    OTHERMIRROR="$OTHERMIRROR | deb file://${LOCALDEBS} ./"
+    OTHERMIRROR="$OTHERMIRROR | deb [trusted=yes] file://${LOCALDEBS} ./"
   else
-    OTHERMIRROR="deb file://${LOCALDEBS} ./"
+    OTHERMIRROR="deb [trusted=yes] file://${LOCALDEBS} ./"
   fi
 fi