aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* rpm2tar: have error messages say "error"HEADv2021.03.16masterMike Frysinger2021-03-161-1/+1
| | | | | | This makes it clear that we're aborting & exiting non-zero. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* build: use HEAD when creating release archiveMike Frysinger2021-03-161-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* build: ignore release tarballsMike Frysinger2021-03-161-0/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* build: switch to datestampsMike Frysinger2021-03-161-2/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* test: force ASCII output with testsMike Frysinger2021-03-161-1/+1
| | | | | | Test listings are all in ASCII, so ignore host env settings. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* README: rewrite & updateMike Frysinger2021-03-163-26/+58
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpm2tar: add support for zstd filesErik Zscheile2021-03-162-1/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpmoffset: add zstd supportRafał Mużyło2020-04-241-0/+2
| | | | | URL: https://bugs.gentoo.org/719208 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* package with xz rather than lzmav9.0.0.5gMike Frysinger2012-05-171-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpmoffset: add support for LZMA archivesMike Frysinger2012-05-171-9/+38
| | | | | | | | | | The LZMA format lacks proper magic markings (hence one of the driving forces for the new XZ format), so we have to rework things to deal with this fuzzy matching without throwing false positives. URL: https://bugs.gentoo.org/321439 Reported-by: Peter Volkov <pva@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpmoffset: provide a local memmem for non-glibc systemsChristoph Junghans2012-05-171-0/+20
| | | | | | URL: https://bugs.gentoo.org/397835 Reported-by: Christoph Junghans <ottxor@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* improve local symlink managementMike Frysinger2010-08-232-5/+16
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpm2targz: avoid double deletion of workdirMike Frysinger2010-08-221-1/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add a small test frameworkMike Frysinger2010-08-223-0/+56
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add support for xz compressed rpmsv9.0.0.4gMike Frysinger2009-11-063-26/+54
| | | | | | | | | Newer RPM distros are moving to XZ compression, so supporting that would probably be a good thing. URL: http://bugs.gentoo.org/292057 Reported-by: Rafał Mużyło <galtgendo@o2.pl> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpm2targz: make coding/testing easierMike Frysinger2009-11-061-7/+13
| | | | | | | Add some err/warn helper functions, and use the local rpmoffset when testing the local script. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpmunpack: new shortcut for quicker unpackingMike Frysinger2009-11-062-6/+15
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ignore gdb/patch filesMike Frysinger2009-11-061-0/+9
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpmoffset: simple brute force test script for offset checkingv9.0.0.3gMike Frysinger2008-09-171-0/+34
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpmoffset: fix boundary bugMike Frysinger2008-09-171-1/+2
| | | | | | | | | | | | | | | | | Dmitry Karasik writes: When searching for the payload offset and not finding it in the current buffer, the code attempts to move the last (MAGIC_SIZE - 1) bytes to the beginning of the buffer. However the code for that is wrong. It reads: memmove(p, p + read_cnt - MAGIC_SIZE - 1, MAGIC_SIZE - 1); but should be: memmove(p, p + left + read_cnt - MAGIC_SIZE + 1, MAGIC_SIZE - 1); Mike Frysinger writes: The memmove() also needs to occur before left gets updated to avoid reading beyond the bounds of the p buffer and thus messing up the first adjustment. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Dmitry Karasik <dkarasik@gmail.com>
* fix .tar.lzma suffix for rpm2tarlzma and set -S by default for rpm2tar* ↵v9.0.0.2gMike Frysinger2008-08-291-1/+4
| | | | | | rather than rpm2t* Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* install symlinks for all the fun targetsMike Frysinger2008-08-291-1/+4
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rewrite code again to be faster and fix bug in previous commit (#235290)Mike Frysinger2008-08-291-18/+44
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Declare explicit sign for char arrayv9.0.0.1gMike Frysinger2008-08-191-2/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Add a -S/--strip-path optionMike Frysinger2008-08-191-7/+11
| | | | | | | | | | | | | | | | Often times it's nice to create a "raw" tarball which does not include the package name in its paths. Compare old method: $ rpm2targz pkg-ver.rpm $ tar tf pkg-ver.tar.gz ./pkg-ver/<files> With new method: $ rpm2targz -S pkg-ver.rpm $ tar tf pkg-ver.tar.gz ./<files> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpmoffset: cleanup and remove size limit on cpio offsetv9.0.0.0gCyberjun2008-05-311-21/+30
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rewrite and cleanupMike Frysinger2008-05-311-100/+150
| | | | | | | | | | This rewrites the rpm2targz script so that it is easier to extend with custom invocation names (rpm2targz/rpm2tgz/rpm2tar/etc...), with a variety of directory creation tools (mktemp/mcookie/whatever), and with command line options. It also cleans up after itself and includes a lot of error checking. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpm2targz: fixup bashisms that leaked inDiego Pettenò2008-05-311-2/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpm2targz: use more portable codeEmanuele Giaquinta2008-05-311-3/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpm2targz: make tempfile handling secureNed Ludd2008-05-311-19/+23
|
* add support for rpms with bzip2 compressionphceac2008-05-312-4/+39
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add files to help with distMike Frysinger2008-05-313-0/+46
| | | | | | | Ignore generated files, document this new repository, and add a Makefile to build/install things for us. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* import rpm2targz-9.0 unmodifiedv9.0Mike Frysinger2008-05-313-0/+136
Signed-off-by: Mike Frysinger <vapier@gentoo.org>