New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chokes on repo components that don't have any packages in them #1
Comments
|
Weird, the code shouldn't even get that far... |
Adding new stats in a short amount of time is pretty suspicious, maybe someone is processing an empty section of packages here. See also #1
|
Okay, this issue seems fixed, tried it here with a small archive and a fake section. |
|
I also tried this with an empty |
|
I rebuilt from the tip of And here's the (I had to zip it to make github accept it as an attachment. The original file was |
|
For context, I'm on Debian Stretch, without I used I modified diff --git a/dub.json b/dub.json
index 52dac6b..3ca1a39 100644
--- a/dub.json
+++ b/dub.json
@@ -28,7 +28,7 @@
"x-sourcePaths": ["source", "build/bindings"],
"x-importPaths": ["build/bindings"],
- "dflags": ["-Wl,--push-state,-no-as-needed", "-lcurl", "-Wl,--pop-state"],
+ "dflags": ["-Wl,--push-state,-no-as-needed", "-lcurl", "-Wl,--pop-state", "-I/opt/appstream/include/", "-Wl,-L/opt/appstream/lib/"],
"systemDependencies": "LMDB, AppStream, GLib2, GIO, GObject, libarchive, GDLib, LibRSVG2",
"libs": ["lmdb", "archive", "glib-2.0", "gobject-2.0", "gio-2.0", "appstream", "cairo", "gdk-pixbuf-2.0", "librsvg-2.0"]
}I tried doing it by setting |
|
That's fine ;-) The cause of this bug was libarchive's auto-detection failing on 0-byte gzip compressed files. So I implemented a workaround for this now. Thanks for reporting this! |
|
Thanks for the quick response! It's now fixed for me. |
|
FYI, I created an issue against |
Actually, |
|
Okay, then I need to investigate why it worked in my quick test. |
|
Based on the explanation in libarchive/libarchive#706 (comment), there is a better solution to this. See PR #8. |
Eg,
xenial-updates/main/binary-amd64/Packages.gzdoesn't have any packages in it yet.The error is:
FYI, I'm not actually running this on the real Ubuntu repo. I just gave that as an example. We have a company-specific repo that I'm trying to generate data for. I've had to remove the empty components from
asgen-config.jsontemporarily.The text was updated successfully, but these errors were encountered: