View Single Post
mrexcess's Avatar
Posts: 95 | Thanked: 28 times | Joined on Oct 2010 @ UK
#381
Originally Posted by hawaii View Post
Use "dpkg-deb -x" to extract the contents to a temporary working directory.
Use "dpkg-deb --control" to yank out the debian/control files to the temp dir.
Modify your control file with your favourite editor and then repackage the entire directory using "dpkg -b".
sorry for coming back on this again but this has me stumped.
(fed up of having to downgrade and upgrade every day to install /update)

All from ssh as root

- I extract
Code:
Nokia-N900:/var/tmp# dpkg-deb -x /home/user/MyDocs/wl1251-maemo/binary/osso-wlan/osso-wlan_3.0.20+0m5-1_armel.deb  /var/tmp/remod2/
- get the control file

Code:
Nokia-N900:/var/tmp# dpkg-deb --control /home/user/MyDocs/wl1251-maemo/binary/osso-wlan/osso-wlan_3.0.20+0m5-1_armel.deb  /var/tmp/remod2/DEBIAN/
- edit the line 'Version' to remove the -1 in nano

- Write out the new deb

Code:
Nokia-N900:/var/tmp/remod2# dpkg -b /var/tmp/remod2/ /var/tmp/remod2/osso-wlan_3.0.20+0m5_armel.deb
dpkg-deb: building package `osso-wlan' in `/var/tmp/remod2/osso-wlan_3.0.20+0m5_armel.deb'.
tar: unrecognized option `--format=gnu'
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) multi-call binary

Usage: tar -[czxtvO] [-X FILE] [-f TARFILE] [-C DIR] [FILE(s)]...

dpkg-deb: subprocess tar -cf returned error exit status 1
i have a osso-wlan_3.0.20+0m5_armel.deb, but its 0 kb..

Sorry for the big post, but after a few hours mucking about im at a loss (first time doing this, im sure youre shocked to hear)
any help would be appreciated

EDIT: incase anyone else is trying this it can be written out again with pypackager aparently, not got round to doing it myself though cos of other issues
__________________
@ my forum username if you need to tweet me

Last edited by mrexcess; 2011-04-19 at 13:15. Reason: many edits since i worked something out just as i posted