]> git.ipfire.org Git - pakfire.git/commitdiff
errno: Drop the rest of this implementation
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Apr 2021 17:38:19 +0000 (17:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 6 Apr 2021 17:38:19 +0000 (17:38 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/_pakfire/problem.c
src/_pakfire/solution.c
src/libpakfire/errno.c [deleted file]
src/libpakfire/include/pakfire/errno.h [deleted file]
src/libpakfire/libpakfire.sym
src/libpakfire/parser.c
src/libpakfire/repo.c
src/libpakfire/selector.c

index 4320cd4be23573fa0bd8ad013e03e478724c3b0f..9052a26a42cfeb06eddb8d8a0c2ba83bfdbcb0a6 100644 (file)
@@ -261,7 +261,6 @@ libpakfire_la_SOURCES = \
        src/libpakfire/db.c \
        src/libpakfire/dist.c \
        src/libpakfire/downloader.c \
-       src/libpakfire/errno.c \
        src/libpakfire/execute.c \
        src/libpakfire/file.c \
        src/libpakfire/filelist.c \
@@ -297,7 +296,6 @@ pkginclude_HEADERS += \
        src/libpakfire/include/pakfire/db.h \
        src/libpakfire/include/pakfire/dist.h \
        src/libpakfire/include/pakfire/downloader.h \
-       src/libpakfire/include/pakfire/errno.h \
        src/libpakfire/include/pakfire/execute.h \
        src/libpakfire/include/pakfire/file.h \
        src/libpakfire/include/pakfire/filelist.h \
index 6792f6c14d910868811147905b2313bd713b21c6..5bb90b44e4ae2583b01b5abb5d06abaf7a878c55 100644 (file)
@@ -21,7 +21,6 @@
 #include <Python.h>
 #include <assert.h>
 
-#include <pakfire/errno.h>
 #include <pakfire/problem.h>
 
 #include "problem.h"
index 309f3c587fc2935c382031f39f9e05d4cfbb672c..174f45945041a8b2109c9327daa099e1fb175802 100644 (file)
@@ -21,7 +21,6 @@
 #include <Python.h>
 #include <assert.h>
 
-#include <pakfire/errno.h>
 #include <pakfire/solution.h>
 
 #include "solution.h"
diff --git a/src/libpakfire/errno.c b/src/libpakfire/errno.c
deleted file mode 100644 (file)
index a43284b..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*#############################################################################
-#                                                                             #
-# Pakfire - The IPFire package management system                              #
-# Copyright (C) 2013 Pakfire development team                                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
-#############################################################################*/
-
-#include "errno.h"
-
-#include <pakfire/private.h>
-
-__thread int pakfire_errno = 0;
-
-PAKFIRE_EXPORT int pakfire_get_errno(void) {
-       return pakfire_errno;
-}
diff --git a/src/libpakfire/include/pakfire/errno.h b/src/libpakfire/include/pakfire/errno.h
deleted file mode 100644 (file)
index e270ebf..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*#############################################################################
-#                                                                             #
-# Pakfire - The IPFire package management system                              #
-# Copyright (C) 2013 Pakfire development team                                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
-#############################################################################*/
-
-#ifndef PAKFIRE_ERRNO_H
-#define PAKFIRE_ERRNO_H
-
-enum _pakfire_errors {
-       PAKFIRE_E_NONE
-};
-
-extern __thread int pakfire_errno;
-
-int pakfire_get_errno(void);
-
-#endif /* PAKFIRE_ERRNO_H */
index c7e43944e33c37bed67b3194372cf71a7897b3d4..6afe80bbc2b6e8d00af691a3a81c0b2450b5a675 100644 (file)
@@ -411,7 +411,6 @@ global:
        pakfire_basename;
        pakfire_dirname;
        pakfire_generate_uuid;
-       pakfire_get_errno;
        pakfire_path_isdir;
        pakfire_path_join;
        pakfire_path_relpath;
index 7b4c08e4b1e998dbb4fa70446010630d5c891fc7..d660a39e49f3dd7c1361323bb5d8e5cac32d869c 100644 (file)
@@ -28,7 +28,6 @@
 #define PCRE2_CODE_UNIT_WIDTH 8
 #include <pcre2.h>
 
-#include <pakfire/errno.h>
 #include <pakfire/execute.h>
 #include <pakfire/logging.h>
 #include <pakfire/package.h>
index 25b055265eea8a8b1b2d1e1347c0b881aa96d13f..e56c6e6f7d3419e976d46062fba9301c8027ead6 100644 (file)
@@ -35,7 +35,6 @@
 #include <pakfire/compress.h>
 #include <pakfire/constants.h>
 #include <pakfire/downloader.h>
-#include <pakfire/errno.h>
 #include <pakfire/file.h>
 #include <pakfire/filelist.h>
 #include <pakfire/i18n.h>
index 89f4c690bc950a8c2e7f61b7995570210f02218c..dded62959267f2d781bdee431a997cff24b21831 100644 (file)
@@ -24,7 +24,6 @@
 #include <solv/queue.h>
 #include <solv/solver.h>
 
-#include <pakfire/errno.h>
 #include <pakfire/filter.h>
 #include <pakfire/logging.h>
 #include <pakfire/package.h>
@@ -374,9 +373,6 @@ PAKFIRE_EXPORT int pakfire_selector2queue(const PakfireSelector selector, Queue*
        }
 
 finish:
-       if (ret)
-               pakfire_errno = ret;
-
        queue_free(&queue_selector);
 
        return ret;