~ubuntu-branches/ubuntu/trusty/uck/trusty

« back to all changes in this revision

Viewing changes to libraries/customization-profiles/localized_cd/customize

  • Committer: Package Import Robot
  • Author(s): Jackson Doak, Jackson Doak, Fabrizio Balliano
  • Date: 2013-11-19 17:11:00 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20131119171100-44xoixk33ni4fuoo
Tags: 2.4.7-0ubuntu1
[ Jackson Doak ]
* Update debian/copyright to dep5 format
* debian/control:
  - Bump standards-version to 3.9.5
  - Bump debhelper to 9
* debian/rules: rm .png file from usr/bin
* Fix typos in debian/changelog

[ Fabrizio Balliano ]
* New upstream release
* Add libfribidi-bin as a dependency. lp: #1217482 

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        apt-get --purge remove --assume-yes --force-yes "$@" || failure "apt-get remove $@ failed, error=$?"
41
41
}
42
42
 
43
 
function run_package_manager()
44
 
{
45
 
        echo "Starting package application..."
46
 
        
47
 
        PACKAGE_APP=`which adept`
48
 
        PACKAGE_APP_OPTIONS=(--caption "UCK Package Manager")
49
 
        if [ "$PACKAGE_APP" = "" ]; then
50
 
                PACKAGE_APP=`which adept_manager`
51
 
        fi
52
 
        if [ "$PACKAGE_APP" = "" ]; then
53
 
                PACKAGE_APP=`which kpackagekit`
54
 
        fi
55
 
        if [ "$PACKAGE_APP" = "" ]; then
56
 
                PACKAGE_APP=`which synaptic`
57
 
                PACKAGE_APP_OPTIONS=(-t "UCK Package manager")
58
 
        fi
59
 
        
60
 
        if [ "$PACKAGE_APP" = "" ]; then
61
 
                dialog_msgbox "Failure" "Unable to find any package manager application"
62
 
        else
63
 
                eval `dbus-launch --sh-syntax --exit-with-session 2>/dev/null`
64
 
                $PACKAGE_APP "${PACKAGE_APP_OPTIONS[@]}"
65
 
                RESULT=$?
66
 
        
67
 
                if [ $RESULT -ne 0 ]; then
68
 
                        dialog_msgbox "Failure" "Running package application $PACKAGE_APP failed, error=$RESULT"
69
 
                fi
70
 
        fi
71
 
}
72
 
 
73
43
function run_console()
74
44
{
75
45
        echo "Starting console application..."
166
136
 
167
137
if [ "$RUN_MANUAL_CUSTOMIZATIONS" = "yes" ] ; then
168
138
        while true ; do
169
 
                CHOICE_PACKAGE_MANAGER="Run package manager"
170
139
                CHOICE_CONSOLE="Run console application"
171
140
                CHOICE_EXIT="Continue building"
172
 
                CHOICE=`dialog_menu "Please choose customization action" "$CHOICE_PACKAGE_MANAGER" "$CHOICE_CONSOLE" "$CHOICE_EXIT"`
 
141
                CHOICE=`dialog_menu "Please choose customization action" "$CHOICE_CONSOLE" "$CHOICE_EXIT"`
173
142
                RESULT=$?
174
143
 
175
 
                if [ $RESULT -ne 0 ] ; then
 
144
                if [ -z $CHOICE ] ; then
176
145
                        failure "Script cancelled by user"
177
146
                fi
178
147
                #workaround for KDE bug (https://bugs.kde.org/show_bug.cgi?id=139025)
182
151
 
183
152
                if [ "$CHOICE" = "$CHOICE_EXIT" ] ; then
184
153
                        break
185
 
                elif [ "$CHOICE" = "$CHOICE_PACKAGE_MANAGER" ] ; then
186
 
                        run_package_manager
187
154
                elif [ "$CHOICE" = "$CHOICE_CONSOLE" ] ; then
188
155
                        run_console
189
156
                fi