<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/scripts/clean-package.sh, branch v21.02.1</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.1</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.1'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2020-03-01T20:35:59Z</updated>
<entry>
<title>build: Fix directory symlinks not removed when cleaning STAGING_DIR</title>
<updated>2020-03-01T20:35:59Z</updated>
<author>
<name>Jeffery To</name>
</author>
<published>2020-02-18T21:15:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=f96cfe019a4d1190ef3199594ad38b7bf67953fb'/>
<id>urn:sha1:f96cfe019a4d1190ef3199594ad38b7bf67953fb</id>
<content type='text'>
Currently, a symbolic link whose target is a directory will not be
removed when cleaning packages from STAGING_DIR.

In the first cleaning pass in scripts/clean-package.sh, the -f test for
a directory symlink returns false (because the link target is a
directory) and so the symlink is not removed.

In the second pass, the -d test returns true for a directory symlink,
but the symlink is not removed by rmdir because rmdir only removes
(real) directories.

This updates clean-package.sh to remove all non-directories (including
symbolic links) in the first pass.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: fix STAGING_DIR cleaning when filenames contain spaces</title>
<updated>2019-05-17T19:41:43Z</updated>
<author>
<name>Jeffery To</name>
</author>
<published>2019-05-15T14:20:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=3fcb70927597bad2896c6b39b2bdd2bb4c371bf3'/>
<id>urn:sha1:3fcb70927597bad2896c6b39b2bdd2bb4c371bf3</id>
<content type='text'>
When looping through a package's STAGING_FILES_LIST (a list of
file/directory paths delimited by newlines), if the path contains
spaces, then the path will be split by the while loops, and the
file/directory will not be deleted/removed.

This sets the internal field separator to the newline only so that the
entire path is considered when deleting/removing.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: fix STAGING_DIR cleaning for packages</title>
<updated>2019-01-30T11:32:07Z</updated>
<author>
<name>Jeffery To</name>
</author>
<published>2018-12-12T17:33:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a1170936798e519776de605d6986ccb72f04cb06'/>
<id>urn:sha1:a1170936798e519776de605d6986ccb72f04cb06</id>
<content type='text'>
This fixes two issues with cleaning package files from STAGING_DIR:

* CleanStaging currently can only remove files and not directories. This
  changes CleanStaging to use clean-package.sh, which does remove
  directories.

* Because of the way directories are ordered in the staging files list,
  clean-package.sh currently tries (and fails) to remove parent
  directories before removing subdirectories. This changes
  clean-package.sh to process the staging files list in reverse, so that
  subdirectories are removed first.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: clean up stale files from a previous build when installing a package build to the staging dir</title>
<updated>2013-05-29T10:31:45Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2013-05-29T10:31:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=6f4cb088a0ca2c0321b41d424f112586c5e363c8'/>
<id>urn:sha1:6f4cb088a0ca2c0321b41d424f112586c5e363c8</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 36755
</content>
</entry>
</feed>
