support appdata parsing in tools, support SUSE auto-pattern generation