From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: [PATCH] system: container: Update to new service API. Date: Mon, 26 Oct 2015 20:21:24 -0400 Message-ID: References: <87611txiw7.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=94eb2c08858cd7c3c805230b0e73 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqs0z-0000we-Sp for guix-devel@gnu.org; Mon, 26 Oct 2015 20:21:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zqs0y-0000Pf-SB for guix-devel@gnu.org; Mon, 26 Oct 2015 20:21:25 -0400 Received: from mail-yk0-x236.google.com ([2607:f8b0:4002:c07::236]:35880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqs0y-0000Pa-Mi for guix-devel@gnu.org; Mon, 26 Oct 2015 20:21:24 -0400 Received: by ykba4 with SMTP id a4so195995940ykb.3 for ; Mon, 26 Oct 2015 17:21:24 -0700 (PDT) In-Reply-To: <87611txiw7.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel --94eb2c08858cd7c3c805230b0e73 Content-Type: text/plain; charset=UTF-8 On Mon, Oct 26, 2015 at 8:19 PM, David Thompson wrote: > Getting up to speed with the changes that were made during the service > API rewrite. Sorry, wrong patch file! Here's the correct one. --94eb2c08858cd7c3c805230b0e73 Content-Type: text/x-diff; charset=US-ASCII; name="0001-system-container-Update-to-new-service-API.patch" Content-Disposition: attachment; filename="0001-system-container-Update-to-new-service-API.patch" Content-Transfer-Encoding: base64 X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WNl KSAjOmNvbnRhaW5lcj8gY29udGFpbmVyPykpCiAKLShkZWZpbmUgKGFjdGl2YXRpb24tc2NyaXB0 IGdleHBzKQotICAiUmV0dXJuIHRoZSBzeXN0ZW0ncyBhY3RpdmF0aW9uIHNjcmlwdCwgd2hpY2gg ZXZhbHVhdGVzIEdFWFBTLiIKKyhkZWZpbmUqIChhY3RpdmF0aW9uLXNjcmlwdCBnZXhwcyAjOmtl eSBjb250YWluZXI/KQorICAiUmV0dXJuIHRoZSBzeXN0ZW0ncyBhY3RpdmF0aW9uIHNjcmlwdCwg d2hpY2ggZXZhbHVhdGVzIEdFWFBTLiAgV2hlbgorQ09OVEFJTkVSPyBpcyB0cnVlLCByZXR1cm4g YSBzY3JpcHQgc3VpdGFibGUgZm9yIGEgTGludXggY29udGFpbmVyLiIKICAgKGRlZmluZSAlbW9k dWxlcwogICAgICcoKGdudSBidWlsZCBhY3RpdmF0aW9uKQogICAgICAgKGdudSBidWlsZCBsaW51 eC1ib290KQpAQCAtMjU2LDExICsyNTgsMTMgQEAgQUNUSVZBVElPTi1TQ1JJUFQtVFlQRS4iCiAg ICAgICAgICAgICAgICAgICAgIChhY3RpdmF0ZS0vYmluL3NoCiAgICAgICAgICAgICAgICAgICAg ICAoc3RyaW5nLWFwcGVuZCAjJChjYW5vbmljYWwtcGFja2FnZSBiYXNoKSAiL2Jpbi9zaCIpKQog Ci0gICAgICAgICAgICAgICAgICAgIDs7IFRlbGwgdGhlIGtlcm5lbCB0byB1c2Ugb3VyICdtb2Rw cm9iZScgY29tbWFuZC4KLSAgICAgICAgICAgICAgICAgICAgKGFjdGl2YXRlLW1vZHByb2JlICMk bW9kcHJvYmUpCisgICAgICAgICAgICAgICAgICAgICMkQChpZiBjb250YWluZXI/CisgICAgICAg ICAgICAgICAgICAgICAgICAgICA7OyBUZWxsIHRoZSBrZXJuZWwgdG8gdXNlIG91ciAnbW9kcHJv YmUnIGNvbW1hbmQuCisgICAgICAgICAgICAgICAgICAgICAgICAgICAjfigoYWN0aXZhdGUtbW9k cHJvYmUgIyRtb2Rwcm9iZSkKIAotICAgICAgICAgICAgICAgICAgICA7OyBMZXQgdXNlcnMgZGVi dWcgdGhlaXIgb3duIHByb2Nlc3NlcyEKLSAgICAgICAgICAgICAgICAgICAgKGFjdGl2YXRlLXB0 cmFjZS1hdHRhY2gpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7OyBMZXQgdXNlcnMg ZGVidWcgdGhlaXIgb3duIHByb2Nlc3NlcyEKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IChhY3RpdmF0ZS1wdHJhY2UtYXR0YWNoKSkKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICN+ KCkpCiAKICAgICAgICAgICAgICAgICAgICAgOzsgUnVuIHRoZSBzZXJ2aWNlcycgYWN0aXZhdGlv biBzbmlwcGV0cy4KICAgICAgICAgICAgICAgICAgICAgOzsgVE9ETzogVXNlICdsb2FkLWNvbXBp bGVkJy4KZGlmZiAtLWdpdCBhL2dudS9zeXN0ZW0uc2NtIGIvZ251L3N5c3RlbS5zY20KaW5kZXgg YWE3Njg4Mi4uMGFiMDA5NCAxMDA2NDQKLS0tIGEvZ251L3N5c3RlbS5zY20KKysrIGIvZ251L3N5 c3RlbS5zY20KQEAgLTU5OSw3ICs1OTksNyBAQCBldGMuIgogICAobGV0KiAoKHNlcnZpY2VzICAg KG9wZXJhdGluZy1zeXN0ZW0tc2VydmljZXMgb3MgIzpjb250YWluZXI/IGNvbnRhaW5lcj8pKQog ICAgICAgICAgKGFjdGl2YXRpb24gKGZvbGQtc2VydmljZXMgc2VydmljZXMKICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICM6dGFyZ2V0LXR5cGUgYWN0aXZhdGlvbi1zZXJ2aWNl LXR5cGUpKSkKLSAgICAoYWN0aXZhdGlvbi1zZXJ2aWNlLT5zY3JpcHQgYWN0aXZhdGlvbikpKQor ICAgIChhY3RpdmF0aW9uLXNlcnZpY2UtPn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XN0ZW0tZXRjLWRpcmVjdG9y eSBvcykpCisgICAgICAgKGV0YyAgLT4gKG9wZXJhdGluZy1zeXN0ZW0tZXRjLWRpcmVjdG9yeSBv cykpCiAgICAgICAgKGJvb3QgICAgKG9wZXJhdGluZy1zeXN0ZW0tYm9vdC1zY3JpcHQgb3MgIzpj b250YWluZXI/ICN0KSkKICAgICAgICAobG9jYWxlICAob3BlcmF0aW5nLXN5c3RlbS1sb2NhbGUt ZGlyZWN0b3J5IG9zKSkpCi0gICAgKGZpbGUtdW5pb24gInN5c3RlbS1jb250YWluZXIiCi0gICAg ICAgICAgICAgICAgYCgoImJvb3QiICwjfiMkYm9vdCkKLSAgICAgICAgICAgICAgICAgICgicHJv ZmlsZSIgLCN+IyRwcm9maWxlKQotICAgICAgICAgICAgICAgICAgKCJsb2NhbGUiICwjfiMkbG9j YWxlKQotICAgICAgICAgICAgICAgICAgKCJldGMiICwjfiMkZXRjKSkpKSkKKyAgICAobG93ZXIt b2JqZWN0CisgICAgIChmaWxlLXVuaW9uICJzeXN0ZW0tY29udGFpbmVyIgorICAgICAgICAgICAg ICAgICBgKCgiYm9vdCIgLCN+IyRib290KQorICAgICAgICAgICAgICAgICAgICgicHJvZmlsZSIg LCN+IyRwcm9maWxlKQorICAgICAgICAgICAgICAgICAgICgibG9jYWxlIiAsI34jJGxvY2FsZSkK KyAgICAgICAgICAgICAgICAgICAoImV0YyIgLCN+IyRldGMpKSkpKSkKIAogKGRlZmluZSAoY29u dGFpbmVyaXplZC1vcGVyYXRpbmctc3lzdGVtIG9zIG1hcHBpbmdzKQogICAiUmV0dXJuIGFuIG9w ZXJhdGluZyBzeXN0ZW0gYmFzZWQgb24gT1MgZm9yIHVzZSBpbiBhIExpbnV4IGNvbnRhaW5lcgot LSAKMi41LjAKCg== --94eb2c08858cd7c3c805230b0e73--