Hi,
I've just this moment finished wrestling apt-proxy.conf and
sources.list into co-operating with each other and ran into one small
problem.
It seems anything listed under proposed-updates thinks its in a path
like:
/pool/main/z/zsh/zsh-doc_3.1.9.dev8-6_all.deb
when, er, it isn't. As such I added this quick hack into apt-proxy, I
know this can be done better (like just testing in the *.deb case for
instance, so no duplication of code). Hopefully the apt-proxy guys will
put some proper fix in for this in the next release. Ah another little
fixette to save having to setup the base directories snuck into the diff
too, namely -p on mkdir:
----------------------------------begin----------------------------------
--- /usr/local/src/apt-proxy-1.1.1/apt-proxy Thu Oct 12 07:14:12 2000
+++ /usr/local/sbin/apt-proxy Wed Apr 4 00:35:20 2001
@@ -152,10 +152,10 @@
fi
# Don't support nested directory symlinks. Mail rusty.
[ -d "$MMS_FRONTBASE$mms_d" ] ||
- mkdir -m 755 "`dirname $MMS_FRONTBASE$mms_d`/$MMS_L"
+ mkdir -p -m 755 "`dirname $MMS_FRONTBASE$mms_d`/$MMS_L"
else
log Making directory "$MMS_FRONTBASE$mms_d"
- mkdir -m 755 "$MMS_FRONTBASE$mms_d"
+ mkdir -p -m 755 "$MMS_FRONTBASE$mms_d"
fi
[ ! -d "$MMS_FRONTBASE$mms_d" ] &&
bad_config "$MMS_FRONTBASE$mms_d" \
@@ -575,6 +575,20 @@
conenc=
;;
+ /pool/*/?/*/*.deb)
+ REQUEST=/proposed-updates/`echo $REQUEST | cut -d/ -f6`
+
+ debug Looking for file \`$REQUEST\'
+ resolve_url $REQUEST
+ [ -f $FRONT ] ||
+ STREAM="`fetch_file_start $URL_REST $FRONT_BASE $BACKS`"
+ debug STREAM: $STREAM
+ [ -n "$CLEANUP_DAYS" ] && DO_CLEANUP=1
+
+ SIZE_FILE=Packages
+ contype=application/dpkg
+ conenc=
+ ;;
*.deb)
debug Looking for file \`$REQUEST\'
resolve_url $REQUEST
-----------------------------------end-----------------------------------
HTH,
-Ath
--
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
Finger athan(at)fysh.org for PGP key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME
|