summaryrefslogtreecommitdiff
path: root/dpkg-split
AgeCommit message (Collapse)AuthorFilesLines
2019-01-22When allocating use the variable instead of the type in sizeof()Guillem Jover2-6/+6
This makes it easier to guarantee we use the correct size for the involved variable.
2018-10-08dpkg-split: Use nfstrnsave() instead of nfmalloc() + memcpy()Guillem Jover1-4/+6
2018-08-01dpkg-split: Fix format string to match variable declarationGuillem Jover1-1/+1
Warned-by: cppcheck
2018-03-26Use internerr() or BUG() instead of assert()Guillem Jover1-2/+3
The problem with assert() is that it does not print the contents of the variables. It also can be disabled on NDEBUG. But we always want these consistency checks no matter what, and they are not performance sensitive anyway. Enable -Wno-nonnull-compare so that we can keep doing run-time non-NULL checks in functions, instead of just compile-time checks.
2016-10-30libdpkg: Use our own dpkg_ar_hdr instead of relying on the system oneGuillem Jover1-1/+1
The ar format is not standardized and some systems might provide a different format than the one used by dpkg. For example on AIX.
2016-10-30dpkg-split: Make the deb-split(5) generation reproducibleGuillem Jover1-0/+24
Honor SOURCE_DATE_EPOCH, so that we can control the output and generate reproducible split packages.
2016-10-30dpkg-split: Do not emit epochs for unambiguous versions in deb-split headerGuillem Jover1-1/+1
Regression introduced in commit ce4f0311e6e7a7b5125c4e881a0f2d3a8e1eea45.
2016-07-03libdpkg: Add new struct dpkg_ar and basic operationsGuillem Jover5-69/+85
Switch current code to use dpkg_ar instead of taking a filename and a file descriptor arguments.
2015-12-12Use new str_fmt() instead of m_asprintf()Guillem Jover2-4/+4
It should make the code more clear, and in many cases it avoids having to use a temporary variable.
2015-10-18Update Ian Jackson's email addressGuillem Jover6-6/+6
2015-05-30libdpkg: Rename DPKG_VERSION_ARCH to PACKAGE_RELEASEGuillem Jover1-1/+1
This avoids confusing the project-wide macro with the DPKG_VERSION_ namespaced ones.
2015-04-21Remove some unnecessary includes of assert.hNiels Thykier2-2/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2015-04-18debian: Update my copyright yearsGuillem Jover1-1/+1
2015-04-10Consistently use proper quotation marks all over the placeGuillem Jover5-37/+48
That is "" or '', and not the unbalanced `' pair.
2015-04-01dpkg-split: Parse deb control file directly from stdinGuillem Jover1-32/+22
This reduces the dpkg-deb calls to just one instead of one per field. In addition we also reduce the parsing and dumping to a single instance.
2015-01-28Switch code to use the new C locale character type functionsGuillem Jover2-7/+8
2014-10-06libdpkg: Namespace and reword subproc flagsGuillem Jover1-1/+1
2014-10-06libdpkg: Rename subproc_wait_check() to subproc_reap()Guillem Jover1-1/+1
2014-05-28dpkg-split: Uppercase and reword discard_which enum valuesGuillem Jover1-10/+10
Use the more meaningful DISCARD_PART_ prefix instead of the cryptic and now confusing DS_ one (previously coming from the discardsome() function).
2014-05-17build: Switch to use libtool for the static librariesGuillem Jover1-2/+1
This makes it possible to embed libcompat inside libdpkg, so that the static library that we ship is self contained with the required compatibility code, specifically the MD5 functions. This also prepares the build system for when we start building a shared library, although it disables it by default. Closes: #746122
2014-04-30dpkg-split: Fix short lived memory leaks in mksplit()Guillem Jover1-0/+4
Warned-by: coverity
2014-04-21dpkg-split, dpkg: Use new str_match_end() function instead of ad-hoc codeGuillem Jover1-11/+7
2013-12-07Use https:// URLs instead of http:// when possibleGuillem Jover6-6/+6
2013-12-07dpkg-split: Get rid of global partqueue queue variableGuillem Jover4-14/+18
Change scandepot() to return the queue, and discard_parts() to take it as argument.
2013-12-07dpkg-split: Rename discard symbolsGuillem Jover1-6/+13
Use underscores to split symbol names, and rename discardsome() to discard_parts().
2013-12-07dpkg-split: Make scandepot() staticGuillem Jover2-2/+3
2013-12-05Rename cmdinfos set functions to have underscores between wordsGuillem Jover1-2/+4
2013-11-23libdpkg: New dpkg_locales_init()Guillem Jover1-4/+1
Switch all program to use the new function instead of open-coding it.
2013-10-14libdpkg: Rename and namespace option parsing and loading functionsGuillem Jover1-1/+1
2013-10-14libdpkg: Add dpkg-based program startup and shutdown functionsGuillem Jover1-5/+2
These will perform any necessary action when starting and exiting a dpkg-based program.
2013-10-14libdpkg: Refactor report output buffering setup into a new functionGuillem Jover1-2/+1
2013-10-14dpkg-split: Remove redundant call to setvbuf()Guillem Jover1-2/+0
The output buffer is already setup in main().
2013-04-14Avoid assignments in C conditionalsGuillem Jover1-1/+2
2012-06-30Align --version with --help on help outputGuillem Jover1-1/+1
2012-06-30Change all programs to accept -? instead of -h for help outputGuillem Jover1-2/+2
This switch frees the -h option to be used in the distant future for other purposes, it also uses a character that does not have any other obvious meaning for help output, and which is pretty safe to be used blindly by the user in the same way as --help.
2012-06-30Avoid full stop and double newline at the end of errors and warningsJonathan Nieder1-4/+4
Error messages like "couldn't parse control information from foo.deb" are not full sentences, so don't punctuate them like one. The main purpose of this patch is stylistic consistency, but perhaps it can also make copy-and-paste from messages like dpkg-query: no path found matching pattern /usr/bin/agrep. a little easier. Most actual full sentences should remain untouched. A few full sentences are error messages at heart, so this patch converts those to lower-case sentence fragment form, too. [guillem@debian.org: - Add missed strings. - Minor tweaks to strings. ] Closes: #624000 Requested-by: Jari Aalto <jari.aalto@cante.net> Signed-off-by: Guillem Jover <guillem@debian.org>
2012-06-30libdpkg: Switch buffer I/O code to use struct dpkg_errorGuillem Jover3-5/+19
As a side effect this mkes the messages more clear as the caller has more context to describe the error conditions. Closes: #621763
2012-06-08dpkg-split: Allow overridding admindir from the environmentGuillem Jover1-1/+6
This allows to use the correct depotdir whenever dpkg is being called with --admindir.
2012-05-23Check parsed integers for out of range errorsGuillem Jover3-4/+13
Verify that the numbers are not out of the range; i.e. that no negative values are allowed if not appropriate, and that no overflows occur. Closes: #580038
2012-05-04build: Use MKDIR_P instead of obsolete mkdir_pGuillem Jover1-1/+1
Autoconf provides an AC_PROG_MKDIR_P macro defining MKDIR_P which is called by AM_INIT_AUTOMAKE; the obsolete mkdir_p, currently aliased to MKDIR_P will disappear with automake 1.13.
2012-04-09dpkg-split: Ignore minor format version number changesGuillem Jover1-1/+1
This unifies the behaviour with the deb binary format.
2012-04-09Switch deb format version handling to use the new deb-version moduleGuillem Jover3-8/+20
This simplifies the parsing and checking and avoids having to treat the format versions as floats, which can cause parse errors depending on the locale (this only affected the old deb format).
2012-04-01Use cmp() == 0 instead of !cmp()Guillem Jover2-2/+2
2012-03-27libdpkg: Refactor ar member check into new dpkg_ar_member_is_illegal()Guillem Jover1-2/+2
2012-03-27Mark enum and struct member comments as doxygen descriptionsGuillem Jover1-2/+2
2012-02-01Move copyright information from --version output to file comment headersGuillem Jover1-2/+2
Having to keep this information twice is error-prone as it easily gets out of sync. Having to translate it is bothersome. It's not consistent across dpkg tools, some do print it some don't. It's currently not accurate, as the output would need to include the holders for all files that end up being part of the binary. And listing it in the --versions output is visually annoying and the wrong place. Just keep this where it belongs, at the file comment headers, above the license information.
2011-09-18libdpkg: Refactor path basename code into new path_basename functionGuillem Jover1-5/+3
This function is an equivalent of the GNU basename, but this one will work consistently on any system regardless of libc used.
2011-09-18dpkg-split: Do not include trailing slash in PARTSDIRGuillem Jover3-16/+5
2011-09-09libdpkg: Rename fd_null_copy() to fd_skip()Guillem Jover1-1/+1
2011-07-07libdpkg: Rename myopt module to optionsGuillem Jover5-5/+5