rectifiy arch name in fact scans

This commit is contained in:
Chris Meyers 2016-12-16 10:06:34 -05:00
parent ef1f77bf8e
commit a566cec5db

View File

@ -22,19 +22,19 @@ EXAMPLES = '''
# {
# "source": "apt",
# "version": "1.0.6-5",
# "architecture": "amd64",
# "arch": "amd64",
# "name": "libbz2-1.0"
# },
# {
# "source": "apt",
# "version": "2.7.1-4ubuntu1",
# "architecture": "amd64",
# "arch": "amd64",
# "name": "patch"
# },
# {
# "source": "apt",
# "version": "4.8.2-19ubuntu1",
# "architecture": "amd64",
# "arch": "amd64",
# "name": "gcc-4.8-base"
# }, ... ] } }
'''
@ -64,7 +64,7 @@ def deb_package_list():
ac_pkg = apt_cache[package].installed
package_details = dict(name=package,
version=ac_pkg.version,
architecture=ac_pkg.architecture,
arch=ac_pkg.architecture,
source='apt')
installed_packages.append(package_details)
return installed_packages