~linaro-maintainers/live-build/linaro-live-build-3

« back to all changes in this revision

Viewing changes to scripts/build/lb_chroot_apt

  • Committer: Daniel Baumann
  • Date: 2011-03-09 18:19:23 UTC
  • Revision ID: git-v1:c5c3f6133a0fb62ba9c2c3b839e6ea5774f9c76a
Adding debian version 3.0~a1-1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
3
## live-build(7) - System Build Scripts
4
 
## Copyright (C) 2006-2011 Daniel Baumann <daniel@debian.org>
 
4
## Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
5
5
##
6
6
## live-build comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7
7
## This is free software, and you are welcome to redistribute it
122
122
                if Find_files config/chroot_local-packages/*.deb
123
123
                then
124
124
                        echo >> chroot/etc/apt/preferences
125
 
                        echo "# Added by lb_chroot_apt ${@}" >> chroot/etc/apt/preferences
 
125
                        echo "# Added by lh_chroot_apt ${@}" >> chroot/etc/apt/preferences
126
126
                        echo "Package: *" >> chroot/etc/apt/preferences
127
127
                        echo "Pin: release o=chroot_local-packages" >> chroot/etc/apt/preferences
128
128
 
133
133
                                        ;;
134
134
 
135
135
                                install-binary)
136
 
                                        # Ensure local packages are not re-installed during lb_binary
 
136
                                        # Ensure local packages are not re-installed during lh_binary
137
137
                                        echo "Pin-Priority: 99" >> chroot/etc/apt/preferences
138
138
 
139
139
                                        echo >> chroot/etc/apt/preferences
220
220
                then
221
221
                        if [ -f chroot/etc/apt/preferences ]
222
222
                        then
223
 
                                # delete additions from lb_chroot_apt install|install-binary to preferences
224
 
                                sed -i '/# Added by lb_chroot_apt/,$d' chroot/etc/apt/preferences
 
223
                                # delete additions from lh_chroot_apt install|install-binary to preferences
 
224
                                sed -i '/# Added by lh_chroot_apt/,$d' chroot/etc/apt/preferences
225
225
                                # delete the last empty line
226
226
                                sed -i '${/^[[:blank:]]*$/d;}' chroot/etc/apt/preferences
227
227
                                # if the resulting preferences file is empty there was no user additions, remove it