Arch is sometimes included in package name in Debian 7 wheezy so pkgname.strip().split(':')[0]