]> git.ipfire.org Git - pakfire.git/log
pakfire.git
8 years agoDrop satsolver.Pool class and use Pool from _pakfire
Michael Tremer [Fri, 7 Apr 2017 18:06:09 +0000 (20:06 +0200)] 
Drop satsolver.Pool class and use Pool from _pakfire

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoDelete the repo cache to clean a repository
Michael Tremer [Fri, 7 Apr 2017 16:00:13 +0000 (18:00 +0200)] 
Delete the repo cache to clean a repository

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoInstalledPackages: Drop dead code
Michael Tremer [Fri, 7 Apr 2017 14:57:39 +0000 (16:57 +0200)] 
InstalledPackages: Drop dead code

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoExtend Python bindings to use libpakfire for dependency resolution
Michael Tremer [Fri, 30 Dec 2016 13:25:58 +0000 (14:25 +0100)] 
Extend Python bindings to use libpakfire for dependency resolution

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Fix wrong function call
Michael Tremer [Fri, 30 Dec 2016 13:11:43 +0000 (14:11 +0100)] 
http: Fix wrong function call

The function was renamed to make clearer what it actually does

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years ago_pakfire: Implement Package based on libpakfire
Michael Tremer [Sun, 18 Dec 2016 17:37:32 +0000 (18:37 +0100)] 
_pakfire: Implement Package based on libpakfire

This wraps around libpakfire and enables Python to
get access to packages.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years ago_pakfire: Use repository management code from libpakfire
Michael Tremer [Sun, 18 Dec 2016 17:06:52 +0000 (18:06 +0100)] 
_pakfire: Use repository management code from libpakfire

This is very much WIP but now uses the new pakfire library
to manage repositories in memory.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years ago_pakfire: Import Archive class
Michael Tremer [Sat, 17 Dec 2016 17:29:38 +0000 (18:29 +0100)] 
_pakfire: Import Archive class

This can be used to read a package archive and extract
files from it.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoCleanup any clashes in include protectors
Michael Tremer [Thu, 15 Dec 2016 22:04:54 +0000 (23:04 +0100)] 
Cleanup any clashes in include protectors

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoRewrite _pakfire.Pool based on libpakfire
Michael Tremer [Thu, 15 Dec 2016 22:00:50 +0000 (23:00 +0100)] 
Rewrite _pakfire.Pool based on libpakfire

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoImport libpakfire
Michael Tremer [Tue, 13 Dec 2016 22:44:00 +0000 (23:44 +0100)] 
Import libpakfire

libpakfire is a C implementation of some functionality
of pakfire. It is supposed to make code cleaner and avoid
too much wrapping in python. It is also intended to make
the code faster where ever performance is critical.

This patch adds a dependency to libarchive which is used
to read and write packages.

This implementation is not fully finished and possibly
rough around the edges. It has to be integrated into
the existing Python code and redundant code will have to
be dropped.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoAutomatically initialize any locally configured repositories
Michael Tremer [Mon, 12 Dec 2016 23:23:19 +0000 (00:23 +0100)] 
Automatically initialize any locally configured repositories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoPakfireContext: Add shortcut to repos
Michael Tremer [Sun, 11 Dec 2016 22:29:02 +0000 (23:29 +0100)] 
PakfireContext: Add shortcut to repos

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoRemove outdated TODO list
Michael Tremer [Sun, 11 Dec 2016 22:28:28 +0000 (23:28 +0100)] 
Remove outdated TODO list

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Add option for client code to skip mirrors
Michael Tremer [Sun, 11 Dec 2016 22:13:19 +0000 (23:13 +0100)] 
http: Add option for client code to skip mirrors

In case any higher-level code is not satisfied with
a download (checksum doesn't match, data too old),
it can decide to skip the current mirror and the next
best one is chosen.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Download to a temporary file
Michael Tremer [Sun, 11 Dec 2016 22:04:26 +0000 (23:04 +0100)] 
http: Download to a temporary file

This patch makes the HTTP client download data
into memory first and writes it to a temporary
file after 10M of data was downloaded.

This makes downloads faster and reduces IO load
but does not give us any limitation in case bigger
files are downloaded.

We get rid of some file locking which is always
difficult to entertain.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMove remove() to PakfireContext
Michael Tremer [Wed, 7 Dec 2016 22:13:47 +0000 (23:13 +0100)] 
Move remove() to PakfireContext

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMove downgrade() to PakfireContext
Michael Tremer [Wed, 7 Dec 2016 22:12:03 +0000 (23:12 +0100)] 
Move downgrade() to PakfireContext

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMove update() to PakfireContext
Michael Tremer [Wed, 7 Dec 2016 22:10:44 +0000 (23:10 +0100)] 
Move update() to PakfireContext

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMove reinstall() to PakfireContext
Michael Tremer [Wed, 7 Dec 2016 22:07:23 +0000 (23:07 +0100)] 
Move reinstall() to PakfireContext

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMove install() to PakfireContext
Michael Tremer [Wed, 7 Dec 2016 22:02:39 +0000 (23:02 +0100)] 
Move install() to PakfireContext

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agobase: Remove unused builder attribute
Michael Tremer [Wed, 7 Dec 2016 21:57:57 +0000 (22:57 +0100)] 
base: Remove unused builder attribute

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agobase: Drop unnecessary repo_list
Michael Tremer [Wed, 7 Dec 2016 21:56:13 +0000 (22:56 +0100)] 
base: Drop unnecessary repo_list

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMove provides() to PakfireContext
Michael Tremer [Wed, 7 Dec 2016 21:51:45 +0000 (22:51 +0100)] 
Move provides() to PakfireContext

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoDrop groulist command
Michael Tremer [Wed, 7 Dec 2016 21:49:44 +0000 (22:49 +0100)] 
Drop groulist command

This does not have much use and is therefore
not supported any longer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoDrop groupinstall command
Michael Tremer [Wed, 7 Dec 2016 21:48:01 +0000 (22:48 +0100)] 
Drop groupinstall command

This was just a shortcut and I have personally never
used that and there is probably only little use for it.

Hence this patch drops it.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMove check() to PakfireContext
Michael Tremer [Wed, 7 Dec 2016 21:46:37 +0000 (22:46 +0100)] 
Move check() to PakfireContext

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoMove search() to PakfireContext
Michael Tremer [Wed, 7 Dec 2016 21:44:03 +0000 (22:44 +0100)] 
Move search() to PakfireContext

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agobase: Add PakfireContext
Michael Tremer [Wed, 7 Dec 2016 21:36:37 +0000 (22:36 +0100)] 
base: Add PakfireContext

To make initializing Pakfire easier, this patch introduces
PakfireContext. So writing code like

  with Pakfire() as p:
      p.some_action()

will automatically take care of initializing Pakfire and
cleaning up afterwards.

Actions that do not require initialization will remain
in Pakfire so that they can be accessed as

  p = Pakfire()
  p.some_other_action()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoui: Format bytes with proper whitespace and decimal points
Michael Tremer [Wed, 7 Dec 2016 21:11:16 +0000 (22:11 +0100)] 
ui: Format bytes with proper whitespace and decimal points

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Reset only when necessary
Michael Tremer [Wed, 7 Dec 2016 20:58:43 +0000 (21:58 +0100)] 
http: Reset only when necessary

This is when an error occoured and it will also
remove any partially downloaded content.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocli: Fix dist command
Michael Tremer [Wed, 7 Dec 2016 20:48:21 +0000 (21:48 +0100)] 
cli: Fix dist command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agopackages: Replace old downloader code with new one
Michael Tremer [Wed, 7 Dec 2016 20:42:25 +0000 (21:42 +0100)] 
packages: Replace old downloader code with new one

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Truncate the downloaded file instead re-opening it
Michael Tremer [Wed, 7 Dec 2016 20:27:37 +0000 (21:27 +0100)] 
http: Truncate the downloaded file instead re-opening it

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoprogressbar: Only reset when progress is larger than zero
Michael Tremer [Wed, 7 Dec 2016 20:23:14 +0000 (21:23 +0100)] 
progressbar: Only reset when progress is larger than zero

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Reset the progressbar when download restarts
Michael Tremer [Wed, 7 Dec 2016 20:21:44 +0000 (21:21 +0100)] 
http: Reset the progressbar when download restarts

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Only initialize the progress bar once
Michael Tremer [Wed, 7 Dec 2016 20:11:34 +0000 (21:11 +0100)] 
http: Only initialize the progress bar once

When a request fails and we move to the next mirror
we do not want to show an other progressbar.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Catch all download errors and move on to the next mirror
Michael Tremer [Wed, 7 Dec 2016 20:10:44 +0000 (21:10 +0100)] 
http: Catch all download errors and move on to the next mirror

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Use error widget to show any download errors
Michael Tremer [Wed, 7 Dec 2016 20:08:28 +0000 (21:08 +0100)] 
http: Use error widget to show any download errors

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoprogressbar: Add widget to show any errors
Michael Tremer [Wed, 7 Dec 2016 20:07:46 +0000 (21:07 +0100)] 
progressbar: Add widget to show any errors

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Make filename argument optional
Michael Tremer [Wed, 7 Dec 2016 00:19:51 +0000 (01:19 +0100)] 
http: Make filename argument optional

Use the basename of the URL if omitted

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Pick mirror when downloading
Michael Tremer [Wed, 7 Dec 2016 00:14:54 +0000 (01:14 +0100)] 
http: Pick mirror when downloading

This avoids some unnecessary work when mirrors are added
(because mirror lists can be large) and unnecessary log
messages.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Exclusively lock download files
Michael Tremer [Tue, 6 Dec 2016 23:57:29 +0000 (00:57 +0100)] 
http: Exclusively lock download files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Use buffer size value from constants
Michael Tremer [Tue, 6 Dec 2016 23:51:09 +0000 (00:51 +0100)] 
http: Use buffer size value from constants

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconstants: Remove unused setting
Michael Tremer [Tue, 6 Dec 2016 23:41:53 +0000 (00:41 +0100)] 
constants: Remove unused setting

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoUse new HTTP client to make source packages
Michael Tremer [Tue, 6 Dec 2016 23:41:16 +0000 (00:41 +0100)] 
Use new HTTP client to make source packages

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Add support for mirrors
Michael Tremer [Tue, 6 Dec 2016 23:38:55 +0000 (00:38 +0100)] 
http: Add support for mirrors

This patch add support for mirrors to the downloader. If a list
of mirrors is given, it will try to retrieve files from a mirror
and fall back to the next one on the list in case the request
was not successful.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Actually write downloaded files to the filesystem
Michael Tremer [Sun, 4 Dec 2016 22:56:51 +0000 (23:56 +0100)] 
http: Actually write downloaded files to the filesystem

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agosystem: Add host distro
Michael Tremer [Sat, 3 Dec 2016 19:16:17 +0000 (20:16 +0100)] 
system: Add host distro

The system module loads details about the host's distribution
which will be used by Pakfire if nothing else is configured.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agobase: Move architecture to Pakfire class
Michael Tremer [Sat, 3 Dec 2016 18:10:14 +0000 (19:10 +0100)] 
base: Move architecture to Pakfire class

This used to be located in Distribution but is actually
not that closely tied with that.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoarch: Rename arch variable to name
Michael Tremer [Sat, 3 Dec 2016 18:00:49 +0000 (19:00 +0100)] 
arch: Rename arch variable to name

Both don't sound right, but it makes more sense to use
arch.name than arch.arch.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agosystem: Move architecture-dependent things into an own module
Michael Tremer [Sat, 3 Dec 2016 17:36:44 +0000 (18:36 +0100)] 
system: Move architecture-dependent things into an own module

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconfig: Remove unnecessary import of system module
Michael Tremer [Sat, 3 Dec 2016 17:33:13 +0000 (18:33 +0100)] 
config: Remove unnecessary import of system module

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agobase: Drop unused function check_host_arch()
Michael Tremer [Sat, 3 Dec 2016 17:22:41 +0000 (18:22 +0100)] 
base: Drop unused function check_host_arch()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years ago.gitignore: Also ignore vim read-only swap files
Michael Tremer [Sat, 3 Dec 2016 16:45:47 +0000 (17:45 +0100)] 
.gitignore: Also ignore vim read-only swap files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoRename "clean all" to clean
Michael Tremer [Sat, 3 Dec 2016 16:23:14 +0000 (17:23 +0100)] 
Rename "clean all" to clean

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocli: Rename distro-sync to sync
Michael Tremer [Sat, 3 Dec 2016 16:16:22 +0000 (17:16 +0100)] 
cli: Rename distro-sync to sync

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocli: Use new Pakfire context mechanism
Michael Tremer [Sat, 3 Dec 2016 16:14:34 +0000 (17:14 +0100)] 
cli: Use new Pakfire context mechanism

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agobase: Turn Pakfire initialization into a context
Michael Tremer [Sat, 3 Dec 2016 16:13:25 +0000 (17:13 +0100)] 
base: Turn Pakfire initialization into a context

This makes code smaller and easier to read and users
of the Pakfire class do not have to take care of any
initialization and cleanup.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocli: Convert pakfire to new format
Michael Tremer [Sat, 3 Dec 2016 16:12:07 +0000 (17:12 +0100)] 
cli: Convert pakfire to new format

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agobase: Remove unused PakfireClient class
Michael Tremer [Sat, 3 Dec 2016 14:16:19 +0000 (15:16 +0100)] 
base: Remove unused PakfireClient class

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agobuilder: Remove unused kernel_version
Michael Tremer [Sat, 3 Dec 2016 14:15:15 +0000 (15:15 +0100)] 
builder: Remove unused kernel_version

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agobase: No need to reset the logger after Pakfire is deleted
Michael Tremer [Sat, 3 Dec 2016 14:13:04 +0000 (15:13 +0100)] 
base: No need to reset the logger after Pakfire is deleted

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocli: Convert pakfire-builder to new format
Michael Tremer [Sat, 3 Dec 2016 14:10:46 +0000 (15:10 +0100)] 
cli: Convert pakfire-builder to new format

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconfig: Drop old Config class with was replaced
Michael Tremer [Sat, 3 Dec 2016 14:03:36 +0000 (15:03 +0100)] 
config: Drop old Config class with was replaced

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconfig: Add get_repos() to get all repository definitions
Michael Tremer [Sat, 3 Dec 2016 14:01:59 +0000 (15:01 +0100)] 
config: Add get_repos() to get all repository definitions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconfig: Allow fetching an entire section with get()
Michael Tremer [Sat, 3 Dec 2016 14:01:27 +0000 (15:01 +0100)] 
config: Allow fetching an entire section with get()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconfig: Drop unused ConfigDaemon class
Michael Tremer [Sat, 3 Dec 2016 13:44:13 +0000 (14:44 +0100)] 
config: Drop unused ConfigDaemon class

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconfig: Use correct function to read from file
Michael Tremer [Sat, 3 Dec 2016 10:48:33 +0000 (11:48 +0100)] 
config: Use correct function to read from file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconfig: Add function to read configuration from string
Michael Tremer [Sat, 3 Dec 2016 10:45:27 +0000 (11:45 +0100)] 
config: Add function to read configuration from string

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoDrop unused ConfigClient class
Michael Tremer [Sat, 3 Dec 2016 10:42:08 +0000 (11:42 +0100)] 
Drop unused ConfigClient class

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Move support for decoding strings into HTTP client
Michael Tremer [Fri, 2 Dec 2016 13:06:15 +0000 (14:06 +0100)] 
http: Move support for decoding strings into HTTP client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoDrop old transport module which is replaced by the hub module
Michael Tremer [Fri, 2 Dec 2016 12:55:43 +0000 (13:55 +0100)] 
Drop old transport module which is replaced by the hub module

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agodaemon: Adopt new internal modules to implement the daemon
Michael Tremer [Fri, 2 Dec 2016 12:54:42 +0000 (13:54 +0100)] 
daemon: Adopt new internal modules to implement the daemon

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Allow setting a timeout for a request
Michael Tremer [Fri, 2 Dec 2016 12:54:16 +0000 (13:54 +0100)] 
http: Allow setting a timeout for a request

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoclient: Actually refresh data when watching builds/jobs
Michael Tremer [Fri, 2 Dec 2016 10:45:14 +0000 (11:45 +0100)] 
client: Actually refresh data when watching builds/jobs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoclient: Allow watching jobs
Michael Tremer [Fri, 2 Dec 2016 10:38:11 +0000 (11:38 +0100)] 
client: Allow watching jobs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoclient: Add CLI to watch a build
Michael Tremer [Fri, 2 Dec 2016 00:37:48 +0000 (01:37 +0100)] 
client: Add CLI to watch a build

This will follow a build and print live status on the console

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocli: Cleanup function hell for creating the parser
Michael Tremer [Fri, 2 Dec 2016 00:22:36 +0000 (01:22 +0100)] 
cli: Cleanup function hell for creating the parser

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoclient: Remove any commands that don't work any more
Michael Tremer [Fri, 2 Dec 2016 00:04:44 +0000 (01:04 +0100)] 
client: Remove any commands that don't work any more

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoclient: Rewrite connection check
Michael Tremer [Thu, 1 Dec 2016 23:59:36 +0000 (00:59 +0100)] 
client: Rewrite connection check

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoclient: Use new client in CLI
Michael Tremer [Thu, 1 Dec 2016 23:49:30 +0000 (00:49 +0100)] 
client: Use new client in CLI

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocli: Rewrite function handling of handlers
Michael Tremer [Thu, 1 Dec 2016 23:48:16 +0000 (00:48 +0100)] 
cli: Rewrite function handling of handlers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoclient: Rewrite of the client that interacts with the hub
Michael Tremer [Thu, 1 Dec 2016 23:46:38 +0000 (00:46 +0100)] 
client: Rewrite of the client that interacts with the hub

This is a rewrite of the client that interacts with the Pakfire Hub
to upload scratch builds and retrieve the status of builds and jobs.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Automatically configure client
Michael Tremer [Thu, 1 Dec 2016 18:52:37 +0000 (19:52 +0100)] 
http: Automatically configure client

This patch makes the HTTP client read some basic
settings from the configuration file.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohub: Decode returned build IDs to string
Michael Tremer [Thu, 1 Dec 2016 18:51:35 +0000 (19:51 +0100)] 
hub: Decode returned build IDs to string

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years ago.gitignore: Ignore VIM swap files
Michael Tremer [Thu, 1 Dec 2016 17:49:18 +0000 (18:49 +0100)] 
.gitignore: Ignore VIM swap files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agodaemon: Use the new HTTP client to download source packages
Michael Tremer [Thu, 1 Dec 2016 17:48:38 +0000 (18:48 +0100)] 
daemon: Use the new HTTP client to download source packages

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoLogging is now initialised on a module level
Michael Tremer [Thu, 1 Dec 2016 16:26:57 +0000 (17:26 +0100)] 
Logging is now initialised on a module level

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohub: Remove debugging line
Michael Tremer [Thu, 1 Dec 2016 15:51:22 +0000 (16:51 +0100)] 
hub: Remove debugging line

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agocli: Fix Python 3 syntax
Michael Tremer [Thu, 1 Dec 2016 15:50:53 +0000 (16:50 +0100)] 
cli: Fix Python 3 syntax

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconfig: Remove old logging options and add a new debugging option
Michael Tremer [Thu, 1 Dec 2016 15:46:38 +0000 (16:46 +0100)] 
config: Remove old logging options and add a new debugging option

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoconfig: Write a new configuration parser
Michael Tremer [Thu, 1 Dec 2016 15:45:28 +0000 (16:45 +0100)] 
config: Write a new configuration parser

This is always initialised when the new module is loaded
and things like logging use it to set themselves up.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoClean up import of version number of the module
Michael Tremer [Thu, 1 Dec 2016 13:55:26 +0000 (14:55 +0100)] 
Clean up import of version number of the module

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoRewrite module logging
Michael Tremer [Thu, 1 Dec 2016 13:51:56 +0000 (14:51 +0100)] 
Rewrite module logging

The module now starts logging as soon as it is initialized
which makes the base classes slinker.

Logging is also only supported to syslog and not to a file
any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoui: Import CLI abstraction
Michael Tremer [Wed, 30 Nov 2016 18:48:46 +0000 (19:48 +0100)] 
ui: Import CLI abstraction

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agoui.progressbar: Rename update_increment method to increment
Michael Tremer [Wed, 30 Nov 2016 17:38:54 +0000 (18:38 +0100)] 
ui.progressbar: Rename update_increment method to increment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Don't retry on Internet Server Error
Michael Tremer [Wed, 30 Nov 2016 17:37:53 +0000 (18:37 +0100)] 
http: Don't retry on Internet Server Error

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohub: Import a new Pakfire Hub client implementation
Michael Tremer [Wed, 30 Nov 2016 17:36:24 +0000 (18:36 +0100)] 
hub: Import a new Pakfire Hub client implementation

This is a refactored implementation of the hub client. It
is based on the new HTTP client.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
8 years agohttp: Convert data argument according to method
Michael Tremer [Wed, 30 Nov 2016 17:09:48 +0000 (18:09 +0100)] 
http: Convert data argument according to method

data is a dict() with various arguments that are either
posted in the body of the request (POST) or added to the
URL (GET).

For a simple way to send requests, the HTTP client takes
care of building a correct request.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>