RESPONSECODE=$(head -n 1 "$ABCDETEMPDIR/cddbstat" | cut -f1 -d' ')
case "$RESPONSECODE" in
210) # 210 OK, status information follows (until terminating `.')
RESPONSECODE=$(head -n 1 "$ABCDETEMPDIR/cddbstat" | cut -f1 -d' ')
case "$RESPONSECODE" in
210) # 210 OK, status information follows (until terminating `.')
- 501|*) # 501 Illegal CDDB protocol level: <n>.
+ 501) # 501 Illegal CDDB protocol level: <n>.
CDDBPROTO=`expr $CDDBPROTO - 1`
;;
CDDBPROTO=`expr $CDDBPROTO - 1`
;;
+ *) # Try a cddb query, since freedb2.org doesn't support the stat or ver commands
+ # FreeDB TESTCD disc-id is used for query
+ $CDDBTOOL query $CDDBURL $CDDBPROTO $CDDBUSER $CDDBHOST 03015501 1 296 344 > "$ABCDETEMPDIR/cddbstat"
+ RESPONSECODE=$(head -n 1 "$ABCDETEMPDIR/cddbstat" | cut -f1 -d' ')
+ case "$RESPONSECODE" in
+ 2??) # Server responded, everything seems OK
+ rc=0
+ ;;
+ esac
+ ;;
esac
done
if test $rc -eq 1; then
esac
done
if test $rc -eq 1; then
* Fix Writable temp directories not owned/writeable (Closes: #143552).
* Fix broken range code, patch from Charles Steinkuehler (Closes: #389981).
* Remove unneeded escapes in cddb-tool URLs.
* Fix Writable temp directories not owned/writeable (Closes: #143552).
* Fix broken range code, patch from Charles Steinkuehler (Closes: #389981).
* Remove unneeded escapes in cddb-tool URLs.
+ Add support for freedb2 (Closes: #391110).
+ another patch from Charles Steinkuehler.
- -- Colin Tuckley <colint@debian.org> Sun, 26 Jul 2009 16:58:00 +0100
+ -- Colin Tuckley <colint@debian.org> Sun, 26 Jul 2009 17:40:23 +0100
abcde (2.3.99.7-1) unstable; urgency=low
abcde (2.3.99.7-1) unstable; urgency=low