dragora-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dragora-users] Dragora recipes with cp command


From: Dust DFG
Subject: [Dragora-users] Dragora recipes with cp command
Date: Sun, 6 Feb 2022 18:05:18 +0000

Hello!

I saw that many of dragora recipes use the "cp -p" command. I want to ask you why you don't use the mv command. Cp command waste time and disk resource. When source directory of package and package-$pkgname directories are in the one filesystem and one physical disk(most cases), mv command just moves the file (It is cheap). When those directories aren't near, mv command is similar to cp. I think mv should be preferred. For example, a recipe for the package buildtree-generic that copies a folder with kernel sources and binaries and then removes the original folder. It isn't quick but it is very expensive because a computer wastes time and disk resources.

P.S I am sorry for my mistakes

reply via email to

[Prev in Thread] Current Thread [Next in Thread]