Sign In
Sign Up
Search is temporarily disabled. See
ticket
for more info.
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
List overview
Download
389-devel
June 2017
----- 2024 -----
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
389-devel@lists.fedoraproject.org
12 participants
46 discussions
Start a n
N
ew thread
Review follow up: mo crash and ptr deref in sds
by William Brown
28 Jun '17
28 Jun '17
https://pagure.io/389-ds-base/issue/49284
https://pagure.io/389-ds-base/issue/49297
-- Sincerely, William Brown Software Engineer Red Hat, Australia/Brisbane
1
0
0
0
Please review: Issue 49301 - Add one logpipe test case
by Simon Pichugin
27 Jun '17
27 Jun '17
Hi team, please, review the new patch for suites/ds-tools:
https://pagure.io/389-ds-base/issue/49301
https://pagure.io/389-ds-base/issue/raw/704b8814bfbd0b13c6e04f3c696a633d3fb…
Thanks, Simon
1
0
0
0
Please review: [lib389] Issue 67 - Add ensure_int function
by Ilias Stamatis
27 Jun '17
27 Jun '17
https://pagure.io/lib389/issue/67
https://pagure.io/lib389/issue/raw/ec932550a7da4a9de21e8002a535b1aafd07f44e…
1
0
0
0
Please review: [lib389] Issue 31 - Add memberOf fix-up task
by Ilias Stamatis
27 Jun '17
27 Jun '17
https://pagure.io/lib389/issue/31
https://pagure.io/lib389/issue/raw/7d89dc172113d0fc6e7f5bfa436b53012055d3d7…
1
0
0
0
back ported dnf pretransaction for fedora 25
by andreas@benzlerweb.de
26 Jun '17
26 Jun '17
Hello Everyone, I back ported the function pretransaction into dnf plugin from fedora 25, because I’ don’t wanna break the current system. Source can be found at:
https://copr.fedorainfracloud.org/coprs/andybe/BtrfsF25/
dnf-1.1.10-7.fc25.src.rpm dnf-plugins-extras-0.0.12-5.fc25.src.rpm 0001-dnf-plugin-add-pretransaction.patch diff --git a/dnf/base.py b/dnf/base.py index eade03d..46e1e40 100644 --- a/dnf/base.py +++ b/dnf/base.py @@ -603,6 +603,8 @@ class Base(object): for display_ in cb.displays: display_.output = False + self._plugins.run_pre_transaction() + logger.info(_('Running transaction')) self._run_transaction(cb=cb) timer() diff --git a/dnf/plugin.py b/dnf/plugin.py index c611cc3..0978db8 100644 --- a/dnf/plugin.py +++ b/dnf/plugin.py @@ -67,6 +67,9 @@ class Plugin(object): def sack(self): # :api pass + def pre_transaction(self): + # :api + pass def transaction(self): # :api @@ -106,6 +109,7 @@ class Plugins(object): run_sack = _caller('sack') run_resolved = _caller('resolved') + run_pre_transaction = _caller('pre_transaction') run_transaction = _caller('transaction') def unload(self): diff --git a/doc/api_plugins.rst b/doc/api_plugins.rst index e2e15ba..8845a3c 100644 --- a/doc/api_plugins.rst +++ b/doc/api_plugins.rst @@ -55,6 +55,10 @@ When DNF CLI runs it loads the plugins found in the paths during the CLI's initi Plugin can override this. This hook is called immediately after :attr:`.Base.sack` is initialized with data from all the enabled repos. + .. method:: pre_transaction + + Plugin can override this. This hook is called just before transaction execution. This means after a successful transaction test. RPMDB is locked during that time. + .. method:: transaction Plugin can override this. This hook is called immediately after a successful transaction. diff --git a/doc/api_vs_yum.rst b/doc/api_vs_yum.rst index 65b6a35..7c421e6 100644 --- a/doc/api_vs_yum.rst +++ b/doc/api_vs_yum.rst @@ -37,7 +37,7 @@ Hook Number Yum hook DNF hook ``6`` ``prereposetup`` ``7`` ``postreposetup`` ``sack`` ``8`` ``exclude`` ``resolved`` -``9`` ``preresolve`` +``9`` ``preresolve`` ``pre_transaction ``10`` ``postresolve`` ``resolved but no re-resolve`` ``11`` ``pretrans`` ``12`` ``postrans`` ``transaction`` dnf-plugins-extras-0.0.12 snapper_prepost.patch diff --git a/plugins/snapper.py b/plugins/snapper.py index d0443b0..877be38 100644 --- a/plugins/snapper.py +++ b/plugins/snapper.py @@ -1,6 +1,7 @@ # creates snapshots via 'snapper'. # # Copyright (C) 2014 Igor Gnatenko +# Copyright (C) 2017 Andreas Benzler # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of @@ -31,17 +32,11 @@ class Snapper(dnf.Plugin): def __init__(self, base, cli): self.base = base self.description = " ".join(sys.argv) + self.snapper = None + self.pre_id = None - def transaction(self): - if not len(self.base.transaction): - return - - if dnfpluginsextras.is_erasing(self.base.transaction, - "snapper"): - return try: - bus = SystemBus() - snapper = Interface(bus.get_object('org.opensuse.Snapper', + self.snapper = Interface(SystemBus().get_object('org.opensuse.Snapper', '/org/opensuse/Snapper'), dbus_interface='org.opensuse.Snapper') except DBusException as e: @@ -49,15 +44,37 @@ class Snapper(dnf.Plugin): "snapper: " + _("connect to snapperd failed: %s"), e ) return + + def pre_transaction(self): + if not len(self.base.transaction): + return + try: + logger.debug("snapper:" + _("creating snapshot") + " (pre)" + ) + self.pre_id = self.snapper.CreatePreSnapshot('root', self.description, 'number', {}) logger.debug( - "snapper: " + _("creating snapshot") + "snapper: " + _("created snapshot %d"), self.pre_id + ) + + except DBusException as e: + logger.critical( + "snapper: " + _("creating snapshot failed: %s"), e + ) + + def transaction(self): + if not len(self.base.transaction): + return + + + try: + logger.debug("snapper:" + _("creating snapshot") + " (post)" ) - snap = snapper.CreateSingleSnapshot("root", self.description, - "number", {}) + post_id = self.snapper.CreatePostSnapshot('root', str(self.pre_id) ,'', 'number',{}) logger.debug( - "snapper: " + _("created snapshot %d"), snap + "snapper: " + _("created snapshot %d"), post_id ) + except DBusException as e: logger.critical( "snapper: " + _("creating snapshot failed: %s"), e
2
1
0
0
Please review: lib389 index support
by William Brown
23 Jun '17
23 Jun '17
https://pagure.io/lib389/issue/59
https://pagure.io/lib389/issue/raw/4f90364d1f8501a607b3ab4d82b0412e35b77555…
-- Sincerely, William Brown Software Engineer Red Hat, Australia/Brisbane
1
0
0
0
Please review: improve bpt search perf
by William Brown
21 Jun '17
21 Jun '17
https://pagure.io/389-ds-base/issue/49297
https://pagure.io/389-ds-base/issue/raw/bf3017244fe26453e9f6b718a4e0a1cbb5b…
-- Sincerely, William Brown Software Engineer Red Hat, Australia/Brisbane
1
0
0
0
Please review: abrt with ns during debug
by William Brown
21 Jun '17
21 Jun '17
https://pagure.io/389-ds-base/issue/49289
https://pagure.io/389-ds-base/issue/raw/ce833d102be78d03756a0f05db373aabe06…
-- Sincerely, William Brown Software Engineer Red Hat, Australia/Brisbane
1
0
0
0
lib389 Please review attr types
by William Brown
21 Jun '17
21 Jun '17
https://pagure.io/lib389/issue/67
https://pagure.io/lib389/issue/raw/55b12e95d28acba596cefb45c8cba6507863c2e8…
-- Sincerely, William Brown Software Engineer Red Hat, Australia/Brisbane
1
0
0
0
please review: Ticket 70 - lib389 - Improve repl tools
by Mark Reynolds
20 Jun '17
20 Jun '17
https://pagure.io/lib389/issue/70
https://pagure.io/lib389/issue/raw/558d73cc0d5f590f9dda5cef2eccca75012aced4…
1
0
0
0
← Newer
1
2
3
4
5
Older →
Jump to page:
1
2
3
4
5
Results per page:
10
25
50
100
200