Populate the package fields properly

The 'Depends' attribute meta data is not mandatory and should be checked
for existence. Other attributes added too.
Merge origin/depends-fix