Skip to content

Commit 49b5eeb

Browse files
Vitexusclaude
andcommitted
fix: strip leading ../ from debian/files entries + add importlib-metadata dep
debian/files on some dpkg versions lists the .buildinfo path with a leading ../ prefix; prepending another ../ in the mv loop produces ../../ which doesn't exist. Strip the prefix before the mv. Also adds python3-importlib-metadata to python3-opentelemetry-api Depends — opentelemetry.util._importlib_metadata unconditionally imports it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 75b9128 commit 49b5eeb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

debian/Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ distributions.each { distro ->
6666
sh 'sudo chown jenkins:jenkins ..'
6767
sh 'sudo rm -rf debian/$(dpkg-parsechangelog --show-field Source)/ debian/.debhelper/ debian/tmp/'
6868
sh 'debuild-pbuilder -r"sudo -E" -i -us -uc -b'
69-
sh 'mkdir -p $WORKSPACE/dist/debian/ ; rm -rf $WORKSPACE/dist/debian/* ; for deb in $(cat debian/files | awk \'{print $1}\'); do mv "../$deb" $WORKSPACE/dist/debian/; done'
69+
sh 'mkdir -p $WORKSPACE/dist/debian/ ; rm -rf $WORKSPACE/dist/debian/* ; for deb in $(cat debian/files | awk \'{print $1}\' | sed \'s|^\\.\\./ *||\'); do mv "../$deb" $WORKSPACE/dist/debian/; done'
7070
artifacts = sh (
71-
script: "cat debian/files | awk '{print \$1}'",
71+
script: "cat debian/files | awk '{print \$1}' | sed 's|^\\.\\./||'",
7272
returnStdout: true
7373
).trim().split('\n')
7474
}

0 commit comments

Comments
 (0)