summaryrefslogtreecommitdiff
path: root/methods/copy.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:12 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:12 +0000
commit8b89e57fa2ae7d34b055b8f804cee0c2c194043b (patch)
treee064dc401cfa03ed15eaafbc746ecd9bb379a211 /methods/copy.cc
parent92173b19af439ac49d842902a3a57105d396d7d8 (diff)
Stable acquire code
Author: jgg Date: 1998-10-26 07:11:43 GMT Stable acquire code
Diffstat (limited to 'methods/copy.cc')
-rw-r--r--methods/copy.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/methods/copy.cc b/methods/copy.cc
index c1cc26a69..b1c0fe360 100644
--- a/methods/copy.cc
+++ b/methods/copy.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: copy.cc,v 1.2 1998/10/25 07:07:29 jgg Exp $
+// $Id: copy.cc,v 1.3 1998/10/26 07:11:52 jgg Exp $
/* ######################################################################
Copy URI - This method takes a uri like a file: uri and copies it
@@ -121,6 +121,7 @@ int main()
TimeBuf.modtime = Buf.st_mtime;
if (utime(Target.c_str(),&TimeBuf) != 0)
{
+ To.OpFail();
_error->Errno("utime","Failed to set modification time");
Fail(URI);
continue;