Projects
Eulaceura:Mainline:GA
pesign-obs-integration
_service:obs_scm:Skip-processing-of-ghost-files...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:Skip-processing-of-ghost-files-as-they-are-not-extra.patch of Package pesign-obs-integration
From bbebbe1e51ff38601bb9e14e323327d21dedb048 Mon Sep 17 00:00:00 2001 From: Roberto Sassu <roberto.sassu@huawei.com> Date: Tue, 14 Jul 2020 12:39:44 +0200 Subject: [PATCH 2/3] Skip processing of ghost files as they are not extracted from RPMs --- pesign-gen-repackage-spec | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pesign-gen-repackage-spec b/pesign-gen-repackage-spec index e554c5d..96f07b5 100755 --- a/pesign-gen-repackage-spec +++ b/pesign-gen-repackage-spec @@ -392,17 +392,17 @@ sub print_files { } if ($f->{flags} & $filetypes{ghost}) { $attrs .= "%ghost "; - if (S_ISREG($f->{mode})) { - open(my $fh, '>', $path) or die "$path: $!\n"; - if ($f->{size} > 0) { - sysseek($fh, $f->{size} - 1, SEEK_SET); - syswrite($fh, ' ', 1); - } - close($fh); - utime($f->{mtime}, $f->{mtime}, $path); - } elsif (S_ISLNK($f->{mode})) { - symlink($f->{target}, $path); - } +# if (S_ISREG($f->{mode})) { +# open(my $fh, '>', $path) or die "$path: $!\n"; +# if ($f->{size} > 0) { +# sysseek($fh, $f->{size} - 1, SEEK_SET); +# syswrite($fh, ' ', 1); +# } +# close($fh); +# utime($f->{mtime}, $f->{mtime}, $path); +# } elsif (S_ISLNK($f->{mode})) { +# symlink($f->{target}, $path); +# } } # mtime of symlinks is also not preserved by cpio if (S_ISLNK($f->{mode})) { -- 2.27.GIT
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2