FreeBSD Bugzilla – Attachment 239802 Details for
Bug 269242
ports-mgmt/portmaster --clean-distfiles fails deleting a file whose name contains a space
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
a patch to preserve a space in a filename
clean-distfiles.patch (text/plain), 847 bytes, created by
fmysh
on 2023-01-30 10:47:43 UTC
(
hide
)
Description:
a patch to preserve a space in a filename
Filename:
MIME Type:
Creator:
fmysh
Created:
2023-01-30 10:47:43 UTC
Size:
847 bytes
patch
obsolete
>--- portmaster 2023-01-24 12:37:19.116877000 +0900 >+++ portmaster-SPACE-IN-FILENAME 2023-01-24 17:33:48.916819000 +0900 >@@ -1305,13 +1305,14 @@ > fi > > echo "===>>> Checking for stale distfiles" ; echo '' >- for df in `find $DISTDIR -type f | sort`; do >+ find $DISTDIR -type f | sort | while read df >+ do > f=${df#$DISTDIR} >- if ! grep -ql ^$f $DI_FILES; then >+ if ! grep -ql "^$f" $DI_FILES; then > get_answer_yn n "\t===>>> Delete stale file: $f" > case "$?" in > 0) echo " Deleting $f" ; echo '' >- /bin/unlink $df ;; >+ /bin/unlink "$df" ;; > *) continue ;; > esac > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 269242
: 239802