Comment 1 for bug 1049832

Revision history for this message
hitokiri (hitokiri) wrote :

bu değil ancak şu sorunun,
KeyError: 'Alsa Derleme ( ppa kayna\xc4\x9f\xc4\xb1 )'
Traceback (most recent call last):
Oluşma nedeni,
       if [[ "${line##*:}" =~ "/" ]] ; then
            nn=$(echo "${line##*:}" |cut -d "=" -f2)
        elif [[ "${line##*:}" =~ "_" ]] ;then
            unset nn
        else
            nn=$(echo "${line##*:}" |cut -d " " -f1)
        fi
        if [ ! -z $nn ];then
            xn=$(apt-cache search "(^$nn$)"|head -n 1|sed -e "s/^$nn - //g" -e "s/\\.//g")
            step+=("${line%%:*}.$xn":"${line##*:}")
        else
            step+=("${line%%:*}":"${line##*:}")
        fi
    fi
Burda ! -z kısmında bir gariplik olmalı ki,
fonksiyonlarda açıklama olmamasına rağmen "." ekleniyor,
Diğer asıl hatanın ise,hata değil eksik yorumlandırmanın ise,
if [ ! -z "`dpkg -l|grep python3-gi`" ] ;then
    [ $DEBUG_MODE -eq 1 ] && echo -e "\e[01;31m$LINENO: Çalıştırılan: arayuzpython3.py\e[00m"
    python3 arayuzpython3.py
elif [ ! -z "`dpkg -l|grep python-gi`" ];then
    [ $DEBUG_MODE -eq 1 ] && echo -e "\e[01;31m$LINENO: Çalıştırılan: arayuzgtk3.py \e[00m"
    python arayuzgtk3.py
elif [ ! -z "`dpkg -l|grep python-gtk2`" ];then
    [ $DEBUG_MODE -eq 1 ] && echo -e "\e[01;31m$LINENO: Çalıştırılan: arayuz.py\e[00m"
    python arayuz.py
else
    [ $DEBUG_MODE -eq 1 ] && echo -e "\e[01;31m$LINENO: Çalıştırılan: ubuntu-tr-betik-zenity\e[00m"
    bash ubuntu-tr-betik-zenity
fi
}

Bu kısımında demekki python için ayırmak yeterli gelmiyormuş,
bunun için ne yapılabilir,
arayuzgtk.py 'nin kapat fonskiyonuna "os" ile bir gnome terminal kuruluysa
değilse durumu eklemek gerek,