]>
git.ipfire.org Git - people/ms/pakfire.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Michael Tremer [Wed, 30 Nov 2016 16:50:24 +0000 (17:50 +0100)]
http: Add missing import of time module
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 30 Nov 2016 16:38:52 +0000 (17:38 +0100)]
ui.progressbar: Support python context
This patch allows us to use the progressbar inside a with
statement which makes code shorter and sweeter and we need
to take care less about the progressbar implementation where
ever we are using it.
e.g.:
p = ProgressBar()
...
with p:
do something
p.update(i)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 30 Nov 2016 10:43:23 +0000 (11:43 +0100)]
http: Allow decoding of received content
This allows to let the module decode JSON content right
away so that this doesn't have to be handled in the module
that is using the HTTP client.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 30 Nov 2016 10:17:04 +0000 (11:17 +0100)]
http: Support HTTP Basic authentication
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 30 Nov 2016 10:16:35 +0000 (11:16 +0100)]
http: Fix wrong baseurl variable assignment
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 29 Nov 2016 16:20:17 +0000 (17:20 +0100)]
Remove some lines of dead code
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 29 Nov 2016 16:17:37 +0000 (17:17 +0100)]
Add a basic HTTP client
In Python3, urlgrabber is no longer available.
This patch adds a component which will replace urlgrabber
by an own custom implementation that only relies on
Python3-internal modules (i.e. urllib).
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 29 Nov 2016 16:13:53 +0000 (17:13 +0100)]
Create UI submodule
This patch moves things like the progressbar module
and functions that format bytes into a human-readable format
into a seperate ui module.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Nov 2016 21:38:30 +0000 (22:38 +0100)]
Migrate to Python 3
This will totally not run since some dependencies are missing
(e.g. urlgrabber, gpgme).
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Arne Fitzenreiter [Thu, 24 Nov 2016 20:41:23 +0000 (21:41 +0100)]
Performance check: Count iterations as unsigned long
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Michael Tremer [Wed, 23 Nov 2016 22:36:52 +0000 (23:36 +0100)]
Replace bogomips by fibonnacci benchmark
BogoMIPS cannot be used as an easy way to determine how fast
a system is any more since there is only dummy values available
in newer kernels.
We use a simple fibonnacci function now which is executed for
a set amount of time (defaults to one second) and count the
number of iterations performed. This is then multiplied by the
number of CPU cores.
Fibonnacci is a very simple test that relies on the integer
unit (no FPU involved) and is not depending on anything else.
This will also allow us to quantitatively determine the
difference in speed between processors.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 22 Nov 2016 00:13:40 +0000 (01:13 +0100)]
Revert "Enable aarch64 systems to build armv7hl and armv5tel as well"
This reverts commit
3a38a9f6db09b7b54b4f3a7dad2187b7981dcb66 .
Not all kernels support executing this, even if the hardware supports
it. We will need to come up with a way how to determine this at runtime.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Arne Fitzenreiter [Mon, 21 Nov 2016 19:50:05 +0000 (20:50 +0100)]
Enable aarch64 systems to build armv7hl and armv5tel as well
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Arne Fitzenreiter [Mon, 21 Nov 2016 19:28:03 +0000 (20:28 +0100)]
Explicetly set libsolv disttype
This will define what is assumed to be "noarch"
and on Debian/Ubuntu-based systems this will default
to something else.
If MULTI_SEMANTICS is enabled in libsolv, this will
allow us to use "noarch" as independent architecture.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Michael Tremer [Wed, 26 Oct 2016 22:42:57 +0000 (23:42 +0100)]
Remove shipped version of debugedit
We are now shipping this as a seperate package so that
we can update it easier.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 16 Oct 2016 19:52:38 +0000 (15:52 -0400)]
Bump version to 0.9.27
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Stefan Schantl [Sun, 16 Oct 2016 19:58:11 +0000 (15:58 -0400)]
perl.macro: Add "perl_version"
This variable is used to store the current used perl version, which
will be used in various external perl modules to track API dependencies.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 3 May 2015 15:29:54 +0000 (11:29 -0400)]
Explicitely add hardening to the LDFLAGS
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 16 Oct 2016 18:21:20 +0000 (14:21 -0400)]
Automatically update autotools for aarch64 compatibility
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 16 Oct 2016 18:20:24 +0000 (14:20 -0400)]
quality-agent: Remove any absolute path arguments from env interpreter
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 29 Apr 2016 12:54:21 +0000 (08:54 -0400)]
INSTALL: Update build instructions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 29 Apr 2016 12:53:25 +0000 (08:53 -0400)]
INSTALL: The OBS service is not maintained any more
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 29 Apr 2016 12:31:00 +0000 (08:31 -0400)]
CFLAGS: Explicitely add RELRO and BIND_NOW options
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 18 Nov 2015 11:11:23 +0000 (11:11 +0000)]
Update translations
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 10 Sep 2015 17:00:09 +0000 (18:00 +0100)]
Fix execution of scriptlets in a dirty environment
The environment will be populated with a basic set of
variables and cleared from the rest.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 3 May 2015 15:32:17 +0000 (11:32 -0400)]
Merge branch 'master' of git://git.ipfire.org/pakfire
Michael Tremer [Sun, 3 May 2015 15:29:54 +0000 (11:29 -0400)]
Explicitely add hardening flags
Add -z relro to the linker command line and -D_FORTIFY_SOURCE=2
for the preprocessor.
Michael Tremer [Sun, 3 May 2015 15:27:26 +0000 (11:27 -0400)]
Always set the 64-bit mark as it is only applied when needed
Michael Tremer [Mon, 20 Apr 2015 21:37:58 +0000 (23:37 +0200)]
Perform less parallelism
Sometimes we have trouble with latest versions of g++
that requires too much RAM so that the OOM killer kills
all the compiler processes. Hence we will start less processes
at once for now.
This may to be increased even more in the future as it
seems that g++ requires much more memory with every release.
Michael Tremer [Tue, 20 Jan 2015 12:31:30 +0000 (07:31 -0500)]
Add support for aarch64
Michael Tremer [Mon, 22 Sep 2014 11:26:32 +0000 (13:26 +0200)]
Merge branch 'master' of ssh://git.ipfire.org/pub/git/pakfire
Michael Tremer [Tue, 16 Sep 2014 13:49:25 +0000 (15:49 +0200)]
CFLAGS: Enable more hardening
-fstack-protector-strong is available since GCC 4.9
-D_FORTIFY_SOURCE=2 is automatically enabled in IPFire since
GCC 4.9 and when optimization is enabled (e.g. -O2).
Michael Tremer [Sat, 26 Oct 2013 21:20:10 +0000 (23:20 +0200)]
Add scriptlets to the database and actually execute them.
Michael Tremer [Sat, 26 Oct 2013 19:56:16 +0000 (21:56 +0200)]
Update translations.
Michael Tremer [Sat, 26 Oct 2013 19:47:51 +0000 (21:47 +0200)]
Major rewrite how transactions are built.
The result from the solver is now converted into Steps
which are used to present the transaction to the user
and search for packages already in the cache, etc.
After that, the actions are created.
The Action class has been much simplified and made
less complex.
Michael Tremer [Sat, 28 Sep 2013 15:28:52 +0000 (17:28 +0200)]
Update translations.
Michael Tremer [Sat, 28 Sep 2013 15:23:00 +0000 (17:23 +0200)]
Replace python-progressbar by own progressbar module.
Michael Tremer [Sat, 28 Sep 2013 11:45:02 +0000 (13:45 +0200)]
Fix updating UsrMove packages.
See #10424 for more information.
Michael Tremer [Wed, 25 Sep 2013 00:34:12 +0000 (01:34 +0100)]
repository: Add compat "whatprovides" method.
Fixes #10421.
Michael Tremer [Tue, 24 Sep 2013 23:51:36 +0000 (00:51 +0100)]
Fix database conversion.
The new dependencies table was not correctly generated
from older databases, which is fixed in this patch.
Michael Tremer [Sun, 8 Sep 2013 12:15:56 +0000 (14:15 +0200)]
Bump version to 0.9.26.
Michael Tremer [Sat, 7 Sep 2013 10:52:43 +0000 (12:52 +0200)]
Merge branch 'master' of ssh://git.ipfire.org/pub/git/oddments/pakfire
Michael Tremer [Sat, 7 Sep 2013 10:09:04 +0000 (12:09 +0200)]
Install python modules in arch-dependent directories.
Michael Tremer [Thu, 8 Aug 2013 23:07:55 +0000 (01:07 +0200)]
_pakfire: Remove compiler warning.
There is no return value required here.
Michael Tremer [Thu, 8 Aug 2013 23:03:41 +0000 (01:03 +0200)]
Merge branch 'master' of ssh://git.ipfire.org/pub/git/pakfire
Michael Tremer [Thu, 8 Aug 2013 23:03:22 +0000 (01:03 +0200)]
Add simple testsuite.
Michael Tremer [Thu, 8 Aug 2013 23:00:24 +0000 (01:00 +0200)]
Load _pakfire module from right path.
Michael Tremer [Sun, 4 Aug 2013 17:56:07 +0000 (19:56 +0200)]
Merge branch 'master' of ssh://git.ipfire.org/pub/git/oddments/pakfire
Michael Tremer [Sun, 4 Aug 2013 17:55:37 +0000 (19:55 +0200)]
Remove pakfire makefile from package.
Michael Tremer [Sun, 4 Aug 2013 17:39:08 +0000 (19:39 +0200)]
Merge branch 'master' of ssh://git.ipfire.org/pub/git/pakfire
Michael Tremer [Sun, 4 Aug 2013 17:38:46 +0000 (19:38 +0200)]
m4: Fix wrongly exported file.
Michael Tremer [Sun, 4 Aug 2013 17:34:40 +0000 (19:34 +0200)]
Update translations.
Michael Tremer [Sun, 4 Aug 2013 17:33:47 +0000 (19:33 +0200)]
transifex has moved to transifex.com.
Michael Tremer [Sun, 4 Aug 2013 17:21:04 +0000 (19:21 +0200)]
Use autotools.
Michael Tremer [Wed, 31 Jul 2013 00:15:38 +0000 (02:15 +0200)]
Cleanup database and add indexes.
Trying to speed up the database of installed packages, by adding
indexes and moving big data from the packages table into an extra
dependencies table.
Michael Tremer [Sun, 28 Jul 2013 12:17:25 +0000 (14:17 +0200)]
Show console output from scripts on command line.
Michael Tremer [Sun, 28 Jul 2013 11:21:26 +0000 (13:21 +0200)]
Merge branch 'master' of ssh://git.ipfire.org/pub/git/pakfire
Michael Tremer [Sun, 28 Jul 2013 11:20:55 +0000 (13:20 +0200)]
Implement distro-sync.
Stefan Schantl [Mon, 8 Jul 2013 18:33:57 +0000 (20:33 +0200)]
pakfire-daemon.service: Require network-online and remote-fs targets.
The unit file now requires an configured and brought up network connection and
wants as a soft-dependency that all remote filesystems are mounted.
Michael Tremer [Thu, 4 Jul 2013 16:51:51 +0000 (16:51 +0000)]
daemon: Fix buildroot check return code.
Michael Tremer [Thu, 4 Jul 2013 16:51:21 +0000 (18:51 +0200)]
builder: Fix catching errors if buildroot is RO.
Michael Tremer [Thu, 27 Jun 2013 18:36:37 +0000 (18:36 +0000)]
daemon: Improve killing the keepalive process.
Michael Tremer [Thu, 27 Jun 2013 18:34:46 +0000 (18:34 +0000)]
daemon: Check if build root is read-write mounted.
If there has been a connection error, iSCSI LUNs
remount themselves as read-only to prevent data-loss.
To stop starting new build jobs, we now have a check
and even try to remount the build root if we can.
Michael Tremer [Mon, 24 Jun 2013 21:34:55 +0000 (21:34 +0000)]
Fix typo in exception name.
Michael Tremer [Mon, 24 Jun 2013 21:34:45 +0000 (21:34 +0000)]
Fix installing unit files.
Michael Tremer [Mon, 24 Jun 2013 21:25:13 +0000 (21:25 +0000)]
Merge branch 'master' of ssh://git.ipfire.org/pub/git/pakfire
Michael Tremer [Mon, 24 Jun 2013 21:24:49 +0000 (21:24 +0000)]
Warn if the host key is not in the key store.
Stefan Schantl [Sun, 23 Jun 2013 14:42:19 +0000 (16:42 +0200)]
Add systemd service file for pakfire-daemon.
Michael Tremer [Sun, 23 Jun 2013 16:03:58 +0000 (18:03 +0200)]
transport: Handle 503 in the same way as 502.
Michael Tremer [Thu, 13 Jun 2013 17:18:23 +0000 (19:18 +0200)]
Better formatting for progress bars.
Michael Tremer [Thu, 13 Jun 2013 16:51:10 +0000 (18:51 +0200)]
progressbar: Remove overwriting the Bar class.
Michael Tremer [Wed, 8 May 2013 20:50:11 +0000 (20:50 +0000)]
buildroot: Only copy dev nodes if they really exist.
Michael Tremer [Wed, 8 May 2013 20:31:27 +0000 (20:31 +0000)]
system: Fix reading CPU info.
Michael Tremer [Sun, 7 Apr 2013 12:15:01 +0000 (14:15 +0200)]
Fix typo.