Skip to content

Copy broken if target is a directory #1752

Open

Description

@bdbaddog

This issue was originally created at: 2007-10-11 05:49:54.
This issue was reported by: leanid.

leanid said at 2007-10-11 05:49:55

SConstruct:

import SCons.Defaults
import os

env = Environment()
Command("install", "src", Copy("$TARGET", "$SOURCE"), source_scanner=DirScanner)
Clean("install")

Create src/a/a.txt (contents don't matter) and run scons. it will copy a/a.txt into install directory

Now create src/b/b.txt and run scons again, it does not copy b/b.txt, just says that target is up-to-date

bdbaddog said at 2008-03-17 18:56:23

Checking if fixed in current svn, then return to triage team.

garyo said at 2008-03-17 20:21:50

*** Issue 1699 has been marked as a duplicate of this issue. ***

garyo said at 2008-03-17 20:42:57

need further info

garyo said at 2008-03-18 06:27:42

Status: Bill Deegan is going to check into it and see if it's fixed in latest svn, and if it's not, what would be needed. Also he's checking to see if #1699 is really the same issue (looks like it). After that we can decide again whether it's for 1.x or 2.x.

leanid said at 2008-03-18 07:14:46

A bit more history on that issue could be found in this discussion: http://scons.tigris.org/servlets/ReadMsg?listName=dev&msgNo=4383 [tigris links are dead]

bdbaddog said at 2009-03-02 23:06:27

This is still a bug.
Here's an updated SConstruct
-----SConstruct------

import SCons.Defaults
import os

env = Environment()
x = Command("install", "src", Copy("$TARGET", "$SOURCE"), source_scanner=DirScanner)
Clean("install", x)

In latest SVN 4065 this still doesn't recognize the new directory/file src/b/b.txt and copy it on the second scons run.

scons -c does remove the install directory thought (which was reported as not working in the email thread I believe)

Perhaps P3 2.x?

gregnoel said at 2009-03-05 08:50:43

Bug party triage.

stevenknight said at 2009-11-10 18:00:19

stevenknight => issues@scons

garyo said this issue is duplicated by #1699 at 2008-03-17 20:21:52.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions