Package: scons
Version: 1.2.0.d20100117-1
Severity: wishlist
Tags: upstream
The documentation of Custom deciders gives as an example a situation
where you want to check only part of a file (e.g., to ignore a date
stamp). Unfortunately, *how* to do this is not documented anywhere.
The example that purports to document this is:
def decide_if_changed(dependency, target, prev_ni):
if self.get_timestamp() != prev_ni.timestamp:
dep = str(dependency)
tgt = str(target)
if specific_part_of_file_has_changed(dep, tgt):
return True
return False
The problem is that it's unclear how to implement
specific_part_of_file_has_changed. I don't have access to the old file
any more (obviously), and there isn't any (documented) way to, e.g.,
store an md5sum of just part of the file. So it seems to me that
specific_part_of_file_has_changed must be relying on some functionality
in SCons that isn't documented anywhere.
Daniel
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages scons depends on:
ii python 2.5.4-9 An interactive high-level object-o
ii python-support 1.0.6.1 automated rebuilding support for P
scons recommends no packages.
scons suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]