vodik / repose

an archlinux repo poking tool
GNU General Public License v2.0
128 stars 15 forks source link

Relative --root and --pool corner case? #38

Closed mkoskar closed 8 years ago

mkoskar commented 8 years ago

This happens when both --root and --pool are relative paths.

$ tree
.
├── pool
│   └── tmux-2.1-2-x86_64.pkg.tar.xz
└── root

$ repose -fz -r root -p pool custom

$ tree
.
├── pool
│   └── tmux-2.1-2-x86_64.pkg.tar.xz
└── root
    ├── custom.db
    ├── custom.files
    └── tmux-2.1-2-x86_64.pkg.tar.xz -> pool/tmux-2.1-2-x86_64.pkg.tar.xz

Notice that the link generated is "broken".

vodik commented 8 years ago

Shit, this is a regression. Thanks for the catch. Need to add test coverage for this stuff...