This commit is contained in:
helixarch 2015-05-06 15:51:28 +03:00
parent c9bfd09c98
commit 3ce1aee55b

10
debtap
View File

@ -3165,7 +3165,7 @@ if [ $(grep -q Replaces: control; echo $?) -eq 0 ]; then
done done
done done
sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02 sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02
grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg' tempfile02 > replacements-initial-check-list grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > replacements-initial-check-list
packages-names-translator packages-names-translator
for i in `sort -u tempfile20`; do echo "replaces = $i" >> .PKGINFO ; done for i in `sort -u tempfile20`; do echo "replaces = $i" >> .PKGINFO ; done
rm -rf *tempfile* replacements-initial-check-list final-check-list rm -rf *tempfile* replacements-initial-check-list final-check-list
@ -3179,7 +3179,7 @@ if [ $(grep -q Conflicts: control; echo $?) -eq 0 ]; then
done done
done done
sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02 sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02
grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg' tempfile02 > conflicts-initial-check-list grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > conflicts-initial-check-list
packages-names-translator packages-names-translator
for i in `sort -u tempfile20`; do echo "conflict = $i" >> .PKGINFO ; done for i in `sort -u tempfile20`; do echo "conflict = $i" >> .PKGINFO ; done
rm -rf *tempfile* conflicts-initial-check-list final-check-list rm -rf *tempfile* conflicts-initial-check-list final-check-list
@ -3193,7 +3193,7 @@ if [ $(grep -q Provides: control; echo $?) -eq 0 ]; then
done done
done done
sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02 sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02
grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg' tempfile02 > provisions-initial-check-list grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > provisions-initial-check-list
packages-names-translator packages-names-translator
for i in `sort -u tempfile20`; do echo "provides = $i" >> .PKGINFO ; done for i in `sort -u tempfile20`; do echo "provides = $i" >> .PKGINFO ; done
rm -rf *tempfile* provisions-initial-check-list final-check-list rm -rf *tempfile* provisions-initial-check-list final-check-list
@ -3219,7 +3219,7 @@ if [ $(grep -q Depends: control; echo $?) -eq 0 ]; then
done done
done done
sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02 sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02
grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg' tempfile02 > dependencies-initial-check-list grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > dependencies-initial-check-list
packages-names-translator packages-names-translator
for i in `sort -u tempfile20`; do echo "depend = $i" >> .PKGINFO ; done for i in `sort -u tempfile20`; do echo "depend = $i" >> .PKGINFO ; done
rm -rf *tempfile* dependencies-initial-check-list final-check-list rm -rf *tempfile* dependencies-initial-check-list final-check-list
@ -3233,7 +3233,7 @@ if [ $(grep -q 'Recommends:\|Suggests:' control; echo $?) -eq 0 ]; then
done done
done done
sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02 sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02
grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg' tempfile02 > optional-dependencies-initial-check-list grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > optional-dependencies-initial-check-list
packages-names-translator packages-names-translator
for i in `sort -u tempfile20`; do for i in `sort -u tempfile20`; do
j=$(echo $i | sed s'/=\|>\|</ /' | gawk '{print $1}') j=$(echo $i | sed s'/=\|>\|</ /' | gawk '{print $1}')