~ubuntu-branches/debian/sid/ubuntu-dev-tools/sid

« back to all changes in this revision

Viewing changes to get-build-deps

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung, Colin Watson, Jelmer Vernooij, Stefano Rivera, Julian Taylor, Benjamin Drung
  • Date: 2011-09-06 14:31:31 UTC
  • Revision ID: package-import@ubuntu.com-20110906143131-pukbbowpabmw4w42
Tags: 0.129
[ Colin Watson ]
* syncpackage: Convert to new LP API, with --no-lp available for the old
  style of operation.
* syncpackage: Require -f/--force option to overwrite Ubuntu changes.

[ Jelmer Vernooij ]
* Remove several tools not specific to Ubuntu that have been migrated to
  lptools (LP: #708886):
 - get-branches (renamed to lp-get-branches)
 - grab-attachments (renamed to lp-grab-attachments)
 - lp-project-upload
 - lp-list-bugs
 - lp-set-dup
 - lp-shell

[ Stefano Rivera ]
* syncpackage: Show changes to be synced when performing native syncs.
* syncpackage: Check the sync blacklist.
* syncpackage: Support --bug (extra bugs to be closed by the sync) with
  native syncs. (Bugs are closed one individually, via the API, post-sync)
* dgetlp, submittodebian, 404main: Use unicode strings for literal strings
  containing non-ASCII characters (LP: #836661)
* Recommend pbuilder | aptitude for get-build-deps, and exit with an error
  if neither are installed (LP: #799368)
* get-build-deps: Tell aptitude not to follow Recommends (LP: #817500)
* doc/requestsync.1: Document the -C option (LP: #833408)
* ubuntutools.archive: Don't write .dsc files until we pull the entire
  source package, just hold it in memory. Avoids littering the current
  directory (LP: #838361)
* Run harvest as part of sponsor-patch (LP: #833699)

[ Julian Taylor ]
* requestsync: omit dups when checking for duplicate requests (LP: #842217)

[ Benjamin Drung ]
* sponsor-patch: Default to not upload the package.
* requestsync: Do not crash on user abort (Closes: #637168).

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
# argument is the name of a package, and install the dependencies for
33
33
# all of them.
34
34
 
35
 
if [ $# -eq 0 ]
36
 
then
 
35
if [ $# -eq 0 ]; then
37
36
        #########################################################
38
37
        # Install the dependencies for the source package the
39
38
        # user is working on.
57
56
                exit 0
58
57
        fi
59
58
 
 
59
        if [ ! -x /usr/lib/pbuilder/pbuilder-satisfydepends -a -z "$(which aptitude)" ]; then
 
60
                echo "Please install either «pbuilder» or «aptitude» in order to use this utility"
 
61
                exit 1
 
62
        fi
 
63
 
60
64
        echo "Installing the build dependencies described in «$filepath»..."
61
65
 
62
 
        if [ -x /usr/lib/pbuilder/pbuilder-satisfydepends ]
63
 
        then
 
66
        if [ -x /usr/lib/pbuilder/pbuilder-satisfydepends ]; then
64
67
                sudo /usr/lib/pbuilder/pbuilder-satisfydepends
65
68
        else
66
 
                echo "Warning: «pbuilder» isn\'t installed, falling back to «dpkg-checkbuilddeps»."
67
 
                sudo aptitude install $(echo $missing_dependencies | awk -F': ' '{ print $3 }' | sed 's/([^)]*)//g' | sed 's/|\s[^\s]*//g')
 
69
                echo "Warning: «pbuilder» isn't installed, falling back to «dpkg-checkbuilddeps»."
 
70
                sudo aptitude --without-recommends install $(echo $missing_dependencies | awk -F': ' '{ print $3 }' | sed 's/([^)]*)//g' | sed 's/|\s[^\s]*//g')
68
71
                #' <--- Fix to avoid Geanys markup breaking
69
72
        fi
70
73
        exit 0
71
 
elif [ $# -eq 1 ]
72
 
then
 
74
elif [ $# -eq 1 ]; then
73
75
        #########################################################
74
76
        # Check if the given argument is a file name, else
75
77
        # continue after the if.
76
 
        if [ -f $1 ]
77
 
        then
 
78
        if [ -f $1 ]; then
78
79
                packages=''
79
80
                echo "Installing the build dependencies for the following packages:"
80
81
                while read line