Bug 832345

Summary: [Branding]The files in images directory is not correct when create a brand
Product: [Community] Publican Reporter: zhaiyu <yzhai>
Component: publicanAssignee: Jeff Fearn <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: Ruediger Landmann <rlandman>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: mshao, r.landmann, rlandman
Target Milestone: 3.0Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Fixed In Version: 3.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-30 23:11:29 EDT Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description zhaiyu 2012-06-15 04:27:33 EDT
Description of problem:

When you create a brand with publican 3.0, the publican-brand directory contains /en-US/images subdirectory, which should include image files.But the image directory is empty.

Version-Release number of selected component (if applicable):

version 3.0

How reproducible:

Steps to Reproduce:

1.Open a terminal
2.Run the following command
  $publican create_brand --name=brand_name --lang=language_code
3.Change into the publican-brand directory and check /en-US/images subdirectory contains image_left.*, image_right.*, title_logo.*, note.*, important.*, warning.*, dot.*, dot2.*, stock-go-back.*, stock-go-forward.*, stock-go-up.*, stock-home.*, h1-bg.*, watermark_draft.
Actual results:

The images subdirectory doesn't contain any image files.

Expected results:

All the image files are correct.

Additional info:
Comment 1 Ruediger Landmann 2012-06-17 23:51:23 EDT
A newly-created brand file should not contain these images.

The images in a brand override the default images provided by the Publican "common" brand. If you do not create custom images for your brand, Publican  uses the default images when you build a document.
Comment 2 Jeff Fearn 2012-06-19 23:51:07 EDT
This is a bug. Publican should be copying the images in brand-template/images/ to the new brand.

Looks like brand-template isn't being installed properly and the copy isn't being caught when it fails.
Comment 3 Jeff Fearn 2012-06-23 00:34:04 EDT
The brand template files were not being copied during publican install and the copy was not giving an error message when it failed.

Fixed installer and add error message.

To ssh://git.fedorahosted.org/git/publican.git
   d60b0f1..762f306  master -> master
Comment 4 Ruediger Landmann 2012-06-29 01:21:06 EDT
Verified in 3.0.t197 -- brand is created with images directory already populated