]> git.ipfire.org Git - thirdparty/snapper.git/log
thirdparty/snapper.git
6 years agoUnify shell options 501/head
Martin Vidner [Tue, 17 Dec 2019 10:20:29 +0000 (11:20 +0100)] 
Unify shell options

6 years agoCopyright and license headers (GPL-2.0-only)
Martin Vidner [Tue, 17 Dec 2019 09:59:27 +0000 (10:59 +0100)] 
Copyright and license headers (GPL-2.0-only)

6 years agoWhitespace cleanup
Martin Vidner [Tue, 17 Dec 2019 09:41:23 +0000 (10:41 +0100)] 
Whitespace cleanup

6 years agoAdded missing header guards
Martin Vidner [Tue, 17 Dec 2019 09:37:20 +0000 (10:37 +0100)] 
Added missing header guards

6 years agoDeal with .vscode in my user config
Martin Vidner [Mon, 16 Dec 2019 14:33:01 +0000 (15:33 +0100)] 
Deal with .vscode in my user config

6 years agoDebian does not pull in libxml2 via libsnapper?!
Martin Vidner [Fri, 13 Dec 2019 15:40:53 +0000 (16:40 +0100)] 
Debian does not pull in libxml2 via libsnapper?!

6 years agoUse snapper::Regex instead of boost::regex (both use POSIX ERE).
Martin Vidner [Fri, 13 Dec 2019 14:40:54 +0000 (15:40 +0100)] 
Use snapper::Regex instead of boost::regex (both use POSIX ERE).

Document the syntax in the conf file

6 years agoSplit off regex matching, add a test for it
Martin Vidner [Fri, 13 Dec 2019 12:16:33 +0000 (13:16 +0100)] 
Split off regex matching, add a test for it

6 years agoUsing json-c instead of rapidjson
Martin Vidner [Wed, 11 Dec 2019 13:54:58 +0000 (14:54 +0100)] 
Using json-c instead of rapidjson

https://github.com/json-c/json-c
Already in SLE, is also a dependency for systemd via libcryptsetup.

6 years agoPhase::BEFORE and AFTER instead of "todo".
Martin Vidner [Wed, 11 Dec 2019 12:49:54 +0000 (13:49 +0100)] 
Phase::BEFORE and AFTER instead of "todo".

6 years agoTest with TAP by comparing error strings
Martin Vidner [Tue, 10 Dec 2019 12:50:00 +0000 (13:50 +0100)] 
Test with TAP by comparing error strings

6 years agoUsing the TAP driver for automake
Martin Vidner [Tue, 10 Dec 2019 09:29:31 +0000 (10:29 +0100)] 
Using the TAP driver for automake

TAP is http://testanything.org/ .

This file is copied from /usr/share/automake-1.16/tap-driver.sh because:

> Currently, the TAP driver that comes with Automake requires some by-hand
> steps on the developer’s part (this situation should hopefully be improved
> in future Automake versions). You’ll have to grab the tap-driver.sh script
> from the Automake distribution by hand, copy it in your source tree, ...

https://www.gnu.org/software/automake/manual/html_node/Use-TAP-with-the-Automake-test-harness.html

6 years agoLog to stderr instead of snapper.log
Martin Vidner [Mon, 9 Dec 2019 15:13:37 +0000 (16:13 +0100)] 
Log to stderr instead of snapper.log

that way it
- ends up in y2log or zypper.log
- can be matched for expected errors in the testsuite

6 years agoExplain ProgramOptions
Martin Vidner [Mon, 9 Dec 2019 14:59:27 +0000 (15:59 +0100)] 
Explain ProgramOptions

6 years agogetValue returns true/false
Martin Vidner [Mon, 9 Dec 2019 14:58:54 +0000 (15:58 +0100)] 
getValue returns true/false

consistently with other functions

6 years agoTest failing code paths
Martin Vidner [Mon, 9 Dec 2019 09:37:40 +0000 (10:37 +0100)] 
Test failing code paths

6 years agoMore debug logging
Martin Vidner [Fri, 6 Dec 2019 14:55:37 +0000 (15:55 +0100)] 
More debug logging

6 years agoDo parser the zypp supplied userdata
Martin Vidner [Fri, 6 Dec 2019 14:12:01 +0000 (15:12 +0100)] 
Do parser the zypp supplied userdata

https://fate.suse.com/312521

6 years agoUse range-based-for
Martin Vidner [Fri, 6 Dec 2019 12:48:18 +0000 (13:48 +0100)] 
Use range-based-for

6 years agoThe "match" attribute of the "solvable" element is mandatory
Martin Vidner [Fri, 6 Dec 2019 12:39:50 +0000 (13:39 +0100)] 
The "match" attribute of the "solvable" element is mandatory

and omitting it means skipping that match pattern.
Also using uppercase for the enum values.

6 years agoversion + changelog
Martin Vidner [Fri, 6 Dec 2019 10:23:17 +0000 (11:23 +0100)] 
version + changelog

6 years agoEnsure there is a DBus session for the tests
Martin Vidner [Thu, 5 Dec 2019 14:09:53 +0000 (15:09 +0100)] 
Ensure there is a DBus session for the tests

see man dbus-run-session

6 years agoRun the zypp-plugin tests
Martin Vidner [Thu, 5 Dec 2019 09:58:50 +0000 (10:58 +0100)] 
Run the zypp-plugin tests

The tests need rubygem ruby-dbus
but we're not adding a build time dependency in the RPM spec file,
instead putting it to the Docker images used in Travis

6 years agoFunctional test of snapper-zypp-plugin
Martin Vidner [Wed, 4 Dec 2019 15:03:09 +0000 (16:03 +0100)] 
Functional test of snapper-zypp-plugin

6 years agoAdd environment variables to work on a testing setup
Martin Vidner [Tue, 3 Dec 2019 12:31:56 +0000 (13:31 +0100)] 
Add environment variables to work on a testing setup

$SNAPPER_ZYPP_PLUGIN_CONFIG instead of "/etc/snapper/zypp-plugin.conf",
$SNAPPER_ZYPP_PLUGIN_SNAPPER_CONFIG" instead of "root"

6 years agoHonor --disable-zypp by not building the plugin
Martin Vidner [Mon, 11 Nov 2019 15:07:45 +0000 (16:07 +0100)] 
Honor --disable-zypp by not building the plugin

6 years agoFind libxml2 portably
Martin Vidner [Mon, 11 Nov 2019 10:25:30 +0000 (11:25 +0100)] 
Find libxml2 portably

6 years agoParse and apply /etc/snapper/zypp-plugin.conf
Martin Vidner [Wed, 6 Nov 2019 14:40:13 +0000 (15:40 +0100)] 
Parse and apply /etc/snapper/zypp-plugin.conf

6 years agoFixed getChildNode, getChildNodes, getChildValue
Martin Vidner [Thu, 7 Nov 2019 11:13:28 +0000 (12:13 +0100)] 
Fixed getChildNode, getChildNodes, getChildValue

to actually act on children. Previously they acted on siblings.

6 years agoRecognize _DISCONNECT
Martin Vidner [Fri, 1 Nov 2019 16:32:55 +0000 (17:32 +0100)] 
Recognize _DISCONNECT

6 years agoParse headers
Martin Vidner [Fri, 1 Nov 2019 16:08:45 +0000 (17:08 +0100)] 
Parse headers

6 years agoUse the snapper logger
Martin Vidner [Fri, 1 Nov 2019 13:24:48 +0000 (14:24 +0100)] 
Use the snapper logger

6 years agoParse transaction solvables with RapidJSON
Martin Vidner [Wed, 30 Oct 2019 15:09:49 +0000 (16:09 +0100)] 
Parse transaction solvables with RapidJSON

TODO: rake osc:build to fix the dependencies

6 years ago'override' keywords everywhere
Martin Vidner [Wed, 30 Oct 2019 13:17:26 +0000 (14:17 +0100)] 
'override' keywords everywhere

6 years agoAdded override keywords
Martin Vidner [Wed, 30 Oct 2019 13:17:05 +0000 (14:17 +0100)] 
Added override keywords

only where needed by snapper_zypp_plugin

6 years agoUse libclient
Martin Vidner [Wed, 30 Oct 2019 12:30:04 +0000 (13:30 +0100)] 
Use libclient

6 years agoPut DBus calls to a helper library
Martin Vidner [Wed, 30 Oct 2019 12:25:19 +0000 (13:25 +0100)] 
Put DBus calls to a helper library

so that SnapperZyppPlugin can use them

6 years agoSplit off classes into files
Martin Vidner [Wed, 30 Oct 2019 10:20:26 +0000 (11:20 +0100)] 
Split off classes into files

6 years agoIgnore VS Code config
Martin Vidner [Wed, 30 Oct 2019 10:19:13 +0000 (11:19 +0100)] 
Ignore VS Code config

6 years agocall all other DBus commands
Martin Vidner [Tue, 29 Oct 2019 16:04:35 +0000 (17:04 +0100)] 
call all other DBus commands

6 years agoactually call DBus
Martin Vidner [Tue, 29 Oct 2019 12:25:06 +0000 (13:25 +0100)] 
actually call DBus

using the Hihi library

6 years agomore logging
Martin Vidner [Tue, 29 Oct 2019 11:39:00 +0000 (12:39 +0100)] 
more logging

6 years agoskeleton of commit_begin
Martin Vidner [Tue, 29 Oct 2019 10:03:18 +0000 (11:03 +0100)] 
skeleton of commit_begin

6 years agoUse the override keyword
Martin Vidner [Thu, 24 Oct 2019 15:03:25 +0000 (17:03 +0200)] 
Use the override keyword

Effective Modern C++, Item 12: Declare overriding functions `override`

6 years agopull in boost_regex
Martin Vidner [Thu, 24 Oct 2019 09:06:55 +0000 (11:06 +0200)] 
pull in boost_regex

6 years agoParser compiles and does not crash
Martin Vidner [Thu, 24 Oct 2019 08:43:42 +0000 (10:43 +0200)] 
Parser compiles and does not crash

try:

    printf "PLUGINBEGIN\nki:velu\nuserdata:juzrdata\n\nbadi\0NAUVOT\n\n" | ./zypp-plugin/snapper-zypp-plugin

6 years agoStomp protocol basics (WIP)
Martin Vidner [Wed, 23 Oct 2019 13:58:53 +0000 (15:58 +0200)] 
Stomp protocol basics (WIP)

6 years agoRemove the Python zypp plugin (JSC#SLE-10500)
Martin Vidner [Wed, 23 Oct 2019 08:41:42 +0000 (10:41 +0200)] 
Remove the Python zypp plugin (JSC#SLE-10500)

6 years agoAdd snapper-zypp-plugin in C++ (JSC#SLE-10500)
Martin Vidner [Wed, 23 Oct 2019 08:38:31 +0000 (10:38 +0200)] 
Add snapper-zypp-plugin in C++ (JSC#SLE-10500)

just a stub

6 years agoTranslated using Weblate (Estonian) v0.8.6
Jaanus Ojangu [Sun, 1 Dec 2019 17:50:34 +0000 (17:50 +0000)] 
Translated using Weblate (Estonian)

Currently translated at 100.0% (205 of 205 strings)

6 years agoTranslated using Weblate (Estonian)
Jaanus Ojangu [Sun, 1 Dec 2019 12:28:05 +0000 (12:28 +0000)] 
Translated using Weblate (Estonian)

Currently translated at 80.0% (164 of 205 strings)

6 years agoTranslated using Weblate (Estonian)
Jaanus Ojangu [Sun, 1 Dec 2019 08:39:21 +0000 (08:39 +0000)] 
Translated using Weblate (Estonian)

Currently translated at 47.8% (98 of 205 strings)

6 years agoTranslated using Weblate (Estonian)
Jaanus Ojangu [Sat, 30 Nov 2019 07:24:54 +0000 (07:24 +0000)] 
Translated using Weblate (Estonian)

Currently translated at 42.4% (87 of 205 strings)

6 years agoMerge pull request #504 from openSUSE/integration-test
Martin Vidner [Fri, 29 Nov 2019 08:58:39 +0000 (09:58 +0100)] 
Merge pull request #504 from openSUSE/integration-test

Integration test

6 years agoTranslated using Weblate (Finnish)
Kimmo Kujansuu [Thu, 28 Nov 2019 19:10:55 +0000 (19:10 +0000)] 
Translated using Weblate (Finnish)

Currently translated at 100.0% (205 of 205 strings)

6 years agoBetter comments, TAP conformance 504/head
Martin Vidner [Thu, 28 Nov 2019 13:31:06 +0000 (14:31 +0100)] 
Better comments, TAP conformance

This test has been quickly and dirtily converted to TAP,
the Test Anything Protocol, http://testanything.org/tap-specification.html

6 years agoInclude snapshot deletion in the integration tests
Martin Vidner [Thu, 28 Nov 2019 12:40:18 +0000 (13:40 +0100)] 
Include snapshot deletion in the integration tests

6 years agoTranslated using Weblate (Catalan)
David Medina [Wed, 27 Nov 2019 16:51:29 +0000 (16:51 +0000)] 
Translated using Weblate (Catalan)

Currently translated at 100.0% (205 of 205 strings)

6 years agoUse a sparse file for the filesystem image
Martin Vidner [Wed, 27 Nov 2019 09:28:11 +0000 (10:28 +0100)] 
Use a sparse file for the filesystem image

6 years agoTestsuite packaging
Martin Vidner [Tue, 26 Nov 2019 14:34:37 +0000 (15:34 +0100)] 
Testsuite packaging

6 years agoIntegration test
Martin Vidner [Fri, 15 Nov 2019 09:40:12 +0000 (10:40 +0100)] 
Integration test

6 years agoMerge pull request #506 from maxice8/fix-musl
Arvin Schnell [Tue, 26 Nov 2019 09:19:55 +0000 (10:19 +0100)] 
Merge pull request #506 from maxice8/fix-musl

Import some musl fixes from Alpine Linux

6 years agoTranslated using Weblate (Estonian)
Jaanus Ojangu [Sun, 24 Nov 2019 19:16:36 +0000 (19:16 +0000)] 
Translated using Weblate (Estonian)

Currently translated at 36.6% (75 of 205 strings)

6 years agoCorrect location of poll.h include 506/head
Leo [Sun, 24 Nov 2019 19:00:32 +0000 (20:00 +0100)] 
Correct location of poll.h include

6 years agoDefine Glibc specific __isleap when it is not defined.
Leo [Sun, 24 Nov 2019 18:59:54 +0000 (19:59 +0100)] 
Define Glibc specific __isleap when it is not defined.

6 years agoAdd missing include for sys/types.h
Leo [Sun, 24 Nov 2019 18:59:26 +0000 (19:59 +0100)] 
Add missing include for sys/types.h

6 years agoAdd missing include of fcntl.h for mode_t
Leo [Sun, 24 Nov 2019 18:58:59 +0000 (19:58 +0100)] 
Add missing include of fcntl.h for mode_t

6 years agoTranslated using Weblate (Estonian)
Jaanus Ojangu [Sun, 24 Nov 2019 08:37:32 +0000 (08:37 +0000)] 
Translated using Weblate (Estonian)

Currently translated at 20.5% (42 of 205 strings)

6 years agoMerge pull request #494 from joseivanlopez/machine_readable_output
José Iván López [Wed, 6 Nov 2019 10:23:20 +0000 (10:23 +0000)] 
Merge pull request #494 from joseivanlopez/machine_readable_output

Machine-readable output

6 years agoAdd control char escapes 494/head
José Iván López [Wed, 6 Nov 2019 08:42:06 +0000 (08:42 +0000)] 
Add control char escapes

Co-Authored-By: Martin Vidner <martin@vidner.net>
6 years agoDo not use null for empty json strings
José Iván López González [Tue, 5 Nov 2019 16:02:36 +0000 (16:02 +0000)] 
Do not use null for empty json strings

6 years agoEscape line breaks in json
José Iván López González [Tue, 5 Nov 2019 16:01:30 +0000 (16:01 +0000)] 
Escape line breaks in json

6 years agoImprove manual
José Iván López González [Tue, 5 Nov 2019 11:38:25 +0000 (11:38 +0000)] 
Improve manual

Co-authored-by: Martin Vidner <mvidner@suse.cz>
6 years agoTranslated using Weblate (Estonian)
Jaanus Ojangu [Sun, 3 Nov 2019 17:53:49 +0000 (17:53 +0000)] 
Translated using Weblate (Estonian)

Currently translated at 3.4% (7 of 205 strings)

6 years agoTranslated using Weblate (French)
Antoine Belvire [Fri, 1 Nov 2019 19:42:01 +0000 (19:42 +0000)] 
Translated using Weblate (French)

Currently translated at 100.0% (205 of 205 strings)

6 years agoUpdate manual
José Iván López González [Wed, 30 Oct 2019 23:23:36 +0000 (23:23 +0000)] 
Update manual

6 years agoUpdate version and changelog
José Iván López González [Wed, 30 Oct 2019 23:23:08 +0000 (23:23 +0000)] 
Update version and changelog

6 years agoAdapt configuration
José Iván López González [Wed, 30 Oct 2019 23:22:32 +0000 (23:22 +0000)] 
Adapt configuration

6 years agoAdapt snapper client
José Iván López González [Wed, 30 Oct 2019 23:21:56 +0000 (23:21 +0000)] 
Adapt snapper client

6 years agoAdd GetConfig command
José Iván López González [Wed, 30 Oct 2019 23:19:29 +0000 (23:19 +0000)] 
Add GetConfig command

6 years agoAdd ListConfigs command
José Iván López González [Wed, 30 Oct 2019 23:18:19 +0000 (23:18 +0000)] 
Add ListConfigs command

6 years agoAdd ListSnapshots command
José Iván López González [Wed, 30 Oct 2019 23:16:26 +0000 (23:16 +0000)] 
Add ListSnapshots command

6 years agoAdd formatters
José Iván López González [Wed, 30 Oct 2019 23:13:47 +0000 (23:13 +0000)] 
Add formatters

6 years agoAdd Command base class
José Iván López González [Wed, 30 Oct 2019 23:12:29 +0000 (23:12 +0000)] 
Add Command base class

6 years agoTranslated using Weblate (Indonesian)
Kukuh Syafaat [Tue, 29 Oct 2019 05:51:07 +0000 (05:51 +0000)] 
Translated using Weblate (Indonesian)

Currently translated at 100.0% (205 of 205 strings)

6 years agoTranslated using Weblate (Czech)
Aleš Kastner [Thu, 24 Oct 2019 13:03:07 +0000 (13:03 +0000)] 
Translated using Weblate (Czech)

Currently translated at 100.0% (205 of 205 strings)

6 years agoAdd editorconfig file
José Iván López González [Fri, 4 Oct 2019 15:18:51 +0000 (16:18 +0100)] 
Add editorconfig file

6 years agoMerge pull request #496 from openSUSE/config-comments v0.8.5
Martin Vidner [Wed, 16 Oct 2019 10:10:30 +0000 (12:10 +0200)] 
Merge pull request #496 from openSUSE/config-comments

Allow trailing comments in configs (bsc#1005342)

6 years agoTranslated using Weblate (Danish)
scootergrisen [Tue, 15 Oct 2019 20:00:59 +0000 (20:00 +0000)] 
Translated using Weblate (Danish)

Currently translated at 100.0% (205 of 205 strings)

6 years agoTranslated using Weblate (Slovak)
Ferdinand Galko [Tue, 15 Oct 2019 17:16:30 +0000 (17:16 +0000)] 
Translated using Weblate (Slovak)

Currently translated at 100.0% (205 of 205 strings)

6 years agoTranslated using Weblate (Portuguese (Brazil))
Rodrigo Macedo [Tue, 15 Oct 2019 11:52:35 +0000 (11:52 +0000)] 
Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (205 of 205 strings)

6 years agoTranslated using Weblate (Japanese)
Yasuhiko Kamata [Tue, 15 Oct 2019 10:57:07 +0000 (10:57 +0000)] 
Translated using Weblate (Japanese)

Currently translated at 100.0% (205 of 205 strings)

6 years agoTranslated using Weblate (German)
Sarah Kriesch [Tue, 15 Oct 2019 10:21:20 +0000 (10:21 +0000)] 
Translated using Weblate (German)

Currently translated at 100.0% (205 of 205 strings)

6 years agoTranslated using Weblate (Dutch)
Freek de Kruijf [Tue, 15 Oct 2019 10:26:19 +0000 (10:26 +0000)] 
Translated using Weblate (Dutch)

Currently translated at 100.0% (205 of 205 strings)

6 years agoTranslated using Weblate (Catalan)
David Medina [Tue, 15 Oct 2019 10:09:14 +0000 (10:09 +0000)] 
Translated using Weblate (Catalan)

Currently translated at 100.0% (205 of 205 strings)

6 years agoversion + changelog 496/head
Martin Vidner [Tue, 15 Oct 2019 13:32:40 +0000 (15:32 +0200)] 
version + changelog

6 years agoMake README more readable even without rendering [ci skip]
Martin Vidner [Tue, 15 Oct 2019 13:28:50 +0000 (15:28 +0200)] 
Make README more readable even without rendering [ci skip]

fit in 80 columns
move URLs out of text

6 years agoRun tests with VERBOSE so that failure details are shown
Martin Vidner [Tue, 15 Oct 2019 09:28:24 +0000 (11:28 +0200)] 
Run tests with VERBOSE so that failure details are shown

6 years agoFix setValue
Martin Vidner [Tue, 15 Oct 2019 08:51:37 +0000 (10:51 +0200)] 
Fix setValue

6 years agoTest preserving comments on setValue
Martin Vidner [Tue, 15 Oct 2019 08:41:22 +0000 (10:41 +0200)] 
Test preserving comments on setValue