aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* rm_rf: make shallow wrapper around rm_rf_atFabian Groffen2018-12-201-12/+1
| | | | | | | Since rm_rf_at now removes the object being pointed at, rm_rf doesn't have to try doing that again. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* tests/mkdir: fix after changes to rm_rf_atFabian Groffen2018-12-201-2/+0
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* initialize_portage_env: empty default for FEATURES in vars_to_readFabian Groffen2018-12-201-1/+1
| | | | | | | | | Because FEATURES is an ISTR (incremental string) when a default it set, we're never able to loose the default, so don't set it. This causes a behavioural change of "nodoc noman noinfo" no longer being (always) set. qmerge in particular will hence install /usr/share/{doc,man,info} again. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qmerge: support "negative" INSTALL_MASK entriesFabian Groffen2018-12-201-168/+393
| | | | | | | | | | | | | | | Reworked qmerge install_mask handling to support negative entries in INSTALL_MASK, which "undo" (part of) a previous masking. This should implement the same behaviour as https://archives.gentoo.org/gentoo-portage-dev/message/29e128a9f41122fa0420c1140f7b7f94 Along the way some behavioural changes were made: - pretend mode now prints what would be merged (use with -y to be useful) - directory objects are recorded and merged again Bug: https://bugs.gentoo.org/656318 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* rm_rf_at: remove the object path points toFabian Groffen2018-12-201-1/+3
| | | | | | | | To better emulate 'rm -Rf' behaviour, if path points to a file, just remove it. If it points to a directory, remove that directory instead of leaving the (now) empty directory behind. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qsearch: avoid printing a trailing space, bug #672764Fabian Groffen2018-12-091-3/+6
| | | | | | | | When --name-only is in effect, don't print the space separating the package and its description, for we won't print the latter. Bug: https://bugs.gentoo.org/672764 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* qdepends: match reverse deps without SLOT if not givenFabian Groffen2018-11-201-1/+9
| | | | | | | Continuation of bug #668418, atom_compare is strict about SLOT matches. Bug: https://bugs.gentoo.org/668418 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* depends: fix matching atoms for bug #668418Fabian Groffen2018-10-262-3/+7
| | | | | | | | atoms in dependency strings can contain built-with-use declarations in bracket notation, so ensure we ignore that when feeding this into atom_explode. Bug: https://bugs.gentoo.org/668418
* buildsys: properly disable qglsa appletFabian Groffen2018-10-264-3/+7
|
* Merge pull request #4 from vaeth/masterFabian Groffen2018-08-061-11/+65
|\ | | | | qmerge: support for more decompresssion programs
| * qmerge: Support for more decompresssion programsMartin Väth2018-08-061-11/+65
|/ | | | | | | Support additional compression programs like zstd or lz4 for BINPKG_COMPRESS. Also make the gzip test less http://www.onicos.com/staff/iz/formats/gzip.html and the bzip2 test more https://en.wikipedia.org/wiki/Bzip2#File_format restrictive.
* qmerge: implement laymans file identification, bug #660508v0.73Fabian Groffen2018-08-011-2/+46
| | | | | | | | Portage can create binpkgs compressed differently than with bzip2, so try to probe the file quickly before untarring, so we can use the correct flag with tar. Bug: https://bugs.gentoo.org/660508
* tests/atom_explode: deal with Python not finding portage, bug #661762Fabian Groffen2018-08-011-1/+3
| | | | | | | | | Check if the python atom check is going to work, if not, fall back to full pre-cooked files. If we just check for a portage tree in the filesystem, it may be that we end up without python support for portage, which would then obviously mismatch. Bug: https://bugs.gentoo.org/661762
* main: fix potential buffer underrunHanno Boeck2018-07-181-1/+1
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* Merge pull request #3 from hoefling/readme-fixv0.72Fabian Groffen2018-06-281-2/+3
|\ | | | | Fix code snippets highlighting in README
| * fixed snippets highlightinghoefling2018-05-271-2/+3
|/
* tests/atom_explode: use pre-build files to allow runningFabian Groffen2018-05-184-14/+18
| | | | | Make this test run on platforms with a different portdir, or without Portage (such as Travis). This should avoid regressions like bug #567336
* atom_explode: find the last version-like componentFabian Groffen2018-05-182-18/+26
| | | | | | | | We need to keep on searching until we reached the end of the package/version string, since package names may contain things which are valid versions, as long as they don't end with them. Bug: https://bugs.gentoo.org/567336
* qtegrity: fix signedness warningFabian Groffen2018-05-181-1/+1
|
* add fall through comments for gcc-7Fabian Groffen2018-05-182-1/+2
|
* add qtegrityv0.71Fabian Groffen2018-05-181-0/+1
|
* man: regenerateFabian Groffen2018-05-1817-0/+17
|
* mkman: add myself as authorFabian Groffen2018-05-181-0/+1
|
* version_barf: cleanup, add myselfFabian Groffen2018-05-182-7/+10
|
* man: regenerate for releaseFabian Groffen2018-05-1815-15/+35
|
* build-sys: update generated files for qtegrityFabian Groffen2018-05-183-1/+7
|
* man/qfile.1: regenerate after author changeFabian Groffen2018-05-181-9/+8
|
* qtegrity: new applet by Sam Besselink for use with IMA, bug #619988Fabian Groffen2018-05-186-1/+614
| | | | Bug: https://bugs.gentoo.org/619988
* mkman.py: add additional authors to main authors sectionFabian Groffen2018-05-183-5/+5
|
* qcache: make categories counting work properlyFabian Groffen2018-04-181-6/+7
|
* qcache: use metadata/md5-cache iso /var/cache/edb/Fabian Groffen2018-04-172-12/+24
|
* Makefile: revert to non-autotools versionFabian Groffen2018-04-151-2301/+165
| | | | | This reverts the accidential commit to Makefile from 054b993a9433a45c00086fb2841a8150d85eb437.
* qlop: fix offsets for today and yesterday datesFabian Groffen2018-04-152-167/+2303
|
* qfile: fix matching of filesFabian Groffen2018-04-152-43/+60
| | | | | | | A bit overenthusiastic check for files in the current directory caused weird directory prefixes to be ignored. Bug: https://bugs.gentoo.org/652720
* qlop: accept "today" and "yesterday" for parse_dateFabian Groffen2018-04-123-2/+19
| | | | Bug: https://bugs.gentoo.org/652312
* qlop: don't rely on %F for data parsing for portabilityFabian Groffen2018-04-123-4/+34
| | | | While at it document the date formats in the man-page.
* atom_explode: try harder to find correct PVFabian Groffen2018-04-122-27/+27
| | | | | | | | It's not enough to find a hyphen followed by something that looks like a version, it needs to be verified it really is, else it is part of the package name. Bug: https://bugs.gentoo.org/653032
* make-tarball: use numeric uid/gidv0.70Fabian Groffen2018-04-051-1/+1
|
* update copyrightsFabian Groffen2018-04-0531-31/+31
|
* Revert "qmerge: Only fetch Packages if -f/-F is specified"Fabian Groffen2018-04-051-2/+2
| | | | | | | | | | | This commit changed the logic from fetching Packages when -f is set, to forcing when -F is set. This is contradicting the documented behaviour and broke the tests. It is not clear to me anymore why this change was necessary, so I'm reverging it. This reverts commit eedb0ea266b78efd84bc34bc2c6602fb713ba590.
* xstrdup: avoid warning about clobbering tFabian Groffen2018-04-051-3/+3
| | | | | | When using optimisation, the compiler does something to a char pointer it doesn't do to a void pointer, so use a couple of casts to avoid a clobber warning.
* atom_explode: get version letters comparing properly againFabian Groffen2018-04-051-16/+19
|
* tests/atom_compare/Makefile: fail when there are differencesFabian Groffen2018-04-051-1/+2
| | | | | | The static tests fell off the radar because actual differences did not result in failure (e.g. Travis being green and all), also the sed magic was too loose, causing a wrong input file to be computed
* atom_explode: properly set fields for no-version caseFabian Groffen2018-04-051-0/+2
| | | | | atom_explode/basic test wasn't run due to no dependencies in Makefile, hence I didn't see this before
* tests: silence unused function warningsFabian Groffen2018-04-052-2/+12
| | | | | as side-effect of just including everything (non-library style) the compiler complains when static functions aren't used, tell it not to
* tests/copy_file/test.c: fix compilation warningFabian Groffen2018-04-051-1/+3
|
* atom_explode: fix parsing of some valid corner casesFabian Groffen2018-04-052-38/+53
| | | | | | | | Extract the version part of the atom, such that we can more reliably parse the version components without worrying about accidentially taking parts of the package name. Bug: https://bugs.gentoo.org/526596
* show_merge_times: start counting parallel merges from start of the fileFabian Groffen2018-04-041-4/+26
| | | | | | | | If we start counting parallel merges only once we found something interesting, we might not be aware of other emerges at that time, drawing wrong conclusions when seeing a termination message. Bug: https://bugs.gentoo.org/603024
* qfile_main: use q_vdb_foreach_pkg_sorted, bug #607498Fabian Groffen2018-04-031-1/+1
| | | | | | | | For consistency with almost all other output, use sorted output variant for qfile as well. The little sorting/memory overhead due to this is probably ok, given how much it is used already. Bug: https://bugs.gentoo.org/607498
* man: regen remaining manpagesFabian Groffen2018-04-034-44/+50
|