Merge lp:~agateau/pbuilder/pbuilder-hooks-own-repo-fixes into lp:~kubuntu-packagers/pbuilder/pbuilder-hooks

Proposed by Aurélien Gâteau
Status: Needs review
Proposed branch: lp:~agateau/pbuilder/pbuilder-hooks-own-repo-fixes
Merge into: lp:~kubuntu-packagers/pbuilder/pbuilder-hooks
Diff against target: 40 lines (+5/-4)
2 files modified
D09custompool (+4/-3)
README (+1/-1)
To merge this branch: bzr merge lp:~agateau/pbuilder/pbuilder-hooks-own-repo-fixes
Reviewer Review Type Date Requested Status
Harald Sitter Pending
Review via email: mp+83979@code.launchpad.net

Description of the change

Some fixes for the custom pool hook

To post a comment you must log in.

Unmerged revisions

31. By Aurélien Gâteau

Fix typo (POOLDDIR => POOLDIR) and output a few informative messages.

30. By Aurélien Gâteau

Created repo is a trivial repo, the 'deb' line should only have two parameters

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'D09custompool'
--- D09custompool 2010-12-13 20:47:00 +0000
+++ D09custompool 2011-11-30 17:06:26 +0000
@@ -1,8 +1,8 @@
1#!/bin/sh1#!/bin/sh
22
3if [ $POOL ]; then3if [ $POOL ]; then
4 if [ -z $POOLDIR ]; then4 if [ -z "$POOLDIR" ]; then
5 POOLDDIR=/usr/src/deb/pool5 POOLDIR=/usr/src/deb/pool
6 fi6 fi
77
8 cd $POOLDIR8 cd $POOLDIR
@@ -12,10 +12,11 @@
12 fi12 fi
1313
14 d=`pwd`14 d=`pwd`
15 echo $d15 echo "POOLDIR=$d"
16 grep "$d" /etc/apt/sources.list > /dev/null 2>&116 grep "$d" /etc/apt/sources.list > /dev/null 2>&1
1717
18 if [ "$?" != "0" ]; then18 if [ "$?" != "0" ]; then
19 echo "POOLDIR not found in /etc/apt/sources.list, adding it"
19 echo "deb file:$d ./" >> /etc/apt/sources.list20 echo "deb file:$d ./" >> /etc/apt/sources.list
20 echo "APT::Get::AllowUnauthenticated 1;" >> /etc/apt/apt.conf.d/allow-unauthenticated21 echo "APT::Get::AllowUnauthenticated 1;" >> /etc/apt/apt.conf.d/allow-unauthenticated
2122
2223
=== modified file 'README'
--- README 2010-09-02 20:03:33 +0000
+++ README 2011-11-30 17:06:26 +0000
@@ -58,7 +58,7 @@
58 used above. IMHO it actually makes sense to write a script for post_upload.58 used above. IMHO it actually makes sense to write a script for post_upload.
5959
60 * Once all is set up properly you should be able to use60 * Once all is set up properly you should be able to use
61 deb file:/usr/src/deb/pool/jaunty jaunty ./61 deb file:/usr/src/deb/pool/jaunty ./
62 to use your package pool. It makes sense to change pbuilder's sources.list62 to use your package pool. It makes sense to change pbuilder's sources.list
63 (sudo pbuilder login --save-after-login). If you don't add it manually, the63 (sudo pbuilder login --save-after-login). If you don't add it manually, the
64 hook will add it every time again and run the scan to make sure the64 hook will add it every time again and run the scan to make sure the

Subscribers

People subscribed via source and target branches