-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flatpak puller #28
Flatpak puller #28
Conversation
First point was done. Many work was done, but from your point of view it could not, because of my description. |
I think it was done, but we have problems with my previous patch (implement flatpak package manager support in packages module of core). It asks question in some cases, like adding the same repo to system and user installation. I do not known, how to fix it. Or, maybe just do not scary cause it is task for distribution to enable only one repo? |
Can you apply the Calamares code format/style using |
Yes. I will do this tomorrow. |
Done |
The commit where |
Repaired. |
Hi @nintyfan, I am currently working on installing a module which supports both Flatpak and apt packages. I have managed to download the necessary files and successfully compiled the C++ source code into a .so (shared object) file. However, I am unsure about how to properly utilize this module to achieve my goal. Could you please guide me on how to use this file or integrate it within my existing setup? Any help or guidance would be greatly appreciated. Thank you!
|
This module only populates the list. What you are trying to do is to use the netinstall module to install packages using multiple backends. However, it doesn't currently have an ability to support that. You can use it to install flatpaks or you can use it to install repo packages but not both. I think you would need to modify the netinstall module(and maybe the packages module) to support your use case. |
I have send PR to main calamares bugtracker. It contains support for installing flatpak. This code is designed to achieve different goal: populate list of packages. For more info, see related issue. |
I have send PR to main calamares bugtracker. It contains support for installing flatpak. This code is designed to achieve different goal: populate list of packages. For more info, see related issue.
I think you should place source field to package group. Next - packaging module should split packages based on this info and install it separately. To achieve this, netinstall or other should copy source info from package group into related packages. |
So, overall, here is the thing you are trying to do:
|
You are right. I do not known if mechanism inside packages is merged. I send it. Firstly, we need to wait for merge to packages module. |
For me, personally, I would not be comfortable merging this with that global variable and all those free functions that reference it. I really think it should have an object model more similar to the rest of the C++ Calamares code. However, this is extensions so someone else may feel differently. |
Which global variable? I remove boolean variable. Did you write about
installed package list? In this case, I will move it to module class, or at
least - try.
niedz., 22 paź 2023, 17:08 użytkownik dalto8 ***@***.***>
napisał:
… For me, personally, I would not be comfortable merging this with that
global variable and all those free functions that reference it. I really
think it should have an object model more similar to the rest of the C++
Calamares code.
However, this is extensions so someone else may feel differently.
—
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGXA6Q353WJR4KTV45CKLBTYAUZGRAVCNFSM6AAAAAA4L43CVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZUGEYTSMJSGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Any global variable.
Yes, that was the one I noticed. |
Variable removed. |
I think, there is no more global-variables in flatpakinfo module. |
Hi. I tries to send private message, but I cannot. You can use instance of Calamares module and joins PACKAGES string with instance name - both in packages.py and in some file of calamares library (search for add packages to install), where packages list to install was built. To get instance: You must also wrote special configuration for each instance of modules (netinstall@normal_packages, packages@normal_packages, ...) . I think, that it should work. |
Oh sorry I completely forgot about that but thanks for replying! I was so annoyed with calamares that I made my own in python for my debian linux. It still needs some work because systemd-boot and grub need to be separate etc etc but since I do it I know what I need and I can configure what I want a thousand times better than in calamares where there is no proper description... |
Without these the package no-longer compiles with recent versions of cmake.
Calamares 3.3.0 changed the import name and namespace of CalamaresUtilsSystem and CalamaresUtilsGui.
Builds cleanly with Calamares 3.3.1
Builds cleanly with Calamares 3.3.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably done all of requests.
Some changes need to be done, like:
Currently, it is speedy, have small amount of code and works. I must told, it is hacky. I check if flatpak write to output line contains dot to filter-out broken data (empty lines?): I did not check, what these data was yet, so this is third point to correct. Without that check, netinstall displays virtual packages (with empty names).