From nobody Sat Apr 20 11:08:26 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1521172389677542.8342706467067; Thu, 15 Mar 2018 20:53:09 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AF3EE7FEAD; Fri, 16 Mar 2018 03:53:08 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A3A085D725; Fri, 16 Mar 2018 03:53:08 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 962044CA98; Fri, 16 Mar 2018 03:53:08 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2G3oMh4020408 for ; Thu, 15 Mar 2018 23:50:22 -0400 Received: by smtp.corp.redhat.com (Postfix) id B2D551DB22; Fri, 16 Mar 2018 03:50:22 +0000 (UTC) Received: from lemon.usersys.redhat.com (ovpn-12-97.pek2.redhat.com [10.72.12.97]) by smtp.corp.redhat.com (Postfix) with ESMTP id D748B1DB20 for ; Fri, 16 Mar 2018 03:50:21 +0000 (UTC) From: Fam Zheng To: patchew-devel@redhat.com Date: Fri, 16 Mar 2018 11:50:12 +0800 Message-Id: <20180316035013.23849-2-famz@redhat.com> In-Reply-To: <20180316035013.23849-1-famz@redhat.com> References: <20180316035013.23849-1-famz@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 1/2] server.docker: Include .git in /opt/patchew X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 16 Mar 2018 03:53:08 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Fam Zheng --- scripts/dockerfiles/server.docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dockerfiles/server.docker b/scripts/dockerfiles/server= .docker index 7641196..1c22626 100644 --- a/scripts/dockerfiles/server.docker +++ b/scripts/dockerfiles/server.docker @@ -12,7 +12,7 @@ RUN /bin/bash -c "mkdir -p /opt/patchew && \ COPY . /tmp/patchew/ # Be careful not to overwrite the venv we've just initialized RUN rm -rf /tmp/patchew/venv -RUN mv /tmp/patchew/* /opt/patchew/ +RUN cp -r /tmp/patchew /opt RUN /bin/bash -c "cd /opt/patchew && \ . venv/bin/activate && \ ./manage.py migrate --no-input && \ --=20 2.14.3 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel From nobody Sat Apr 20 11:08:26 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1521172389721357.9187433429165; Thu, 15 Mar 2018 20:53:09 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C3BA57FEB0; Fri, 16 Mar 2018 03:53:08 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BB35E600C0; Fri, 16 Mar 2018 03:53:08 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id AB0F9180613A; Fri, 16 Mar 2018 03:53:08 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w2G3oOps020420 for ; Thu, 15 Mar 2018 23:50:24 -0400 Received: by smtp.corp.redhat.com (Postfix) id 26FE21DB20; Fri, 16 Mar 2018 03:50:24 +0000 (UTC) Received: from lemon.usersys.redhat.com (ovpn-12-97.pek2.redhat.com [10.72.12.97]) by smtp.corp.redhat.com (Postfix) with ESMTP id 482691DB22 for ; Fri, 16 Mar 2018 03:50:23 +0000 (UTC) From: Fam Zheng To: patchew-devel@redhat.com Date: Fri, 16 Mar 2018 11:50:13 +0800 Message-Id: <20180316035013.23849-3-famz@redhat.com> In-Reply-To: <20180316035013.23849-1-famz@redhat.com> References: <20180316035013.23849-1-famz@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 2/2] www: Call subprocess compatibly with python34 X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 16 Mar 2018 03:53:08 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" encoding parameter is not supported until python 3.6. Signed-off-by: Fam Zheng --- www/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/views.py b/www/views.py index 1648754..e12fa48 100644 --- a/www/views.py +++ b/www/views.py @@ -23,8 +23,8 @@ PAGE_SIZE =3D 50 =20 def try_get_git_head(): try: - return "-" + subprocess.check_output(["git", "rev-parse", "--short= ", "HEAD"], - encoding=3D'utf-8') + return "-" + subprocess.check_output(["git", "rev-parse", + "--short", "HEAD"]).decode() except: return "" =20 --=20 2.14.3 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel