|
我用的是flashplugin-installer-10.0.22.87ubuntu2,它会在deb配置的时候下载http://archive.canonical.com/poo ... /下然后安装。
但是wget实在太慢了,我就手工用downthemall把它下载到/var/cache/flashplugin-installer/然后reconfigureflashplugin-installer,奇怪的是它仍然重新去下载。还把我下好的给覆盖了
我下了flashplugin-installer-10.0.22.87ubuntu2的源代码,看了它的postinst文件,照上面的意思,它应该会优先检查本地文件然后再通过网络下载的。
附:postinst的片断
fp_download_and_unpack() {
cd /var/cache/flashplugin-installer
db_get flashplugin-installer/local
if [ -d "$RET" -a -f "$RET"/$FILENAME ]; then
echo "Installing from local file $RET/$FILENAME"
cp -f -p "$RET"/$FILENAME ${FILENAME}_TEMP
mv -f ${FILENAME}_TEMP $FILENAME
else # no local file
db_get flashplugin-installer/httpget
if [ "$RET" != "true" ]; then
fp_exit_with_error "download or license refused"
fi
# setting wget options
:> wgetrc
echo "noclobber = off" >> wgetrc
echo "noclobber = off" >> wgetrc
echo "dir_prefix = ." >> wgetrc
echo "dirstruct = off" >> wgetrc
echo "verbose = on" >> wgetrc
echo "progress = dot:default" >> wgetrc
# downloading the plugin
echo "Downloading..."
rm -f $FILENAME
WGETRC=wgetrc wget $PARTNER_URL \
|| fp_exit_with_error "download failed"
rm -f wgetrc
echo "Download done."
fi # end if local file
# verify SHA256 checksum of (copied or downloaded) tarball
rm -rf adobe_flashplugin*/
echo "$SHA256SUM_TGZ $FILENAME" | sha256sum -c > /dev/null 2>&1 \
|| fp_exit_with_error "sha256sum mismatch $FILENAME"
# unpacking and checking the plugin
tar xzf $FILENAME || fp_exit_with_error "cannot unpack plugin"
}
看完脚本之后我的问题就是不知道本地文件该放在什么地方了。。 |
|