fetch2/wget: Check downloaded file isn't zero size

I can't think of a reason we'd download zero sized files however there are
reasons zero length files can accidently make it onto source mirrors.

This check allows us to ignore the broken files and switch to another
mirror rather than fail with odd checksum failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
runqueue: Only attempt to print closest matching task if there is a match

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
toaster: update Simple UI references to avoid conflict

Since the Toaster GUI was cloned from the Simple UI, we need
to update the URL pattern names in Simple UI to
prevent conflict when determining the reverse URL path.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: update Task classification fields

This patch updates the task classification fields (outcome, etc)
as to

* Changes outcome names from SSTATE to CACHED and
from EXISTING to PREBUILT

* NoExec tasks now recorded as Not Executed / script type NA instead
of Executed / script type NOEXEC. Script type NOEXEC is deleted.

* SetScene tasks do not get order numbers

* New task method that returns a QuerySet for setscene tasks related
to this task: Task.get_related_setscene()

* New custom TaskManager that allows searching for setscene tasks
related to a certain task: Task.objects.related_setscene(task)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: add vim modelines for .py files

No-op patch that adds vim modelines for all .py files
intended to be user-edited.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: add jquery cookie plugin

We add the jquery cookie plugin to allow us to save
and read local client date in cookie.

jquery-cookie using version 1.4.0 under MIT licence.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: Toaster GUI Build and Dashboard pages fixes

THis is a large set of fixes for the generic table, Build and
Dashboard pages.

Among the fixes:
* the table remembers which columns to show across refreshes,
based on saving the settings in a cookie
* added column timespent for a build which is  a denormalization
of the completed_on - started_on information due to limits in
computing datetime differences in the SQL engine
* fixed formatting of the time differences
* various sorting header links fixed
* correct error and warning CSS classes applied to the
respective rows
* fixes multiple divide-by-zero error in displaying duration
estimations

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: Add initial tests

This adds the initial api tests for toaster, using Django's unittest modules.

Signed-off-by: Andreea Proca <andreea.b.proca@intel.com>
toaster: settings remove duplicate entry

The 'toastergui' application had duplicate entries,
so this patch removes the duplicate ones.

Based on an original patch from Ravi Chintakunta <ravi.chintakunta@timesys.com>.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: Base html fix to set the page title

Set title of the page if the context includes objectname.

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: Base table fixes for header text, sort icon and filter icon

- Display the table column header as a link only if it is sortable.
   Non-sortable column headers are displayed as plain text.

- Display the sort order by an up / down arrow icon next to the
   column header

- Add style for header in default.css

- Set tooltip for the active filter icon

- Pass the view name to the filter dialog

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: Added custom filter tags for use in templates.

- custom filter tag to return the css class based on
  the task execution status and execution outcome

- custom filters for active filter icon and tooltip text

- custom filter for displaying blank for None, zero, '0' and
  'Not Applicable'

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: Implementation of base build details page

This page is the standard base page for 'details' views. It is
based on 'basebuildpage.html' but does not include the build's
quick-link sidebar.

Signed-off-by: David Reyna <david.reyna@windriver.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: Implementation of recipe detail views

Add the new recipe detail page and update the view context accordingly.
Rename the recipe summary page to 'recipes.html' and add the respective
links to the recipe details page.

The views are based on specifications found in attachments to
	https://bugzilla.yoctoproject.org/show_bug.cgi?id=4299

[YOCTO #4299]

Signed-off-by: David Reyna <david.reyna@windriver.com>
toaster: All Tasks Feature with sorting and filtering

- Fixed the all tasks view and template  to match the UI design and use
the new basetable code.

- Added a method to views to add sort order icon to the view context.

- Default sort order when the page is loaded is displayed with the sort icon

- Filtering of columns

Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
toaster: Set .error styles for tables

Override the default styles of Twitter Bootstrap for table rows
with the .error class applied, and ensure that table cells and
anchor tags inherit the .error styles when their table row has
that class applied.

Signed-off-by: Belen Barros <belen.barros.pena@intel.com>
toaster: fix builds page CSS and functionality

This patch fixes a set of CSS and functionality problems
with the build list page:

* Fix Recent Builds text styles
* Added proper links from Failed Tasks entries.
* Always Search returns to the first page of results.
* Clear search button appears only if search is active.
* Search shows the number of object, proper no objects found
* Various smaller fixes.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
toaster: fix package data gathering

Under OE-Core, the name under which a package would
be installed in a target may have been different than the
name under it has been built or recorded in the dependencies
listings.

This patch addresses the way that Toaster records package
names, and adds the field of "installed_name" to save the
name under which a package have been installed in an image.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
usermanual: Updated CC License to version 3.0

Updated the Creative Commons License to the most current version,
version 3.0.  Also updated the Creative Commons mailing address.

Signed-off-by: Bill Traynor <wmat@alphatroop.com>
usermanual: Renamed manual dir to user-manual to be consistent.

Renaming the manual directory to user-manual in order to allow
for future additions of specific manual types, such as a
dev-manual.

Signed-off-by: Bill Traynor <wmat@alphatroop.com>