Checks if two AppInfos are equal.
the first AppInfo.
the second AppInfo.
true if this is equal to appinfo2. false otherwise.
appinfo2