puppetlabs/packaging — pull request #186 by MosesMendoza (2013-09-03 23:59:03+00:00)
Title: Fix hardlinking in signing

Currently we cd into the dir containing the rpm and then try to hardlink it
as the a relative path established at RAKE_ROOT, which doesn't work.

E.g. cd pkg/el/5/devel/i386 && \
ln pkg/el/5/devel/i386/foo.rpm ../x86_64

This commit updates this to link the file only without the path,

E.g. cd pkg/el/5/devel/i386 && \
ln foo.rpm ../x86_64

It also sets the force flag to true for ln, because in the jenkins workflow,
we're going to download rpms in both arch directories, and when we try to
hardlink the signed version in, we'll get the error that the target already
exists. We want to hardlink in the signed version, so we should overwrite the
previous one with :force => true.

Signed-off-by: Moses Mendoza