From patchwork Thu May 21 17:15:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 3116 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 49Sbq30tgQz3xQr for ; Thu, 21 May 2020 17:15:27 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 49Sbq25Vk7z28p; Thu, 21 May 2020 17:15:26 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 49Sbq22ptFz2yF9; Thu, 21 May 2020 17:15:26 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 49Sbq06sJ6z2xcS; Thu, 21 May 2020 17:15:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 49Sbpz44S0z13Z; Thu, 21 May 2020 17:15:23 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1590081324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9ovA+hXg51k7RR+E5RjSxXvF0YmdpqUo223CJTstZiQ=; b=CjH+x72fH2GjpnrL293nYJTsFBFKs4CkDwpcBJ7PqngRPCl5wnDrMnZe5+bn/Nsf9mX0yw pSw4O/VcZAyzljAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1590081324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9ovA+hXg51k7RR+E5RjSxXvF0YmdpqUo223CJTstZiQ=; b=lzxaLS+RC5jS2CA8zfWKgiRH48XiD0ijf5q88EI0+y4i2GhYyGzBGPhgfJzSvej+4cV5m+ NirSyVCnR1M2TJlom1W8QW/I2wiU1cdJBAoGzEFMv2rxcOIOD9/TQdB2jLGvLmju4zo1Zv VCR1XgVDlJj9f0Lx3hC+E6pXfz9X8bu4p8Y2KbdB8l2WtjW/7PNcU4sg1b3vAeF+oKZY3H 3chLSY09jG42A32+n4tR3keJJ6W589ND+xgSnZY+B4HtjPIc3AQBaeTQ9c8ynT1bB5I6md fRdmSGjFA1iGV3uFtpUExc8POtjv2Fw7l421gZLWKv/m9xm4o0Ahs6KJn081lg== From: Stefan Schantl To: location@lists.ipfire.org Subject: [PATCH] examples/create-database.py: Add hack to allow loading the module in build environment. Date: Thu, 21 May 2020 19:15:19 +0200 Message-Id: <20200521171519.63875-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: location@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: development@lists.ipfire.org Errors-To: location-bounces@lists.ipfire.org Sender: "Location" Authentication-Results: mail01.ipfire.org; none X-Rspamd-Queue-Id: 49Sbq25Vk7z28p X-Spamd-Result: default: False [1.69 / 11.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FORGED_SENDER_MAILLIST(0.00)[]; FROM_HAS_DN(0.00)[]; R_MISSING_CHARSET(2.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; BROKEN_CONTENT_TYPE(1.50)[]; HAS_LIST_UNSUB(-0.01)[]; RCVD_COUNT_THREE(0.00)[4]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[stefan.schantl@ipfire.org,location-bounces@lists.ipfire.org]; BAYES_HAM(-3.00)[99.99%] X-Rspamd-Server: mail01.haj.ipfire.org This script is needed to generate the database which is used by the testsuite of the perl binding of libloc. This allows us to revert the following commits: * 482eb94f165507ffcb6503e162535064d6dcecac * 3d26288681601b273f034de1f2241dc4342791b5 Signed-off-by: Stefan Schantl --- examples/python/create-database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/python/create-database.py b/examples/python/create-database.py index 86205e0..0eaa945 100644 --- a/examples/python/create-database.py +++ b/examples/python/create-database.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -import location +import _location as location import os import sys