[sysadmin/neon-tooling] nci: apply the patch dependent on DIST
Carlos De Maine <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 2a9794708e28d04e2e2fdd93d82b174bee161203 by Carlos De Maine.
Committed on 26/07/2026 at 09:54.
Pushed by carlosdem into branch 'master'.
apply the patch dependent on DIST
M +1 -2 nci/adt.rb
https://invent.kde.org/sysadmin/neon-tooling/-/commit/2a9794708e28d04e2e2fdd93d82b174bee161203
diff --git a/nci/adt.rb b/nci/adt.rb
index a819ed17..4c027eb6 100755
--- a/nci/adt.rb
+++ b/nci/adt.rb
@@ -83,8 +83,7 @@ Dir.chdir('/') do
FileUtils.cp("#{__dir__}/adt-helpers/mktemp", '/usr/sbin/mktemp',
verbose: true)
FileUtils.chmod(0o0755, '/usr/sbin/mktemp')
- if File.exist?('/usr/bin/autopkgtest') # noble
- # Applies with a bit of offset.
+ if ENV.fetch('DIST') == 'noble' # noble
system('patch',
'/usr/bin/autopkgtest',
"#{__dir__}/adt-helpers/adt-run.diff") || raise