[pacman-dev] [PATCH] libalpm: fix for conflicts&provides in sync_prepare()

VMiklos vmiklos at frugalware.org
Wed Jan 4 17:38:52 EST 2006


hi

http://frugalware.org/~vmiklos/patches/libpacman-proposed/conflict_provide.diff

  the scenario is the following:
  package A conflicts&provides B

  old:
  $ sudo pacman -S libnfsidmap
  resolving dependencies... done.
  looking for inter-conflicts... done.
  
  Targets: libnfsidmap-0.12-1 nfsidmap-0.11-1
  
  Total Package Size:   0.1 MB
  
  Proceed with upgrade? [Y/n]

  new:
  $ sudo ./pacman.static -S libnfsidmap
  resolving dependencies... done.
  looking for inter-conflicts...
  :: libnfsidmap conflicts with nfsidmap. Remove nfsidmap? [Y/n]
  done.
  
  Remove:  nfsidmap
  
  Targets: libnfsidmap-0.12-1
  
  Total Package Size:   0.1 MB
  
  Proceed with upgrade? [Y/n]

  reason: appending the package to the replaces list is unnecessary if
  we don't set the solved variable to 1, as that way the type will be
  set to PM_SYNC_TYPE_REPLACE later

udv / greetings,
VMiklos

-- 
Developer of Frugalware Linux, to make things frugal - http://frugalware.org




More information about the pacman-dev mailing list