• Luca Giambonini's avatar
    fix akabei-key import key (r65) · ddc07122
    Luca Giambonini authored
    When calling "akabei-key get B6611E8A" should add the new key to the akabei keychain, but the output is:
    
    sudo akabei-key get B6611E8A
    - 5A526467B6611E8A Jeff Huang s8321414@gmail.com
    Couldn't find key on the server: End of file
    
    The key was properly downloaded form the server but an error occours.
    Based on the gpg documentation (https://www.gnupg.org/documentation/manuals/gpgme/Listing-Keys.html) there is no need to verify that the key is correct.
    In fact the original code was wrong, if as input we write 0xB6611E8A the identified key is 5A526467B6611E8A so the if condition is never true:
       if (QString::fromLatin1(key->subkeys->keyid) == id)
    furthermore, the key->subkeys->keyid string does not contains the 0x prefix, so the condition is always false.
    ddc07122
Name
Last commit
Last update
.tx Loading commit data...
cmake/modules Loading commit data...
docs Loading commit data...
licenses Loading commit data...
scripts Loading commit data...
tools Loading commit data...
translations Loading commit data...
.reviewboardrc Loading commit data...
CMakeLists.txt Loading commit data...
Messages.sh Loading commit data...
README Loading commit data...
akabei.kdev4 Loading commit data...
akabeiaboutdata.cpp Loading commit data...
akabeiaboutdata.h Loading commit data...
akabeienums.h Loading commit data...
akabeilicensepath.h.cmake Loading commit data...
akabeioptions.cpp Loading commit data...
akabeioptions.h Loading commit data...
akabeiparser.cpp Loading commit data...
akabeiparser.h Loading commit data...
apm.cpp Loading commit data...
apm.h Loading commit data...
fieldnames.cpp Loading commit data...
fieldnames.h Loading commit data...
main.cpp Loading commit data...
pakabeiparser.cpp Loading commit data...
pakabeiparser.h Loading commit data...
parser.cpp Loading commit data...
parser.h Loading commit data...
parsingexceptions.h Loading commit data...
performoperation.cpp Loading commit data...
performoperation.h Loading commit data...
progressbar.cpp Loading commit data...
progressbar.h Loading commit data...
queryoperation.cpp Loading commit data...
queryoperation.h Loading commit data...
queueoperation.cpp Loading commit data...
queueoperation.h Loading commit data...
removeoperation.cpp Loading commit data...
removeoperation.h Loading commit data...
sync-transifex.sh Loading commit data...
syncoperation.cpp Loading commit data...
syncoperation.h Loading commit data...
upgradeoperation.cpp Loading commit data...
upgradeoperation.h Loading commit data...
utils.cpp Loading commit data...
utils.h Loading commit data...