pcp
[Top] [All Lists]

rpm migrate_tempdirs() problem on SuSE

To: PCP Mailing List <pcp@xxxxxxxxxxx>
Subject: rpm migrate_tempdirs() problem on SuSE
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Wed, 27 Mar 2013 17:07:24 +1100
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4
The rpm spec files both contain

        mv -fun "$source" "$target"

on SuSE, mv(1) has no -n option (nor the equivalent --no-clobber) ... need some recoding here in old-style portable Unix command speak I think ... I'll leave that to someone who understands what this was supposed to be doing.

I'm guessing it needs to be

        [ -d "$target" ] || mv -fu "$source" "$target"

if "$target" is always a directory in this context

<Prev in Thread] Current Thread [Next in Thread>