Bug #2363

Archive SCM type does not remove hidden files

Added by S. Meyer zu Borgsen over 8 years ago. Updated over 7 years ago.

Status:ResolvedStart date:08/19/2015
Priority:HighDue date:
Assignee:J. Moringen% Done:

100%

Category:-
Target version:0.5

Description

Archive SCM type does not remove hidden files.
This causes the build to fail in the second run.

See popt project as an example.

Solution:

# Clean workspace.
rm -rf *

should be something like:

# Clean workspace.
rm -rf * .*

Associated revisions

Revision f4f7edd4
Added by J. Moringen over 8 years ago

Fixed workspace cleaning for archive aspect in src/project/aspects.lisp

fixes #2363

Clean workspace using

rm -rf * .[^.]*

instead of

rm -rf *

since the latter misses hidden files.

  • src/project/aspects.lisp (define-aspect archive): adapted clean
    shell command

Revision dbbaea15
Added by J. Moringen over 8 years ago

Fixed workspace cleaning in archive aspect in src/project/aspects.lisp

refs #2363

Third attempt: Clean workspace using

find . -mindepth 1 -maxdepth 1 -exec rm -rf {} \;

instead of

rm -rf * .[^.]*

since the latter does not work in all shells.

  • src/project/aspects.lisp (make-remove-directory-contents): new
    function; generate shell code to delete the contents of the current
    directory, possibly with exceptions
    (define-aspect archive): use `make-remove-directory-contents'
    (define-aspect git): likewise

Reported-by: Robert Haschke <>

History

#1 Updated by J. Moringen over 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#2 Updated by J. Moringen over 7 years ago

  • Target version set to 0.5

Also available in: Atom PDF