mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
prevent self-copy from being destructive
This commit is contained in:
parent
966e57d3be
commit
6181102e45
@ -285,6 +285,10 @@ verify_file(const Filename &, const Filename &,
|
||||
////////////////////////////////////////////////////////////////////
|
||||
bool CVSCopy::
|
||||
verify_binary_file(Filename source, Filename dest) {
|
||||
if (source == dest) {
|
||||
return true;
|
||||
}
|
||||
|
||||
source.set_binary();
|
||||
dest.set_binary();
|
||||
|
||||
@ -335,6 +339,10 @@ verify_binary_file(Filename source, Filename dest) {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
bool CVSCopy::
|
||||
copy_binary_file(Filename source, Filename dest) {
|
||||
if (source == dest) {
|
||||
return true;
|
||||
}
|
||||
|
||||
source.set_binary();
|
||||
dest.set_binary();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user