From: Michael Tremer Date: Wed, 10 Aug 2022 21:01:10 +0000 (+0000) Subject: python: execute: Drop enable_network switch X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a148c0956aafaf17ca9601973715593433dcb169;p=people%2Fstevee%2Fpakfire.git python: execute: Drop enable_network switch This is never being used in the code. Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/pakfire.c b/src/_pakfire/pakfire.c index 58101b7a..f4975ce2 100644 --- a/src/_pakfire/pakfire.c +++ b/src/_pakfire/pakfire.c @@ -819,7 +819,6 @@ static PyObject* Pakfire_execute(PakfireObject* self, PyObject* args, PyObject* char* kwlist[] = { "command", "environ", - "enable_network", "interactive", "logging_callback", "nice", @@ -836,14 +835,13 @@ static PyObject* Pakfire_execute(PakfireObject* self, PyObject* args, PyObject* PyObject* command = NULL; PyObject* environ = NULL; - int enable_network = 0; int interactive = 0; PyObject* logging_callback = NULL; int nice = 0; int return_output = 0; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|OppOip", kwlist, &command, &environ, - &enable_network, &interactive, &logging_callback, &nice, &return_output)) + if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|OpOip", kwlist, &command, &environ, + &interactive, &logging_callback, &nice, &return_output)) return NULL; // Check if command is a list @@ -878,12 +876,6 @@ static PyObject* Pakfire_execute(PakfireObject* self, PyObject* args, PyObject* argv[i] = PyUnicode_AsUTF8(item); } -#if 0 - // Enable network? - if (enable_network) - flags |= PAKFIRE_JAIL_ENABLE_NETWORK; -#endif - // Interactive? if (interactive) flags |= PAKFIRE_JAIL_INTERACTIVE;