Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bin/bash
- d_INFO=/var/lib/dpkg/info
- ReadDir(){
- while read aList; do
- if [ 0 -lt `dirHas $2 $1` ];then
- echo $MACHED_PACKAGE | WriteInfo
- fi
- done <<EOF
- `ls $1`
- EOF
- }
- dirHas(){
- DIR=$1
- FILE=$2
- while read file_i; do
- done <<EOF
- `ls $1`
- EOF
- }
- WriteInfo(){
- while read arg_i; do
- BN=`basename $arg_i`
- case $BN
- control)
- echo '' >> $d_INFO
- cat arg_i >>$d_info
- ;;
- *.deb)
- echo '' >> $d_INFO
- dpkg-deb -f $arg_i >>$d_info
- esac
- done
- }
Add Comment
Please, Sign In to add comment