[pacman-dev] New RC up, getting close!

Travis Willard travisw at wmpub.ca
Wed Jan 31 10:51:04 EST 2007


On Wed, 31 Jan 2007 12:33:10 +0200
"Roman Kyrylych" <roman.kyrylych at gmail.com> wrote:

> Also, can someone confirm that #3999 is fixed?

I can confirm it. For those of you with scientific minds I'll describe
my test procedure for you to poke holes in.  ;)

I just build a couple of dummy 'test' packages, test1 and test2, that
simulated the 'file moving between packages' bug in 3999.

I performed my tests both with pacman -U and with pacman -S using a
local gensync'd repo.

test1 pkgver1: contains the file /test1.txt, with contents "This file
is owned by test1"
test2 pkgver1: contains the file /test1.txt, with contents "This file
is owned by test2"
test1 pkgver2: contains only the file /test2.txt, and depends on test2

So, essentially, I installed test1 pkgver1, then "upgraded" to test1
pkgver2, which pulled in the test2 dependency.  The file /test1.txt in
this example "moved" from test1 to test2 in this upgrade - this is the
behaviour I assumed in the bug report that was causing the problems.

After installing test1 pkgver2, _both_ files /test1.txt and /test2.txt
properly exist in the filesystem, and the contents of /test1.txt are
"This file is owned by test2" -  a successful upgrade!

For those of you who I've confused with this description, here's some
console output: 

$ pacman -S test1
resolving dependencies... done.
looking for inter-conflicts... done.

Targets: test1-1-1
Total Package Size:   0.1 MB

Proceed with installation? [Y/n] 
checking package integrity... done.
cleaning up... done.
(1/1) checking for file conflicts
[#################################################################################]100% 

$ pacman -Q test1
test1 1-1

$ pacman -Ql test1
test1 test1.txt

$ cat /test1.txt 
This file belongs to test1!

#UPDATE THE REPO TO pkver2

$ pacman -Su
:: Starting full system upgrade...
resolving dependencies... done.
looking for inter-conflicts... done.

Targets: test2-1-1 test1-1-2
Total Package Size:   0.1 MB

Proceed with installation? [Y/n] 
checking package integrity... done.
cleaning up... done.
(2/2) checking for file conflicts
[#################################################################################]100% 

$ pacman -Q test1 test2
test1 1-2
test2 1-1

$ pacman -Ql test1 test2
test1 test2.txt
test2 test1.txt

$ cat /test1.txt
This file belongs to test2!


So, looks like it's golden.  Yay!  (Added this to the FS report too,
for completion's sake)

--
Travis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20070131/a7943d5a/attachment.pgp>


More information about the pacman-dev mailing list