fetch2: add .lz compression support

See http://www.nongnu.org/lzip/lzip.html for details on the compression
format.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
utils.py: don't use len() for truth value testing.

Signed-off-by: Oscar Utbult <oscar@oscr.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
prserv: don't wait until exit to sync

In the commit 'prserv: Ensure data is committed', the PR server moved to
only committing transactions to the database when the PR server is
stopped.  This improves performance, but it means that if the machine
running the PR server loses power unexpectedly or if the PR server
process gets SIGKILL, the uncommitted package revision data is lost.

To fix this issue, sync the database periodically, once per 30 seconds
by default, if it has been marked as dirty.  To be safe, continue to
sync the database at exit regardless of its status.

Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
buildinfohelper: Make sure we use the orm defined value for loglevel

We need to consistently use LogMessage.INFO/WARNING/ERROR to make sure toaster knows
how to categories these rather than passing in the "raw" loglevel value
which in best case comes from python logging but worst case any value.

[YOCTO 6885]

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
toasterbld: update checksettings command

We update the checksettings command to allow for upstream
git url detection at runtime by looking up a named remote
of a local repository.

Also various small fixes in check settings.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toastergui: Fix help text in packages 'Reverse runtime dependencies' tab

For those packages renamed at packaging time, the help text
in the 'Reverse runtime dependencies' tab was missing the
original package name.

[YOCTO #6327]

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
toastergui: Amend show rows options

In the templates basetable_bottom.html and basetable_top.html
remove the '2' and '5' options from the 'show rows' menu, and
add the '150' option as per design specs.

Alex edited conflicts.

Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toastergui: Add missing task descriptions

The "Prebuilt task could be based on" table we provide in the task
details page for prebuilt tasks is missing the task descriptions.
This patch adds them.

[YOCTO #6328]

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toastergui: Fix reverse dependencies tab for packages included

Make sure the reverse dependencies tab for included packages
shows a notification when the number of reverse dependencies
is 0, instead of an empty table.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
toastergui: Fix blue highlight for failed tasks

Change the background colour of table rows with the .error
class from white to transparent, to make sure the blue
highlight animation works when you click on the order
number in the task details page.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
toastergui: Remove sorting from "Size over total" column

The sorting in this column is tied to the sorting by
"Size". If we make both columns sortable, when you sort
by one of them it also sorts the other, and the table looks
as if you have sorted by 2 columns at the same time.

This was fixed in YOCTO #6061, but turned up again.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
toastergui: Remove extra <div> from build dashboard

For builds that generate no rootfs files, an extra <div>
was being added between the build status and the build
summary section. This commit removes the extra <div> and the
white space it created.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
toastergui: Tiny change to help text

Modify the help text we show for the "Task covered by"
information to indicate that a task can be covered by
more than one task.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
toastergui: Show failed tasks in the build dashboard

The build dashboard is supposed to show failed
tasks (if any) in the "Tasks" section.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toasterui: save build id in build request on first chance

We change the saving of the build id to the build request as
soon is the build is created, as to allow for a consistent
display of build data while build is in progress.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toastergui: update breadcrumb in analysis pages

If we are in managed mode, and we inspect a build that comes
from a project, we modify the breadcrumb as to display
the project from where the build originated.

[YOCTO #6776]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: we add static copies of AngularJS and related libraries

We add the Angular JS library, release 1.2.23
https://angularjs.org/

We add the Bootstrap directives for AngularUI, release 0.11.0
http://angular-ui.github.io/bootstrap/

The license ued for all libraries is MIT

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: fix layer source update code

We fix problems in the layer source update code related to
non-null field restrictions.

We add missing layer dependency update.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: fix Project page in order to trigger builds

This patch rewrites the Project page and the additional
infrastructure in order to fix a bug that makes triggering
builds through UI impossible, and to introduce data feeds
for suggestions for the user.
toastergui: project edit capabilities in all layers page

This patch definitivates the all layers page, providing interactivity
for adding and removing layers inside the project from this page.

[YOCTO #6590]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>