Description of problem: Some debian/ubuntu packages are reported by rhnpush not to be a package.. I have seen this problem on quite a few packages How reproducible: Every time Steps to Reproduce: 1. Download "ftp://archive.ubuntu.com/ubuntu/pool/main/a/anthy/anthy-common_9100h-16ubuntu3_all.deb" 2. run "rhnpush -c <channel name> anthy-common_9100h-16ubuntu3_all.deb Actual results: [root@spacewalk ~]# rhnpush -c ubuntu-13.04-new anthy-common_9100h-16ubuntu3_all.deb ERROR: anthy-common_9100h-16ubuntu3_all.deb: This file doesn't appear to be a package Expected results: Package is uploaded to spacewalk.. Additional info:
Created attachment 828746 [details] Fixes problems with debian packages that doesn't "appear as packages" In deb-files the data.tar package is compressed with xz, rather than bz2 or gz.. This patch adds support for these packages...
Hello Martin, thanks for your patch. The patchd file is part of python-debian package so I'm reassigning the bug to its maintainers. Thanks, Michael
Already tracked in Debian (which is upstream) as bug 506861.
I add to package patch which is included in Debian BTS 506861.
python-debian-0.1.21-10.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/python-debian-0.1.21-10.fc19
python-debian-0.1.21-10.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/python-debian-0.1.21-10.fc20
python-debian-0.1.21-10.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/python-debian-0.1.21-10.el6
I wanted to build el5 package as well. But that is not possible due missing deps python-six.
Package python-debian-0.1.21-10.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-debian-0.1.21-10.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-22403/python-debian-0.1.21-10.fc20 then log in and leave karma (feedback).
Is it possible to test this on CentOS 6??? My test system isn't on Fedora???
It is in EPEL6 testing as well (see #7). Just run su -c 'yum update --enablerepo=updates-testing python-debian"
[root@mjspacewalk ~]# yum update --enablerepo=updates-testing python-debian Loaded plugins: fastestmirror, versionlock Error getting repository data for updates-testing, repository not found ??? What to do??
Hi.. Should be: yum update --enablerepo=epel-testing python-debian
Hi again.. Just figured out that this problem also exist if data.tar is packaged in lzma format... So the line should probably be changed: PART_EXTS = ['gz', 'bz2', 'xz'] # possible extensions to PART_EXTS = ['gz', 'bz2', 'xz', 'lzma'] # possible extensions
I agree. But I hesitate to be faster than upstream. Even having that patch in Fedora before it is accepted in Debian itself is on the edge. I'm monitoring Debian BTS 506861 and if resolution will be different from patch provided in #9 then I will reopen this BZ.
Ok.. As far as I understand xz and lzma is basically the same... So for now, I will probably do my own repository, with a forked version of python-debian... Should I do anything (new case/bug) to prepare for the lzma??? or will you push it from here??
Try to push on upstream. Once it land in upstream I will push it from here.
python-debian-0.1.21-10.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
python-debian-0.1.21-10.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
python-debian-0.1.21-10.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
Hi.. Nothing is happening upstream?? Anything I can do to get lzma support into the CentOS/Fedora repository??
(In reply to Fedora Update System from comment #20) > python-debian-0.1.21-10.el6 has been pushed to the Fedora EPEL 6 stable > repository. If problems still persist, please make note of it in this bug > report. I'm running rhnpush on Centos 6.5 x86_64 and when I try to push an Ubuntu DEB package I get the error: ERROR: /tmp/kajongg_4.8.2-0ubuntu1_all.deb: This file doesn't appear to be a package Using: python-debian-0.1.21-10.el6.noarch Steps to reproduce it: wget http://archive.ubuntu.com/ubuntu/pool/main/k/kdegames/kajongg_4.8.2-0ubuntu1_all.deb rhnpush -c ubuntu_12_04_i686 -u vpelagatti -p XXXXXXX kajongg_4.8.2-0ubuntu1_all.deb ERROR: kajongg_4.8.2-0ubuntu1_all.deb: This file doesn't appear to be a package If you need any additional infomation just let me know. Thanks
Created attachment 892144 [details] list of packages on VM i686
Created attachment 892145 [details] List of packages on server x86_64
I create a VM using CentOS 6.5 i686 and it works but it doesn't on Centos 6.5 x86_64 server. Attachment 892144 [details] has the list of packages installed on the i686 VM and attachment 892145 [details] has the list of packages installed on the x86_64 server. If you need any additional infomation just let me know. Thanks
(In reply to Martin Juhl from comment #21) > Hi.. > > Nothing is happening upstream?? > > Anything I can do to get lzma support into the CentOS/Fedora repository?? Whats the staus on this? I'm also waiting for the "PART_EXTS = ['gz', 'xz', 'lzma']" patch to go upstream
Will this ever be fixed ?
I just rebased to 0.1.27 version, which includes that xz patch. However it does not include support for lzma. Upstream does not include it as Debian does not have python lzma binding. So if somebody write patch for lzma (with test) I can review it and put it in Fedora. However I do not have time to write it on my own.
Here is the link for el6 errata: https://bodhi.fedoraproject.org/updates/python-debian-0.1.27-2.el6
@Miroslav Suchý I'd be happy to help and do the necessary changes. However I never contributed before and would need some doc about the process. Does such a doc exist ?
(In reply to schuler.philipp from comment #30) > I'd be happy to help and do the necessary changes. However I never > contributed before and would need some doc about the process. > Does such a doc exist ? None specific to python-debian. Lots to writing patch in general (everywhere on internet). Probably best start is to install python-debian, backup the file you want to modify e.g. cp /usr/lib/python2.7/site-packages/debian/debfile.py /usr/lib/python2.7/site-packages/debian/debfile.py.orig then modify the debfile.py untill it works as desired and then run: diff -Naur /usr/lib/python2.7/site-packages/debian/debfile.py.orig /usr/lib/python2.7/site-packages/debian/debfile.py > my-patch.diff And then post the resulting file here.
(In reply to Miroslav Suchý from comment #31) ok great. Thats obvious. I was refering to contributing directly. Anyways..will you also push it to EPEL6 ? I can only see it for EPEL7 here https://bodhi.fedoraproject.org/updates/?packages=python-debian but also for EL6 My Spacewalk server is still running on CentOS6/EPEL6. Which version should I base the patch on ? 0.1.27-2 or the old python-debian-0.1.21-10 ?
(In reply to schuler.philipp from comment #32) > Anyways..will you also push it to EPEL6 ? I can only see it for EPEL7 here > https://bodhi.fedoraproject.org/updates/?packages=python-debian but also for > EL6 https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-25c83db8f1 > Which version should I base the patch on ? 0.1.27-2 or the old > python-debian-0.1.21-10 ? On 0.1.27-2 version.
Created attachment 1086524 [details] patch for LZMA support
above patch is tested on our production Spacewalk. For writing a real test for CI, please point me at the right place where tests are living
(In reply to Miroslav Suchý from comment #33) > (In reply to schuler.philipp from comment #32) > > Anyways..will you also push it to EPEL6 ? I can only see it for EPEL7 here > > https://bodhi.fedoraproject.org/updates/?packages=python-debian but also for > > EL6 > > https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-25c83db8f1 > > > Which version should I base the patch on ? 0.1.27-2 or the old > > python-debian-0.1.21-10 ? > > On 0.1.27-2 version. Could we finally get this package fixed after 2.5 yrs so we dont have to patch after installation so we can actually use it. Its only the lzma patch missing now, I added a patch half a year ago ... and "Fixed In Version: python-debian-0.1.21-10.el6" is also wrong. That only includes the "xz" patch. Not only me but alot other people using Spacewalk with .deb packages would really appreciate a final fix !
Your wish has been fulfilled.
python-debian-0.1.27-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-1c72aeb468
python-debian-0.1.27-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-52620ad323
python-debian-0.1.27-3.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-43e132028a
python-debian-0.1.27-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f47b28febe
python-debian-0.1.27-3.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-5daac272c4
(In reply to Miroslav Suchý from comment #37) > Your wish has been fulfilled. big thanks!
python-debian-0.1.27-4.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-52620ad323
python-debian-0.1.27-3.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-5daac272c4
python-debian-0.1.27-3.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-43e132028a
python-debian-0.1.27-3.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-1c72aeb468
python-debian-0.1.27-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f47b28febe
python-debian-0.1.27-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
python-debian-0.1.27-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
python-debian-0.1.27-3.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
python-debian-0.1.27-3.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
python-debian-0.1.27-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
the problem still exists, is there a workaround please ? I am running below version on CentOS 7: Name : python-debian Arch : noarch Version : 0.1.27 Release : 3.el7 Size : 382 k Repo : installed From repo : epel I see in /usr/lib/python2.7/site-packages/debian/debfile.py DATA_PART = 'data.tar' # w/o extension CTRL_PART = 'control.tar' PART_EXTS = ['gz', 'bz2', 'xz', 'lzma'] # possible extensions INFO_PART = 'debian-binary' MAINT_SCRIPTS = ['preinst', 'postinst', 'prerm', 'postrm', 'config'] I opened db5.3-util_5.3.28-13.1_amd64.deb package and data is in format .tzr.xz and control is .tar.gz is it the problem ?
tzr? never heard of. Please open a new issue - this is definitely something different.
sorry .. there was a typo, the data file is data.tar.xz