Skip to content
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

Package management tool (cli), written in Python using python-apt #30

Open
mjkaye opened this issue Mar 20, 2013 · 5 comments
Open

Package management tool (cli), written in Python using python-apt #30

mjkaye opened this issue Mar 20, 2013 · 5 comments

Comments

@mjkaye
Copy link

mjkaye commented Mar 20, 2013

"We need an implementation of apt in python so we have more control over it's status, this can be done with the python-apt library. This script should then be CLI controllable. With the normal shell script apt-get we have hardly any control over what it's doing or why it failed."

@CurlyMoo
Copy link
Contributor

The requirements are as follows (as far as i can think of now). All of these functions should work for the xbian apt repository only.

  • Retrieving xbian apt package list + categories
  • Checking for package updates
  • Checking for system updates
  • Installingen packages
  • Updating packages
  • Dist-upgrading the system
  • Outputting easy to use error codes
  • Showing the process when installing/updating/upgrading
  • (Running as a service to keep track of updates)
  • Everything should be CLI controllable

One tip, edit the /etc/apt/sources.list so it only contains the apt repository when you start this script and restore the sources.list after the script. This will greatly improve it's speed.

I already tried to code things myself but it doesn't work anymore (showing my lack of knowledge of python) but you get the idea: http://www.mediafire.com/download.php?xd1bfw14478zwpp

@CurlyMoo
Copy link
Contributor

CurlyMoo commented Apr 2, 2013

Any updates on this?

@mjkaye
Copy link
Author

mjkaye commented Apr 7, 2013

Any updates on this?

Sorry, been very busy.

Currently refactoring your code and experimenting with the python-apt API.

...should work for the xbian apt repository only.
...
One tip, edit the /etc/apt/sources.list so it only contains the apt repository when you start this script and restore the sources.list after the script. This will greatly improve it's speed.

I suggest we permanently move the XBian repo definitions to an /etc/apt/sources.list.d/xbian.list.d file. This way, it will get picked up by normal apt-get runs and, at worst, we'll just have to rename /etc/apt/sources.list for the duration of the script rather than rewrite it.

(Running as a service to keep track of updates)

Running as a cron job would probaby suffice for this.

I'll make a pull request when it's ready for testing.

@CurlyMoo
Copy link
Contributor

CurlyMoo commented Apr 7, 2013

I suggest we permanently move the XBian repo definitions to an /etc/apt/sources.list.d/xbian.list.d file. This way, it will get picked up by normal apt-get runs and, at worst, we'll just have to rename /etc/apt/sources.list for the duration of the script rather than rewrite it.

Do whatever you think is necessary

@CurlyMoo
Copy link
Contributor

CurlyMoo commented Apr 8, 2013

Just for your notice, i will be around until the 4th of May. That means you don't have to rush development, but that someone else will have to implement it if you are done after that date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants