From nobody Fri May 3 21:38:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1629901384; cv=none; d=zohomail.com; s=zohoarc; b=Za0STrI1Ycd0bxMe1WTKBf38R6lDP/AAQM6xrHOBhJohVQpZ76hnv48dWhCfx7XVqmTeLMgstsKtVV1WyywTT0rW2d3rnM5hAEYiEPt/FcmX/rOWof88DjsdDX9og7LoqpC6HeoFWD8wcxeXklikvqZW6j+iyF9g6UCcsX4V4/0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1629901384; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=TvGnJPU5Wbb8imQqQOMANo/AZ0oxg9H9ViHFBV4SBG0=; b=GoDkFSWhMeEwUh4BH+nM/JSdMewcnJ//itlE+A7ky8ynNr+vN+L/HLvhn2aYrVdDhAgU+xBZb5byJs0n4rwxk/nuKDPpaSlaYgy54eIQUhc+sXElv0s4Sn9WfThRGnnYClm2rlJj1Er3ZXT8KVZPIVo950kvp3mnTKoM1DuTR10= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1629901384078310.4228435660277; Wed, 25 Aug 2021 07:23:04 -0700 (PDT) Received: from localhost ([::1]:34850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mItnv-0004wV-Ep for importer@patchew.org; Wed, 25 Aug 2021 10:22:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mItms-0003lQ-S7 for qemu-devel@nongnu.org; Wed, 25 Aug 2021 10:21:54 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:33973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mItmq-0006r8-UA for qemu-devel@nongnu.org; Wed, 25 Aug 2021 10:21:54 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-447-SugC2KifPgqlCIkMrqTgyg-1; Wed, 25 Aug 2021 10:21:49 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 249CE801E72; Wed, 25 Aug 2021 14:21:48 +0000 (UTC) Received: from thuth.com (unknown [10.39.192.111]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6DB3C3CC7; Wed, 25 Aug 2021 14:21:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629901312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TvGnJPU5Wbb8imQqQOMANo/AZ0oxg9H9ViHFBV4SBG0=; b=Kt06KbCOInQA1GXmQ7vA3LFZOsDjNcCG0YHhU9nTr41wvyUZo5ABeCBZvONMNeymyZUdvU UdJPQ4iTuJlFLuSmoeVV3xPhm4tzmmFSv/Iw3gFNTKI07Xsn1jQ2wnW5rMMrvyXlHO0Ex6 7GCZsBMv8c6CDFavVdUmsdhugqLYxeE= X-MC-Unique: SugC2KifPgqlCIkMrqTgyg-1 From: Thomas Huth To: qemu-devel@nongnu.org Subject: [PATCH] scripts: Remove the "show-fixed-bugs.sh" file Date: Wed, 25 Aug 2021 16:21:43 +0200 Message-Id: <20210825142143.142037-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.745, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1629901403264100003 Content-Type: text/plain; charset="utf-8" Since we are not using Launchpad anymore, there is no more need for this script. Signed-off-by: Thomas Huth Reviewed-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- scripts/show-fixed-bugs.sh | 91 -------------------------------------- 1 file changed, 91 deletions(-) delete mode 100755 scripts/show-fixed-bugs.sh diff --git a/scripts/show-fixed-bugs.sh b/scripts/show-fixed-bugs.sh deleted file mode 100755 index a095a4d6ba..0000000000 --- a/scripts/show-fixed-bugs.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/sh - -# This script checks the git log for URLs to the QEMU launchpad bugtracker -# and optionally checks whether the corresponding bugs are not closed yet. - -show_help () { - echo "Usage:" - echo " -s : Start searching at this commit" - echo " -e : End searching at this commit" - echo " -c : Check if bugs are still open" - echo " -b : Open bugs in browser" -} - -while getopts "s:e:cbh" opt; do - case "$opt" in - s) start=3D"$OPTARG" ;; - e) end=3D"$OPTARG" ;; - c) check_if_open=3D1 ;; - b) show_in_browser=3D1 ;; - h) show_help ; exit 0 ;; - *) echo "Use -h for help." ; exit 1 ;; - esac -done - -if [ "x$start" =3D "x" ]; then - start=3D$(git tag -l 'v[0-9]*\.[0-9]*\.0' | tail -n 2 | head -n 1) -fi -if [ "x$end" =3D "x" ]; then - end=3D$(git tag -l 'v[0-9]*\.[0-9]*\.0' | tail -n 1) -fi - -if [ "x$start" =3D "x" ] || [ "x$end" =3D "x" ]; then - echo "Could not determine start or end revision ... Please note that t= his" - echo "script must be run from a checked out git repository of QEMU." - exit 1 -fi - -echo "Searching git log for bugs in the range $start..$end" - -urlstr=3D'https://bugs.launchpad.net/\(bugs\|qemu/+bug\)/' -bug_urls=3D$(git log $start..$end \ - | sed -n '\,'"$urlstr"', s,\(.*\)\('"$urlstr"'\)\([0-9]*\).*,\2\4,p' \ - | sort -u) - -echo Found bug URLs: -for i in $bug_urls ; do echo " $i" ; done - -if [ "x$check_if_open" =3D "x1" ]; then - echo - echo "Checking which ones are still open..." - for i in $bug_urls ; do - if ! curl -s -L "$i" | grep "value status" | grep -q "Fix Released= " ; then - echo " $i" - final_bug_urls=3D"$final_bug_urls $i" - fi - done -else - final_bug_urls=3D$bug_urls -fi - -if [ "x$final_bug_urls" =3D "x" ]; then - echo "No open bugs found." -elif [ "x$show_in_browser" =3D "x1" ]; then - # Try to determine which browser we should use - if [ "x$BROWSER" !=3D "x" ]; then - bugbrowser=3D"$BROWSER" - elif command -v xdg-open >/dev/null 2>&1; then - bugbrowser=3Dxdg-open - elif command -v gnome-open >/dev/null 2>&1; then - bugbrowser=3Dgnome-open - elif [ "$(uname)" =3D "Darwin" ]; then - bugbrowser=3Dopen - elif command -v sensible-browser >/dev/null 2>&1; then - bugbrowser=3Dsensible-browser - else - echo "Please set the BROWSER variable to the browser of your choic= e." - exit 1 - fi - # Now show the bugs in the browser - first=3D1 - for i in $final_bug_urls; do - "$bugbrowser" "$i" - if [ $first =3D 1 ]; then - # if it is the first entry, give the browser some time to start - # (to avoid messages like "Firefox is already running, but is - # not responding...") - sleep 4 - first=3D0 - fi - done -fi --=20 2.27.0