From patchwork Thu Mar 7 15:10:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe REYNES X-Patchwork-Id: 1052995 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::43d; helo=mail-wr1-x43d.google.com; envelope-from=swupdate+bncbaabbaxjqtsakgqe54h34mq@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="iUZumQe8"; dkim-atps=neutral Received: from mail-wr1-x43d.google.com (mail-wr1-x43d.google.com [IPv6:2a00:1450:4864:20::43d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44FYx32cX8z9sNG for ; Fri, 8 Mar 2019 02:11:01 +1100 (AEDT) Received: by mail-wr1-x43d.google.com with SMTP id p3sf8700894wrs.7 for ; Thu, 07 Mar 2019 07:11:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1551971458; cv=pass; d=google.com; s=arc-20160816; b=VJSKnQ6qxc3VoenDi8bolZ7a5bp/ss9CWIVIx+M7wFGUroE6DacJ1dR20CT2sBOt/7 jomEJGZ6sS8LibwyExPeuuY+dLH40xpQz4MVfvL4+hCqqfB0W8XvkHrzBuwvLzmXGUzZ cFGZwpeoY1wqYTQQLWlPpsF6n73N5nFD5Ay96agrJCPrEa6eCLuKm7g1dDcNXkh1qa6b KeApU6AC1i65cdgn76GJA3azndJjpXyvQMVr9rnRSmoX2bo4VkFhc3q8vJU4H6QU9AjV g6OGXN4JruYGfXYSKW/r9c06dVj0YEUtp5wUJTGHR/Svw0f5oLizRMqW+QKlKdtTjwfA KqnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:mime-version:sender:dkim-signature; bh=AH+D/yb0EsN0wnPkBAKVwML/QHomd1m6eBSnYFz8TLo=; b=RYnO2kqDPvOKrmNSqoxOARTbs506y6X0vcTldLs/lyoRspV6HvlSxAMQ5R3+maNsTP i0jCSo/TC4MkIkO4bzsaRoAzF8Ohmx5D2r8AuDCfAAC5iK3z71glsI2+L9k5ddBOjqnR UGMeY4l2K79MCVrNQCZD+9xx/7LrKRfmzOBssBBQJnxQQeOAVON+AUkxN+QLMeZsGN33 poqubecjcMqQREQEb2uYjQ0/dOw8zCSwEFKyjySLotiy1n7JZv4wn4tqPcFTJMI33SFX iuWWG5QHb8ynAqc8pTLzTb5aL9NYmSxusTet3kr8LO9wQYLinp1I3RbyGKGW2gpV8xGu kyZg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning philippe.reynes@softathome.com does not designate 185.56.204.56 as permitted sender) smtp.mailfrom=philippe.reynes@softathome.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=AH+D/yb0EsN0wnPkBAKVwML/QHomd1m6eBSnYFz8TLo=; b=iUZumQe8aImh+oNRNI1aBdTo3aEz424JdfkGt4kHOr8erPOPPgZIilYV4LQm7rkXkn ubhnqPidGBiOejSBrqgGVB/l2QsZ/cc8trj9S55eA7KqKIgWn9lVqVnGQTgyKsuamxqU jOqq8MIXQTlb0jH30+CYYnOp+E0ldnFsl6hOT+Ra7AJDTiq7JdQ+WlmT+H0kfvqEmnRm 7GjBSSuhidaA5x4jie4ylXXuqo5sGiV4CBYI1XKmsdVmMffX/CjFPuaus+q6yNtl2X+a UCrEWi48LDxhQtjpUN5KjS19BLncjBqQmAgh3uS+j5OhdDWFHHniUFmWmm3BKhBQ/53J n4UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=AH+D/yb0EsN0wnPkBAKVwML/QHomd1m6eBSnYFz8TLo=; b=r9cj3oSHOEy1T3PrfJI/+K3BY7MlTEedee4bfyucMP4BysOFOxuqXj2JZcHta72gF6 mA49sxooa+Qz7+DjCCxG1oulM9JznPfWiPq/MAf5aRicOtRG906h9GfLNcv0PmSWIZt+ ogWWzIPzQpeWbDuKG2+ffQFfhn3VmYinCI5PL1y/+33ifqgyzpCVcU92Ew7DteVpthUw LMlKQrSoQpGI7mEyzfVy3Cr5Ifk2MD1fz/hEK40wVPRTShWvVdYPcwbkdA7j9faV+T8e HHynk1rbuzgV8rnc2lQVw9GombMVal1TwMu0KvEGlpKAvfdUjX3+CCgGacF4sXA8JboM R2BQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAVrO+5DvW7XSvT0BQyWLN7eyj6p5Gi7jTXFGu0rCYkoABT/MyBy Y5N/nG6NZRZ9mZxOySuJPTg= X-Google-Smtp-Source: APXvYqxeKS5RJLHScJsCqrHd+EkXnuophd1cNCTTbF0hJDKP+yCgMHkn4kw6XJE7yOzmuuTruuYy7Q== X-Received: by 2002:adf:fa10:: with SMTP id m16mr2818757wrr.188.1551971458361; Thu, 07 Mar 2019 07:10:58 -0800 (PST) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a5d:400e:: with SMTP id n14ls1321920wrp.16.gmail; Thu, 07 Mar 2019 07:10:57 -0800 (PST) X-Received: by 2002:adf:a390:: with SMTP id l16mr715118wrb.11.1551971457788; Thu, 07 Mar 2019 07:10:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551971457; cv=none; d=google.com; s=arc-20160816; b=UsOKp9uzmwgQzuZMQCX+3XyXyBoZIzvAeDSH/6SvOSt0la/8vhnpF7NqLZDeb+cHyf xp+bdRMbdF0TvCvqirz1QYM55tmkEvSgocvlKo6Q5m9/k5xOYUYYQRk/uCklwURnNggN efBipW9+jG0SIiW7pVgrp1TthZYkp36rsWYaswCQEQAntxCmm86fH+TM+gp48PlNknQ6 71SDbPCvwXm/zcOJ7m2GwE/OD7B5IateLHWxS31zNK5r8nmt+El/nYw2elNCc1He73rn AtSFyR2X/wRmC/mT8PNQGkYDm0PHi70XWUqUSJ09koLHo607KtjubVIsBTdJ3MxH+XvR LUrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=PACwOWF4Qlkh8r2D8MNevDm2ZKDU0KIGyTw1qZ7nVUA=; b=OoYoGQzeThTSXOWMSQnVEdKK11w0LLyHplf6RRGmhn3tJoUwxr8kM2Av2gak3Z92hD 4AKf0mMUdPB+IFP4huacaZThTPj1V80umxNmgb0slaa7lWqj1kUJjqpId5aEMcyz3TgO NLHowSTLqHub8/Iz0qcPdBAusb1ucufl5o+0CqPPeYIcRHmpbkCTakxptqbgmYdjp2Cg wF9LJOA/m6GDrJH+ZyBE9DMnJSl/HtW9qA5eLUGZDswzgmB4YrWhw7RLJwqmx7Z2pZje e0XOh7LLp1JMcQ+solJyaZqiytnR6BXuiOFOOzmsBvYPou2yTClNHkVHE3yXyIDFy/Vy zjEg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning philippe.reynes@softathome.com does not designate 185.56.204.56 as permitted sender) smtp.mailfrom=philippe.reynes@softathome.com Received: from vrout10.yaziba.net (vrout10-bl2.yaziba.net. [185.56.204.56]) by gmr-mx.google.com with ESMTPS id y192si221790wmd.1.2019.03.07.07.10.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Mar 2019 07:10:57 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning philippe.reynes@softathome.com does not designate 185.56.204.56 as permitted sender) client-ip=185.56.204.56; Received: from mtaout10.int.yaziba.net (mtaout10.int.yaziba.net [10.4.20.36]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by vrout10.yaziba.net (mx10.yaziba.net) with ESMTPS id 9E6F952139 for ; Thu, 7 Mar 2019 16:10:57 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mtaout10.int.yaziba.net (Postfix) with ESMTP id 8DF55160235; Thu, 7 Mar 2019 16:10:57 +0100 (CET) Received: from mtaout10.int.yaziba.net ([127.0.0.1]) by localhost (mtaout10.int.yaziba.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jrbt4GHkvecT; Thu, 7 Mar 2019 16:10:57 +0100 (CET) Received: from sahnlpt0333.softathome.com (unknown [149.6.166.170]) by mtaout10.int.yaziba.net (Postfix) with ESMTPSA id 75392160236; Thu, 7 Mar 2019 16:10:57 +0100 (CET) From: Philippe Reynes To: swupdate@googlegroups.com Cc: Philippe Reynes Subject: [swupdate] [PATCH 2/2] fix the dryrun option for the API for external programs Date: Thu, 7 Mar 2019 16:10:55 +0100 Message-Id: <1551971455-3323-2-git-send-email-philippe.reynes@softathome.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1551971455-3323-1-git-send-email-philippe.reynes@softathome.com> References: <1551971455-3323-1-git-send-email-philippe.reynes@softathome.com> X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: 0 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrfeekgdejhecutefuodetggdotefrucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhestddtredtredttdenucfhrhhomheprfhhihhlihhpphgvucftvgihnhgvshcuoehphhhilhhiphhpvgdrrhgvhihnvghssehsohhfthgrthhhohhmvgdrtghomheqnecukfhppedugeelrdeirdduieeirddujedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhht X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht X-Original-Sender: philippe.reynes@softathome.com X-Original-Authentication-Results: gmr-mx.google.com; spf=softfail (google.com: domain of transitioning philippe.reynes@softathome.com does not designate 185.56.204.56 as permitted sender) smtp.mailfrom=philippe.reynes@softathome.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , When using the API for external programs, the network thread only set the option dryrun in the configuration, so if this option is set once, it's set forever. Instead we set it each time, so it's now possible to use the API for external programs with dryrun then run it withtout dryrun. Signed-off-by: Philippe Reynes Acked-by: Stefano Babic --- corelib/stream_interface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/corelib/stream_interface.c b/corelib/stream_interface.c index 8a07761..1261958 100644 --- a/corelib/stream_interface.c +++ b/corelib/stream_interface.c @@ -350,6 +350,8 @@ void *network_initializer(void *data) */ if (inst.dry_run) software->globals.dry_run = 1; + else + software->globals.dry_run = 0; /* * Check if the stream should be saved