Skip to content

Commit

Permalink
https://github.com/xbianonpi/xbian/commit/ebf2ed511c34e989d19c82dd65b…
Browse files Browse the repository at this point in the history
…8e9e87071a97a#commitcomment-9168793
  • Loading branch information
mk01 committed Jan 6, 2015
1 parent ff0891f commit b9f07f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.img
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ do_xbian()

chroot ./rootfs apt-get update
chroot ./rootfs wget $config_xbianrepository
chroot ./rootfs dpkg -i $(basename $config_xbianrepository)
chroot ./rootfs dpkg -i --force-confdef --force-confnew $(basename $config_xbianrepository)
chroot ./rootfs rm -f $(basename $config_xbianrepository)

chroot ./rootfs sed -i 's/### //g' /etc/apt/sources.list.d/xbian.list; cp ./rootfs/etc/apt/sources.list.d/xbian.list /tmp/xbian.list
Expand Down

2 comments on commit b9f07f5

@CurlyMoo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn. I tried it like this but it didn't work. Already assumed it had to be something stupid.
dpkg -i $(basename $config_xbianrepository) --force-confdef --force-confnew

@mk01
Copy link
Member Author

@mk01 mk01 commented on b9f07f5 Jan 6, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's dpkg parsing.
as soon as first non-option parameter is found (package name), all other 'parameters' are parsed as package names.

(so

dpkg -i pkg.deb --xxx

should return error pointing to unknown package "---xxx")

Please sign in to comment.