Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-winrm-elevated for
openSUSE:Factory checked in at 2021-01-21 21:56:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-winrm-elevated (Old)
and /work/SRC/openSUSE:Factory/.rubygem-winrm-elevated.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-winrm-elevated"
Thu Jan 21 21:56:02 2021 rev:6 rq:865213 version:1.2.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-winrm-elevated/rubygem-winrm-elevated.changes
2020-10-05 19:35:41.217350356 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-winrm-elevated.new.28504/rubygem-winrm-elevated.changes
2021-01-21 21:56:03.273823152 +0100
@@ -1,0 +2,6 @@
+Wed Jan 20 13:35:21 UTC 2021 - Stephan Kulow <[email protected]>
+
+updated to version 1.2.3
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
winrm-elevated-1.2.2.gem
New:
----
winrm-elevated-1.2.3.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-winrm-elevated.spec ++++++
--- /var/tmp/diff_new_pack.MPajKi/_old 2021-01-21 21:56:04.033823681 +0100
+++ /var/tmp/diff_new_pack.MPajKi/_new 2021-01-21 21:56:04.037823684 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-winrm-elevated
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-winrm-elevated
-Version: 1.2.2
+Version: 1.2.3
Release: 0
%define mod_name winrm-elevated
%define mod_full_name %{mod_name}-%{version}
++++++ winrm-elevated-1.2.2.gem -> winrm-elevated-1.2.3.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/winrm/shells/elevated.rb
new/lib/winrm/shells/elevated.rb
--- old/lib/winrm/shells/elevated.rb 2020-09-10 20:27:51.000000000 +0200
+++ new/lib/winrm/shells/elevated.rb 2020-11-11 23:34:08.000000000 +0100
@@ -73,7 +73,9 @@
def upload_elevated_shell_script(script_text)
elevated_shell_path = 'c:/windows/temp/winrm-elevated-shell-' +
SecureRandom.uuid + '.ps1'
- script_text_with_exit =
"#{script_text}\r\n$Host.SetShouldExit($LASTEXITCODE)"
+ # Prepend the content of the file with an UTF-8 BOM for Windows to
read it as such instead of the default
+ # Windows-XXXX encoding, and convert script_text accordingly if needed.
+ script_text_with_exit =
"\uFEFF#{script_text.encode(Encoding::UTF_8)}\r\n$Host.SetShouldExit($LASTEXITCODE)"
@winrm_file_transporter.upload(StringIO.new(script_text_with_exit),
elevated_shell_path)
elevated_shell_path
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/winrm-elevated/scripts/elevated_shell.ps1
new/lib/winrm-elevated/scripts/elevated_shell.ps1
--- old/lib/winrm-elevated/scripts/elevated_shell.ps1 2020-09-10
20:27:51.000000000 +0200
+++ new/lib/winrm-elevated/scripts/elevated_shell.ps1 2020-11-11
23:34:08.000000000 +0100
@@ -88,14 +88,28 @@
function SlurpOutput($file, $cur_line, $out_type) {
if (Test-Path $file) {
- get-content $file | Select-Object -skip $cur_line | ForEach-Object {
- $cur_line += 1
- if ($out_type -eq 'err') {
- $host.ui.WriteErrorLine("$_")
- } else {
- $host.ui.WriteLine("$_")
+ $fs = New-Object -TypeName System.IO.FileStream -ArgumentList @(
+ $file,
+ [system.io.filemode]::Open,
+ [System.io.FileAccess]::Read,
+ [System.IO.FileShare]::ReadWrite
+ )
+ try {
+ $enc =
[System.Text.Encoding]::GetEncoding($Host.CurrentCulture.TextInfo.OEMCodePage)
+ $bytes = [System.Byte[]]::CreateInstance([System.Byte], $fs.Length)
+ if ($fs.Read($bytes, 0, $fs.Length) -gt 0) {
+ $text = $enc.GetString($bytes)
+ $text.TrimEnd("`n").TrimEnd("`r").Split(@("`r`n", "`n"),
[StringSplitOptions]::None) | Select-Object -skip $cur_line | ForEach-Object {
+ $cur_line += 1
+ if ($out_type -eq 'err') {
+ $host.ui.WriteErrorLine("$_")
+ } else {
+ $host.ui.WriteLine("$_")
+ }
+ }
}
}
+ finally { $fs.Close() }
}
return $cur_line
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-09-10 20:27:51.000000000 +0200
+++ new/metadata 2020-11-11 23:34:08.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: winrm-elevated
version: !ruby/object:Gem::Version
- version: 1.2.2
+ version: 1.2.3
platform: ruby
authors:
- Shawn Neal
autorequire:
bindir: bin
cert_chain: []
-date: 2020-09-10 00:00:00.000000000 Z
+date: 2020-11-11 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: erubi