summaryrefslogtreecommitdiff
path: root/importpkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'importpkg.py')
-rwxr-xr-ximportpkg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/importpkg.py b/importpkg.py
index 2f3979b..d63b85e 100755
--- a/importpkg.py
+++ b/importpkg.py
@@ -132,7 +132,7 @@ def process_package(db, filelike):
control = deb822.Packages(control)
package = control["package"].encode("ascii")
try:
- source = control["source"].encode("ascii")
+ source = control["source"].encode("ascii").split()[0]
except KeyError:
source = package
version = control["version"].encode("ascii")