Merge lp:~mblayman/entertainer/packaging-fixes into lp:entertainer
Proposed by
Matt Layman
Status: | Merged | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Merge reported by: | Paul Hummer | ||||||||||||||||
Merged at revision: | not available | ||||||||||||||||
Proposed branch: | lp:~mblayman/entertainer/packaging-fixes | ||||||||||||||||
Merge into: | lp:entertainer | ||||||||||||||||
To merge this branch: | bzr merge lp:~mblayman/entertainer/packaging-fixes | ||||||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Samuel Buffet (community) | Approve | ||
Joshua Scotton | Approve | ||
Paul Hummer | Pending | ||
Review via email:
|
To post a comment you must log in.
=== removed directory 'cfg/data' /utils/ configuration. py' utils/configura tion.py 2008-09-17 18:27:37 +0000 utils/configura tion.py 2008-10-25 13:12:21 +0000
=== modified file 'entertainerlib
--- entertainerlib/
+++ entertainerlib/
@@ -16,9 +16,11 @@
from entertainerlib. utils.theme import Theme
-SOURCE_CONFIG = os.path.abspath( dirname( __file_ _) + '/../../cfg' abspath( os.path. dirname( __file_ _) + '/../../cfg'), entertainer/ cfg"
- os.path.
- )
+SOURCE_CONFIG = {
+ 'branch' : os.path.
+ # Hardcoded path for a package install
+ 'package' : "/usr/share/
+ }
class Configuration( MessageHandler) : copytree( SOURCE_ CONFIG, config_dir) exists( SOURCE_ CONFIG[ 'branch' ]): copytree( SOURCE_ CONFIG[ 'branch' ], config_dir) exists( SOURCE_ CONFIG[ 'package' ]): copytree( SOURCE_ CONFIG[ 'package' ], config_dir)
"""
@@ -97,7 +99,15 @@
'''
config_dir = self.get_cfg_dir()
try:
- shutil.
+ # Copy configuration data from a dev branch if we can
+ if os.path.
+ shutil.
+ # Install configuration data from the hardcoded package path
+ elif os.path.
+ shutil.
+ else:
+ print "Couldn't find configuration data. Execution aborted."
+ sys.exit(1)
except OSError:
print "Couldn't copy configuration data to %s. Execution aborted." \
% config_dir
=== renamed directory 'cfg/data/icons' => 'icons' hicolor/ 16x16' hicolor/ 16x16/entertain er.png' 16x16/entertain er.png 1970-01-01 00:00:00 +0000 and icons/hicolor/ 16x16/entertain er.png 2008-10-25 13:12:22 +0000 differ icons/24x24' => 'icons/ hicolor/ 24x24' hicolor/ 48x48' hicolor/ 48x48/entertain er.png' 48x48/entertain er.png 1970-01-01 00:00:00 +0000 and icons/hicolor/ 48x48/entertain er.png 2008-10-25 13:12:21 +0000 differ icons/scalable' => 'icons/ hicolor/ scalable' hicolor/ scalable/ entertainer. svg' icons/scalable/ entertainer. svg 2008-06-06 22:54:48 +0000 scalable/ entertainer. svg 2008-10-25 13:12:22 +0000 version= "0.32" version= "0.46" docname= "entertainer_ icon.svg" docname= "entertainer. svg" output_ extension= "org.inkscape. output. svg.inkscape" export- filename= "/home/ matt/Desktop/ magicianhat. png" export- xdpi="11. 675675" export- ydpi="11. 675675" export- filename= "/home/ matt/repo/ config- package- fix/icons/ hicolor/ 48x48/entertain er.png" export- xdpi="23. 549999" export- ydpi="23. 549999" "display: inline" >
offset= "1"
id=" stop3308" /> linearGradient> perspective type="inkscape: persp3d"
=== added directory 'icons/hicolor'
=== added directory 'icons/
=== added file 'icons/
Binary files icons/hicolor/
=== renamed directory 'cfg/data/
=== added directory 'icons/
=== added file 'icons/
Binary files icons/hicolor/
=== renamed directory 'cfg/data/
=== modified file 'icons/
--- cfg/data/
+++ icons/hicolor/
@@ -15,11 +15,11 @@
sodipodi:
inkscape:
version="1.0"
- sodipodi:
+ sodipodi:
inkscape:
- inkscape:
- inkscape:
- inkscape:
+ inkscape:
+ inkscape:
+ inkscape:
style=
<defs
id="defs4">
@@ -75,13 +75,6 @@
</
- <inkscape:
- sodipodi:
- inkscape:vp_x="0 : 526.18109 : 1"
- inkscape:vp_y="0 : 1000 : 0"
- ...