Skip to content

Commit

Permalink
support: re-instate getmuxlist script to ensure pbuilder script works
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsutton committed Jan 31, 2013
1 parent 432009a commit 7a52ff4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
14 changes: 4 additions & 10 deletions configure
Expand Up @@ -175,16 +175,10 @@ fi
#
if enabled linuxdvb && enabled dvbscan; then
printf "${TAB}" "fetching dvb-scan files ..."
if [ -d ${ROOTDIR}/data/dvb-scan/.git ]; then
(cd ${ROOTDIR}/data/dvb-scan; git pull) &> /dev/null
else
rm -rf ${ROOTDIR}/data/dvb-scan &> /dev/null
URL=git://linuxtv.org/dtv-scan-tables.git
git clone $URL ${ROOTDIR}/data/dvb-scan &> /dev/null
if [ $? -ne 0 ]; then
echo "fail"
die "Failed to fetch dvb-scan data (use --disable-dvbscan)"
fi
${ROOTDIR}/support/getmuxlist
if [ $? -ne 0 ]; then
echo "fail"
die "Failed to fetch dvb-scan data (use --disable-dvbscan)"
fi
echo "ok"
fi
Expand Down
19 changes: 19 additions & 0 deletions support/getmuxlist
@@ -0,0 +1,19 @@
#!/bin/bash
#
# Fetch DVB scan files
#

# Arguments
DIR=$1
[ -z "$DIR" ] && DIR=$(dirname $0)/../data/dvb-scan

# Update
if [ -d ${DIR}/.git ]; then
(cd ${DIR}; git pull) &> /dev/null

# Fetch
else
rm -rf ${DIR} &> /dev/null
URL=git://linuxtv.org/dtv-scan-tables.git
git clone $URL ${DIR} &> /dev/null
fi

0 comments on commit 7a52ff4

Please sign in to comment.