Comments (6)
I found that file at https://download.copr.fedorainfracloud.org/results/audron/dexed/fedora-38-aarch64/repodata/af12533499469117e3824bc938bfc3208539deb44bbf56ec2612fc383b28a1f4-primary.xml.gz. Supplying the whole file reveals the failure:
$ gzip -tv af12533499469117e3824bc938bfc3208539deb44bbf56ec2612fc383b28a1f4-primary.xml.gz
af12533499469117e3824bc938bfc3208539deb44bbf56ec2612fc383b28a1f4-primary.xml.gz: OK
$ file af12533499469117e3824bc938bfc3208539deb44bbf56ec2612fc383b28a1f4-primary.xml.gz
af12533499469117e3824bc938bfc3208539deb44bbf56ec2612fc383b28a1f4-primary.xml.gz: DOS/MBR boot sector; partition 1 : ID=0x4b, active 0xd0, start-CHS (0x63,239,44), end-CHS (0x33d,134,0), startsector 316955931, 1708404748 sectors; partition 3 : ID=0x53, active 0xaa, start-CHS (0x33a,156,2), end-CHS (0x22c,176,51), startsector 1315648692, 2595702924 sectors; partition 4 : ID=0x3a, active 0xca, start-CHS (0x1d5,97,37), end-CHS (0x28b,241,55), startsector 2173204403, 2875341233 sectors
$ rpm -q file-libs
file-libs-5.44-3.fc39.x86_64
That's a clear failure of file tool (libmagic database).
Please understand that the detection is always only approximate. For createrepo_c, please always keep a suffix in the file name. It's a way how YUM repository metadata delivers the compression algorithm. And it's the only way which avoids the detection.
I recommend closing this createrepo_c issues as we cannot fix it on createrepo_c side.
from createrepo_c.
createrepo_c uses file (magic) library underneath. Hence it's correct that both crearerepo_c and file tool agree. I suspect that's an regression in an update of file-libs RPM package. Could you try an older file-libs version? Or share with us the misdetected archive?
from createrepo_c.
createrepo_c uses file (magic) library underneath. Hence it's correct that both crearerepo_c and file tool agree. I suspect that's an regression in an update of file-libs RPM package. Could you try an older file-libs version? Or share with us the misdetected archive?
from createrepo_c.
Sorry, for the double post.
I reversed your af12533499469117e3824bc938bfc3208539deb44bbf56ec2612fc383b28a1f4 sample into a binary file and I cannot reproduce the misdetection. I tried file-libs-5.41-4.fc36.x86_64 and file-libs-5.44-3.fc39.x86_64. What's your file-libs version?
from createrepo_c.
I'm on Fedora 36 but I believe this can also be reproduced on EL8
from createrepo_c.
I looped in @vmihalko on Slack as the maintainer of the file library
from createrepo_c.
Related Issues (20)
- [1.0 breaking change] - Don't generate sqlite metadata by default HOT 4
- Can createrepo_c generate shared pools? HOT 4
- Add python getter for signature headers HOT 13
- proposal: Change package metadata HOT 13
- Code for fetching signatures uses PGP and GPG header tags instead of RSAHEADER + DSAHEADER tags
- Invalid C in cmd_parser.c - fails compile HOT 2
- Typo/mixed tense "doesn't exists" in several locations HOT 2
- Undocumented change in python API HOT 6
- [1.0 breaking change] - consolidate compression options HOT 9
- [1.0 breaking change] - consolidate checksum options HOT 12
- Missing argument for RepomdRecord.fill() in Python documentation.
- [FIX] Build from 'master' branch is broken HOT 3
- `_XOPEN_SOURCE` define in `src/misc.c` seems extraneous
- Drop `--database` and `--no-database`, split?/drop `sqliterepo_c` HOT 5
- Sending SIGTERM to "createrepo_c --workers 2" sometimes leads to a crash HOT 6
- `--pkglist` can't be used with non-regular files
- Parsing primary.xml error: Start tag expected, '<' not found HOT 4
- heap buffer overflow and stack buffer overflow in test suite HOT 3
- Intermittent crash in `ci-dnf-stack/dnf-behave-tests/createrepo_c/zchunk.feature` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from createrepo_c.