summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-package.c
Commit message (Collapse)AuthorAgeFilesLines
* trivial: Fix some typos spotted using codespellRichard Hughes2019-04-081-2/+2
|
* Use the SPDX-License-Identifier in all source filesRichard Hughes2019-02-091-15/+1
|
* Use as_utils_vercmp_full internallyKalev Lember2019-01-041-2/+2
| | | | | | | | | This fixes, among other things, appdata validation when the version goes from 9.5 to 10, or 0.9 to 1. This partially fixes https://github.com/hughsie/appstream-glib/issues/270 We're still failing to correctly compare "Build 9.5" to "Build 10".
* Don't include the path component in the name when parsing the package filenameRichard Hughes2018-03-271-5/+2
| | | | | | | | If the guessing fails, we fall back to the arch/rpm/deb-derived name but we don't want to show weird things in the logs. Fixes https://github.com/hughsie/appstream-glib/issues/228, many thanks to Andrew Gunnerson for the initial patch.
* Revert "trivial: Correctly truncate existing logfiles"Richard Hughes2017-01-041-81/+34
| | | | | | | | | | | | This reverts commit cefcad4027ada131d322ec578a8e32f3f5652240. Revert "trivial: Fix a critical warning in the self tests" This reverts commit 3e353879b9e24d3aa9a21d5ef0d295d26febafcd. Revert "Write log files in a better way" This reverts commit 342d570825ed01f11bef0d722baec1fa2801964b.
* trivial: Correctly truncate existing logfilesRichard Hughes2017-01-041-3/+8
|
* trivial: Fix a critical warning in the self testsRichard Hughes2017-01-041-0/+4
|
* Write log files in a better wayRichard Hughes2017-01-041-34/+72
| | | | | Appending to a giant string and then flushing it at the end means we waste memory and also don't get any logs if the builder crashes.
* trivial: Write debug statements into the logsRichard Hughes2017-01-041-2/+1
|
* Add two new GCC warnings and fix up signed/unsigned issuesRichard Hughes2016-07-251-3/+3
|
* trivial: Get rid of useless internal-only gtk-doc markupRichard Hughes2016-06-281-12/+0
|
* Fix AppStream generation when using duplicate .deb packagesRichard Hughes2015-12-281-2/+64
| | | | | | | | | For package types without a native klass->compare fall back to something sensible. Also add some self tests for this to make sure this never happens again. Fixes https://github.com/hughsie/appstream-glib/issues/72
* trivial: Drop as-cleanup.h include where not neededKalev Lember2015-09-081-1/+0
|
* Use GLib's cleanup functions instead of libgsystem'sKalev Lember2015-09-081-4/+4
| | | | | | | We still have a few types that don't support g_autoptr(), but very very close to having everything ported over. This also bumps gdk-pixbuf dep to 2.31.5 for the cleanup macro support.
* libappstream-builder: Port to G_DECLARE_DERIVABLE_TYPE macroKalev Lember2015-09-081-3/+2
|
* Fix a crash when more than one thread tries to ensure the same packageRichard Hughes2015-02-041-4/+18
| | | | | | This can happen when a package is itself an extra package of another, at the same time being a valid application itself. This is probably a packaging bug, but crashing isn't nice either.
* Guess the NEVRA from the filename if possibleRichard Hughes2015-02-021-0/+52
| | | | This avoids opening every package at startup just to check the architecture.
* trivial: Add asb_package_get_version()Richard Hughes2015-02-021-0/+17
|
* Only open the package when requiredRichard Hughes2015-02-021-4/+19
| | | | This reduces the peak RSS by about 15% typically.
* Clear the dep list and the file list if we've finished with the packageRichard Hughes2015-02-021-0/+21
| | | | This is a simple way to further decrease the peak RSS value by a few hundred MB.
* Close the packages after they have been processedRichard Hughes2015-02-021-0/+40
| | | | | | | | | This means we have to re-open the files for the few packages used as extra-packages to other packages, but means we keep the RSS value to a sane value for a large number of packages. We can't go above 4GB RSS for Fedora... This also means we spend less time 'shutting down' as the packages have typically been released as part of the task, rather when the context exits.
* trivial: Do not allocate 1k of log space for each package at startupRichard Hughes2015-02-021-1/+1
|
* trivial: Do not ensure if there is nothing left to doRichard Hughes2015-02-021-0/+4
|
* Add the extra child deps to the main packageRichard Hughes2015-01-301-12/+12
| | | | | | This means if X depends on X-libs, and X-libs depends on GTK-3, then X should have the modern toolkit kudo. This means switching around the API a bit so that we can add deps after the AsbPackage has been created.
* trivial: Add asb_package_get_kind()Richard Hughes2015-01-231-0/+34
| | | | We'll need this for the bundle work that's coming up.
* Add the VCS information to the AppStream metadataRichard Hughes2014-12-171-0/+38
| | | | Resolves: https://github.com/hughsie/appstream-glib/issues/27
* trivial: Don't show warnings when doing distcheckRichard Hughes2014-11-041-1/+1
| | | | | It seems that the compiler really does require an initializer when using the _cleanup_ macros.
* Add some locking when outputting logs from multiple threadsRichard Hughes2014-10-151-0/+6
|
* trivial: Use a lowercase log index nameRichard Hughes2014-10-131-1/+1
|
* trivial: Don't put 2600 log files in the same directoryRichard Hughes2014-10-131-3/+7
|
* Flush the package log again after the metadata writeRichard Hughes2014-09-111-0/+6
| | | | | | We also need to check if there have been any more additions, skipping the write if the file on disk isn't going to be changed. This allows us to capture *all* the merge information after the task has been finished.
* Only get the package data when requiredRichard Hughes2014-08-281-0/+44
| | | | This speeds up reading a large number of packages.
* Include the architecture in the failed component IDRichard Hughes2014-08-211-0/+52
| | | | | Some packages in Fedora repos are multiarch, and we want to include both entries in the failed metadata.
* trivial: Do not write a log if LogDir is not setRichard Hughes2014-08-121-1/+5
|
* Add support for <source_pkgname> which will be in AppStream 0.8Richard Hughes2014-07-291-7/+44
|
* Add asb_package_new()Richard Hughes2014-07-081-0/+20
|
* Add libappstream-builder from the createrepo_as projectRichard Hughes2014-06-171-0/+780