Hi.

I'm thinking about the minimal "find" command which does the trick.

The proposed line says this:

+       find debian/tmp -depth -newermt '$(BUILD_DATE)' -print0 | \
+               xargs -0r touch --no-dereference --date='$(BUILD_DATE)'

Why -depth?

If I were to remove files or directories, the timestamps of the parent
directories would be affected. A simple touch, however, does only
touch what I tell it to touch, so I don't see why the -depth switch is
required here. Do other systems behave differently? kFreeBSD? Hurd?


Then we have the -print0 and xargs -0. This is of course needed in the
general sense, but if this package had any files containing spaces in
their filename I would consider it undesirable and would prefer to fix
the package first (in this case I'm only talking about this package).


Finally, what would happen if I remove -r from xargs? It would FTBFS
if the list of files to be touched is empty, which means the package
is being built in the past (before the date in the changelog). Would
this be considered as a real FTBFS or as a false positive?

Thanks.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to