upkg-plist: Use if/elif/else for get type.