# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-set -e
+set -eu
sources=/etc/apt/sources.list
repo=/root/apt
mkdir -p "$repo/conf"
mkdir -p "$repo/morgue"
- arch=`dpkg --print-architecture`
+ arch="`dpkg --print-architecture` `dpkg --print-foreign-architectures`"
cat >"$repo/conf/distributions" <<EOF
Codename: $codename
Components: main