ext/featurefmt/dpkg: handle malformed packages

This commit is contained in:
Jimmy Zelinskie 2017-04-11 15:44:20 -04:00
parent 8227165a78
commit 590e7e2602
2 changed files with 5 additions and 0 deletions

View File

@ -97,6 +97,9 @@ func (l lister) ListFeatures(files tarutil.FilesMap) ([]database.FeatureVersion,
} else {
pkg.Version = version
}
} else if line == "" {
pkg.Feature.Name = ""
pkg.Version = ""
}
// Add the package to the result array if we have all the informations

View File

@ -60,6 +60,8 @@ This package is not necessary for most modern Linux systems, where the udev
subsystem provides a more dynamic mechanism for device file management.
Original-Maintainer: Debian QA Group <packages@qa.debian.org>
Package: brokenPackageWithNoVersionThatShouldGetThrownOut
Package: libgcc1
Status: install ok installed
Priority: required