[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg upgrade/downgrade dependency problem



On Mon, Apr 13, 1998 at 10:13:09PM -0600, Jason Gunthorpe wrote:
> 
> In my above pargraph consider 'dependencies' to be the general group of
> Depends:, Pre-Depends: and Conflicts:

	The `Conflicts:' dependency work as expected:
-------------------------------------------
# dpkg -s test-a test-b
Package: test-a
Status: install ok installed
Version: 2.0

Package: test-b
Status: install ok installed
Version: 1.0
Conflicts: test-a (<< 2.0)

# dpkg -i test-a_1.0.deb
dpkg - warning: downgrading test-a from 2.0 to 1.0.
dpkg: regarding test-a_1.0.deb containing test-a:
 test-b conflicts with test-a (<< 2.0)
  test-a (version 1.0) is to be installed.
dpkg: error processing test-a_1.0.deb (--install):
 conflicting packages - not installing test-a
Errors were encountered while processing:
 test-a_1.0.deb
#
-------------------------------------------

	The "Depends:" and "Pre-Depends" dependencies are the ones
that can get unsatisfied.

> Juan, if you have some time I have a wonderfull idea for a much better
> interface to dpkg that would allow me to write some really nice error
> handling code.

	I'm afraid I won't have much time until July (exams :)), but
please tell us your idea.

	BTW: I was also thinking in allowing something like this:

# dpkg --install test-a_1.0.deb --remove test-b --unpack test-c_2.0.deb --configure test-d

	I think that would be very useful for apt, won't it?

-- 
Juan Cespedes


--
To UNSUBSCRIBE, email to debian-dpkg-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: