]> git.ipfire.org Git - pakfire.git/commitdiff
repo: Drop option to change name
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Mar 2021 18:39:08 +0000 (18:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Mar 2021 18:39:08 +0000 (18:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/repo.c
src/libpakfire/include/pakfire/repo.h
src/libpakfire/libpakfire.sym
src/libpakfire/repo.c

index 106091b78851a3072af5f83d6713a7b5b2363ebc..3fb15b40dc8e9487566e5416539641bd8e66c95e 100644 (file)
@@ -108,13 +108,6 @@ static PyObject* Repo_get_name(RepoObject* self) {
        return PyUnicode_FromString(name);
 }
 
-static int Repo_set_name(RepoObject* self, PyObject* value) {
-       const char* name = PyUnicode_AsUTF8(value);
-
-       pakfire_repo_set_name(self->repo, name);
-       return 0;
-}
-
 static PyObject* Repo_get_description(RepoObject* self) {
        const char* description = pakfire_repo_get_description(self->repo);
 
@@ -554,7 +547,7 @@ static struct PyGetSetDef Repo_getsetters[] = {
        {
                "name",
                (getter)Repo_get_name,
-               (setter)Repo_set_name,
+               NULL,
                "The name of the repository",
                NULL
        },
index 48f4026496dcf118aef955b8185c6a51b6fa0454..c26434b67ec885f1d818154f6b46a0ee377fe21e 100644 (file)
@@ -40,7 +40,6 @@ int pakfire_repo_count(PakfireRepo repo);
 void pakfire_repo_internalize(PakfireRepo repo);
 
 const char* pakfire_repo_get_name(PakfireRepo repo);
-void pakfire_repo_set_name(PakfireRepo repo, const char* name);
 
 const char* pakfire_repo_get_description(PakfireRepo repo);
 int pakfire_repo_set_description(PakfireRepo repo, const char* description);
index df61f5ebe8264ee36432a369403e42c9a0537e22..c9781055392086e1c23e843d5d145319ffba8342 100644 (file)
@@ -323,7 +323,6 @@ global:
        pakfire_repo_set_enabled;
        pakfire_repo_set_keyfile;
        pakfire_repo_set_mirrorlist;
-       pakfire_repo_set_name;
        pakfire_repo_set_priority;
        pakfire_repo_write_solv;
        pakfire_repo_write_solv_fp;
index c977256b4ffd5d8d5da3ca9b975ffb7eab18529b..90e69883e78187d66c69732c12b37323a6d9857d 100644 (file)
@@ -285,10 +285,6 @@ PAKFIRE_EXPORT const char* pakfire_repo_get_name(PakfireRepo repo) {
        return repo->repo->name;
 }
 
-PAKFIRE_EXPORT void pakfire_repo_set_name(PakfireRepo repo, const char* name) {
-       repo->repo->name = strdup(name);
-}
-
 PAKFIRE_EXPORT const char* pakfire_repo_get_description(PakfireRepo repo) {
        return repo->appdata->description;
 }