From: "Brian Dolbec" <brian.dolbec@gmail.com> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/emaint/modules/sync/ Date: Thu, 4 Dec 2014 20:16:10 +0000 (UTC) [thread overview] Message-ID: <1417722994.f9ae6e5a3de3dfdf536b5928c4ad5cfef376f1cc.dol-sen@gentoo> (raw) commit: f9ae6e5a3de3dfdf536b5928c4ad5cfef376f1cc Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Fri Sep 5 04:37:10 2014 +0000 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> CommitDate: Thu Dec 4 19:56:34 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=f9ae6e5a emaint sync: Fix bug 522032, add a one time only post-sync hook call After all repos have been synced, the emaint sync module runs another post-sync hook call passing it the '' value as the repo name. This value can be read by the post-sync hook to decide if it needs to run or pass. This allows flexible, precise control over post-sync hooks for multiple repositories. Caveat: Current app-portage/portage-utils post_sync hook script does not pass on any parameters to the postsync.d/* scripts that it intiates. --- pym/portage/emaint/modules/sync/sync.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pym/portage/emaint/modules/sync/sync.py b/pym/portage/emaint/modules/sync/sync.py index b657133..86d16a3 100644 --- a/pym/portage/emaint/modules/sync/sync.py +++ b/pym/portage/emaint/modules/sync/sync.py @@ -192,10 +192,15 @@ class SyncRepos(object): msgs.extend(self._check_updates()) display_news_notification(self.emerge_config.target_config, self.emerge_config.opts) + # run the post_sync_hook one last time for + # run only at sync completion hooks + rcode = sync_manager.perform_post_sync_hook('') if retvals: msgs.extend(self.rmessage(retvals, 'sync')) else: msgs.append(self.rmessage(('None', os.EX_OK), 'sync')) + if rcode: + msgs.append(self.rmessage('None', rcode), 'post-sync') if return_messages: return msgs return
WARNING: multiple messages have this Message-ID (diff)
From: "Brian Dolbec" <brian.dolbec@gmail.com> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] proj/portage:plugin-sync commit in: pym/portage/emaint/modules/sync/ Date: Thu, 4 Dec 2014 20:04:30 +0000 (UTC) [thread overview] Message-ID: <1417722994.f9ae6e5a3de3dfdf536b5928c4ad5cfef376f1cc.dol-sen@gentoo> (raw) Message-ID: <20141204200430.9KojGy35eL6kX9qm8FI5sQFUkItIA5PR6u4qvm5tatY@z> (raw) commit: f9ae6e5a3de3dfdf536b5928c4ad5cfef376f1cc Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Fri Sep 5 04:37:10 2014 +0000 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> CommitDate: Thu Dec 4 19:56:34 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=f9ae6e5a emaint sync: Fix bug 522032, add a one time only post-sync hook call After all repos have been synced, the emaint sync module runs another post-sync hook call passing it the '' value as the repo name. This value can be read by the post-sync hook to decide if it needs to run or pass. This allows flexible, precise control over post-sync hooks for multiple repositories. Caveat: Current app-portage/portage-utils post_sync hook script does not pass on any parameters to the postsync.d/* scripts that it intiates. --- pym/portage/emaint/modules/sync/sync.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pym/portage/emaint/modules/sync/sync.py b/pym/portage/emaint/modules/sync/sync.py index b657133..86d16a3 100644 --- a/pym/portage/emaint/modules/sync/sync.py +++ b/pym/portage/emaint/modules/sync/sync.py @@ -192,10 +192,15 @@ class SyncRepos(object): msgs.extend(self._check_updates()) display_news_notification(self.emerge_config.target_config, self.emerge_config.opts) + # run the post_sync_hook one last time for + # run only at sync completion hooks + rcode = sync_manager.perform_post_sync_hook('') if retvals: msgs.extend(self.rmessage(retvals, 'sync')) else: msgs.append(self.rmessage(('None', os.EX_OK), 'sync')) + if rcode: + msgs.append(self.rmessage('None', rcode), 'post-sync') if return_messages: return msgs return
next reply other threads:[~2014-12-04 20:16 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-12-04 20:16 Brian Dolbec [this message] 2014-12-04 20:04 ` [gentoo-commits] proj/portage:plugin-sync commit in: pym/portage/emaint/modules/sync/ Brian Dolbec -- strict thread matches above, loose matches on Subject: below -- 2017-02-28 18:43 [gentoo-commits] proj/portage:master " Zac Medico 2017-02-25 1:23 Zac Medico 2017-01-26 19:09 Zac Medico 2015-08-21 2:12 Zac Medico 2015-08-16 8:39 Zac Medico 2014-12-04 20:16 Brian Dolbec 2014-12-04 20:16 Brian Dolbec 2014-12-04 20:04 [gentoo-commits] proj/portage:plugin-sync " Brian Dolbec 2014-12-04 20:16 ` [gentoo-commits] proj/portage:master " Brian Dolbec 2014-12-04 20:04 [gentoo-commits] proj/portage:plugin-sync " Brian Dolbec 2014-12-04 20:16 ` [gentoo-commits] proj/portage:master " Brian Dolbec
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1417722994.f9ae6e5a3de3dfdf536b5928c4ad5cfef376f1cc.dol-sen@gentoo \ --to=brian.dolbec@gmail.com \ --cc=gentoo-commits@lists.gentoo.org \ --cc=gentoo-dev@lists.gentoo.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox