ext/featurefmt/dpkg: handle malformed packages

pull/362/head
Jimmy Zelinskie 7 years ago
parent 8227165a78
commit 590e7e2602

@ -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

@ -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

Loading…
Cancel
Save