public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/selenium-manager] rawhide: Update to version 4.45.0 (rhbz#2376821)
@ 2026-06-16 11:07 tjuhasz
0 siblings, 0 replies; only message in thread
From: tjuhasz @ 2026-06-16 11:07 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/selenium-manager
Branch : rawhide
Commit : 366f0890331c76bff7b56ab492213f1561d36e7a
Author : tjuhasz <tjuhasz@redhat.com>
Date : 2026-06-16T12:32:31+02:00
Stats : +119/-102 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/selenium-manager/c/366f0890331c76bff7b56ab492213f1561d36e7a?branch=rawhide
Log:
Update to version 4.45.0 (rhbz#2376821)
---
diff --git a/.gitignore b/.gitignore
index 93bab36..b2fcb41 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/selenium-4.28.0.tar.gz
/selenium-4.29.0.tar.gz
/selenium-4.32.0.tar.gz
+/selenium-4.43.0.tar.gz
diff --git a/0001-remove-unnecessary-dependencies.patch b/0001-remove-unnecessary-dependencies.patch
index 8496b56..c847efb 100644
--- a/0001-remove-unnecessary-dependencies.patch
+++ b/0001-remove-unnecessary-dependencies.patch
@@ -1,40 +1,45 @@
---- Cargo.toml 2025-05-02 16:09:36.000000000 -0400
-+++ Cargo.toml.mod 2025-12-16 12:54:13.289976031 +0000
-@@ -20,22 +20,18 @@
- tempfile = "3.19.1"
- reqwest = { version = "0.12.15", default-features = false, features = ["rustls-tls"] }
--zip = { version = "2.6.1", default-features = false, features = ["deflate-zlib"] }
-+zip = { version = "2.2.3", default-features = false, features = ["deflate-zlib"] }
+--- Cargo.toml.orig 2026-06-16 10:45:12.940909792 +0200
++++ Cargo.toml 2026-06-16 11:26:23.322089456 +0200
+@@ -16,7 +16,7 @@
+ log = "0.4.29"
+ env_logger = "0.11.10"
+ regex = "1.12.3"
+-tokio = { version = "1.52.3", default-features = false, features = ["macros", "net", "rt-multi-thread"] }
++tokio = { version = "1", default-features = false, features = ["macros", "net", "rt-multi-thread"] }
+ tempfile = "3.27.0"
+ reqwest = { version = "0.13.3", default-features = false, features = ["rustls-no-provider"] }
+ # Pin the ring crypto backend so aws-lc-sys (and its C build requirements) are
+@@ -24,28 +24,22 @@
+ # main.rs. rustls-platform-verifier (pulled in by reqwest) is crypto-agnostic
+ # and works with whichever provider is installed as the process default.
+ rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12", "logging"] }
+-zip = { version = "8", default-features = false, features = ["deflate"] }
-directories = "6.0.0"
++zip = { version = "2.2.3", default-features = false, features = ["deflate-zlib"] }
+directories = ">=5.0.1, <7.0.0"
- serde = { version = "1.0.219", features = ["derive"] }
- serde_json = "1.0.140"
- flate2 = "1.1.1"
+ serde = { version = "1.0.228", features = ["derive"] }
+ serde_json = "1.0.149"
+ flate2 = "1.1.9"
tar = "0.4.44"
-infer = "0.19.0"
exitcode = "1.1.2"
- toml = "0.8.22"
--bzip2 = "0.5.2"
+-toml = "1.0"
+-bzip2 = "0.6.1"
-sevenz-rust = "0.6.1"
++toml = "0.8.22"
+bzip2 = ">=0.5.2, <0.7.0"
xz2 = "0.1.7"
walkdir = "2.5.0"
-debpkg = "0.6.0"
- anyhow = { version = "1.0.98", default-features = false, features = ["backtrace", "std"] }
+ anyhow = { version = "1.0.102", default-features = false, features = ["backtrace", "std"] }
-apple-flat-package = "0.20.0"
--which = "7.0.3"
+-which = "8.0.2"
+which = ">=7.0.0,<9.0.0"
fs2 = "0.4.3"
fs_extra = "1.3.0"
---- Cargo.toml 2025-06-28 23:44:16.000000000 +0200
-+++ Cargo.toml 2025-07-03 10:13:13.976813820 +0200
-@@ -39,8 +39,6 @@
- fs2 = "0.4.3"
- fs_extra = "1.3.0"
-
-[target.'cfg(windows)'.dependencies]
-winapi = { version = "0.3.9", features = ["winver", "winnt", "sysinfoapi"] }
- [dev-dependencies]
- assert_cmd = "2.0.17"
+ [features]
+ avoid_stats = []
diff --git a/0001-remove-unsupported-function.patch b/0001-remove-unsupported-function.patch
index 51cee69..dea6ac9 100644
--- a/0001-remove-unsupported-function.patch
+++ b/0001-remove-unsupported-function.patch
@@ -1,46 +1,35 @@
-diff --git a/files.rs b/files.rs.modded
-index 8dc208a..069164b 100644
---- files.rs
-+++ files.rs.modded
-@@ -17,13 +17,10 @@
+--- files.rs.orig 2026-06-16 11:17:00.470637200 +0200
++++ files.rs 2026-06-16 12:05:52.032336927 +0200
+@@ -17,10 +17,9 @@
use crate::config::OS;
use crate::config::OS::WINDOWS;
--use crate::{
-- format_one_arg, format_three_args, run_shell_command_by_os, Command, Logger, CP_VOLUME_COMMAND,
-- HDIUTIL_ATTACH_COMMAND, HDIUTIL_DETACH_COMMAND, MACOS, MSIEXEC_INSTALL_COMMAND,
--};
-+use crate::{Logger};
-+
- use anyhow::anyhow;
+-use crate::{Command, Logger, MACOS, format_one_arg, run_shell_command};
++use crate::{Command, Logger, run_shell_command};
use anyhow::Error;
+ use anyhow::anyhow;
-use apple_flat_package::PkgReader;
use bzip2::read::BzDecoder;
use directories::BaseDirs;
use flate2::read::GzDecoder;
-@@ -41,19 +38,6 @@ use zip::ZipArchive;
+@@ -43,7 +42,6 @@
+ use winapi::shared::minwindef::LPVOID;
+ #[cfg(windows)]
+ use winapi::um::winver::{GetFileVersionInfoSizeW, GetFileVersionInfoW, VerQueryValueW};
+-use xz2::read::XzDecoder;
+ use zip::ZipArchive;
pub const PARSE_ERROR: &str = "Wrong browser/driver version";
- const CACHE_FOLDER: &str = ".cache/selenium";
--const ZIP: &str = "zip";
--const GZ: &str = "gz";
--const XML: &str = "xml";
--const HTML: &str = "html";
--const BZ2: &str = "bz2";
--const PKG: &str = "pkg";
--const DMG: &str = "dmg";
--const EXE: &str = "exe";
--const DEB: &str = "deb";
--const MSI: &str = "msi";
--const XZ: &str = "xz";
--const SEVEN_ZIP_HEADER: &[u8; 6] = b"7z\xBC\xAF\x27\x1C";
--const UNCOMPRESS_MACOS_ERR_MSG: &str = "{} files are only supported in macOS";
-
- #[derive(Hash, Eq, PartialEq, Debug)]
- pub struct BrowserPath {
-@@ -102,228 +102,7 @@
- single_file: Option<String>,
- volume: Option<&str>,
+@@ -96,100 +94,15 @@
+ compressed_file: &str,
+ target: &Path,
+ log: &Logger,
+- os: &str,
+- single_file: Option<String>,
+- volume: Option<&str>,
++ _os: &str,
++ _single_file: Option<String>,
++ _volume: Option<&str>,
) -> Result<(), Error> {
- let mut extension = match infer::get_from_path(compressed_file)? {
- Some(kind) => kind.extension(),
@@ -90,7 +79,7 @@ index 8dc208a..069164b 100644
- } else if extension.eq_ignore_ascii_case(PKG) {
- uncompress_pkg(compressed_file, target, log)?
- } else if extension.eq_ignore_ascii_case(DMG) {
-- uncompress_dmg(compressed_file, target, log, os, volume.unwrap_or_default())?
+- uncompress_dmg(compressed_file, target, log, volume.unwrap_or_default())?
- } else if extension.eq_ignore_ascii_case(EXE) {
- uncompress_sfx(compressed_file, target, log)?
- } else if extension.eq_ignore_ascii_case(DEB) {
@@ -111,8 +100,9 @@ index 8dc208a..069164b 100644
- }
-
- Ok(())
--}
--
++ untargz(compressed_file, target, log)
+ }
+
-pub fn uncompress_sfx(compressed_file: &str, target: &Path, log: &Logger) -> Result<(), Error> {
- let zip_parent = Path::new(compressed_file).parent().unwrap();
- log.trace(format!(
@@ -132,22 +122,15 @@ index 8dc208a..069164b 100644
- move_folder_content(&core_str, target, log)?;
-
- Ok(())
--}
--
--pub fn move_folder_content(source: &str, target: &Path, log: &Logger) -> Result<(), Error> {
-- log.trace(format!(
-- "Moving files and folders from {} to {}",
-- source,
-- target.display()
-- ));
-- create_parent_path_if_not_exists(target)?;
-- let mut options = CopyOptions::new();
-- options.content_only = true;
-- options.skip_exist = true;
-- move_dir(source, target, &options)?;
-- Ok(())
--}
--
++pub fn uncompress_sfx(_compressed_file: &str, _target: &Path, _log: &Logger) -> Result<(), Error> {
++ Err(anyhow!("SFX (7-zip self-extracting) archives are not supported in this build"))
+ }
+
+ pub fn move_folder_content(source: &str, target: &Path, log: &Logger) -> Result<(), Error> {
+@@ -206,137 +119,30 @@
+ Ok(())
+ }
+
-pub fn uncompress_pkg(compressed_file: &str, target: &Path, log: &Logger) -> Result<(), Error> {
- let target_path = Path::new(target);
- let mut reader = PkgReader::new(File::open(compressed_file)?)?;
@@ -178,15 +161,20 @@ index 8dc208a..069164b 100644
- }
- }
- Ok(())
--}
--
--pub fn uncompress_dmg(
++pub fn uncompress_pkg(_compressed_file: &str, _target: &Path, _log: &Logger) -> Result<(), Error> {
++ Err(anyhow!("Apple PKG archives are not supported in this build"))
+ }
+
+ pub fn uncompress_dmg(
- compressed_file: &str,
- target: &Path,
- log: &Logger,
-- os: &str,
- volume: &str,
--) -> Result<(), Error> {
++ _compressed_file: &str,
++ _target: &Path,
++ _log: &Logger,
++ _volume: &str,
+ ) -> Result<(), Error> {
- let dmg_file_name = Path::new(compressed_file)
- .file_name()
- .unwrap_or_default()
@@ -195,34 +183,47 @@ index 8dc208a..069164b 100644
- "Mounting {} and copying content to cache",
- dmg_file_name.to_str().unwrap_or_default()
- ));
-- let mut command = Command::new_single(format_one_arg(HDIUTIL_ATTACH_COMMAND, compressed_file));
+- let mut command = Command::new(
+- HDIUTIL_COMMAND,
+- vec![String::from("attach"), compressed_file.to_string()],
+- );
- log.trace(format!("Running command: {}", command.display()));
-- run_shell_command_by_os(os, command)?;
+- run_shell_command(command)?;
-
- fs::create_dir_all(target)?;
- let target_folder = path_to_string(target);
-- command = Command::new_single(format_three_args(
-- CP_VOLUME_COMMAND,
-- volume,
-- volume,
-- &target_folder,
-- ));
+- command = Command::new(
+- "cp",
+- vec![
+- String::from("-R"),
+- format!("/Volumes/{}/{}.app", volume, volume),
+- target_folder,
+- ],
+- );
- log.trace(format!("Running command: {}", command.display()));
-- run_shell_command_by_os(os, command)?;
+- run_shell_command(command)?;
-
-- command = Command::new_single(format_one_arg(HDIUTIL_DETACH_COMMAND, volume));
+- command = Command::new(
+- HDIUTIL_COMMAND,
+- vec![String::from("detach"), format!("/Volumes/{}", volume)],
+- );
- log.trace(format!("Running command: {}", command.display()));
-- run_shell_command_by_os(os, command)?;
+- run_shell_command(command)?;
-
- Ok(())
--}
--
--pub fn uncompress_deb(
++ Err(anyhow!("DMG archives are not supported in this build (macOS only)"))
+ }
+
+ pub fn uncompress_deb(
- compressed_file: &str,
- target: &Path,
- log: &Logger,
- label: &str,
--) -> Result<(), Error> {
++ _compressed_file: &str,
++ _target: &Path,
++ _log: &Logger,
++ _label: &str,
+ ) -> Result<(), Error> {
- let zip_parent = Path::new(compressed_file).parent().unwrap();
- log.trace(format!(
- "Extracting from {} to {}",
@@ -247,9 +248,10 @@ index 8dc208a..069164b 100644
- move_folder_content(&opt_edge_str, target, log)?;
-
- Ok(())
--}
--
--pub fn install_msi(msi_file: &str, log: &Logger, os: &str) -> Result<(), Error> {
++ Err(anyhow!("DEB archives are not supported in this build"))
+ }
+
+-pub fn install_msi(msi_file: &str, log: &Logger, _os: &str) -> Result<(), Error> {
- let msi_file_name = Path::new(msi_file)
- .file_name()
- .unwrap_or_default()
@@ -259,12 +261,21 @@ index 8dc208a..069164b 100644
- msi_file_name.to_str().unwrap_or_default()
- ));
-
-- let command = Command::new_single(format_one_arg(MSIEXEC_INSTALL_COMMAND, msi_file));
+- let command = Command::new(
+- "msiexec",
+- vec![
+- String::from("/i"),
+- msi_file.to_string(),
+- String::from("/qn"),
+- String::from("ALLOWDOWNGRADE=1"),
+- ],
+- );
- log.trace(format!("Running command: {}", command.display()));
-- run_shell_command_by_os(os, command)?;
+- run_shell_command(command)?;
-
- Ok(())
-+ untargz(compressed_file, target, log)
++pub fn install_msi(_msi_file: &str, _log: &Logger, _os: &str) -> Result<(), Error> {
++ Err(anyhow!("MSI installers are not supported in this build (Windows only)"))
}
pub fn untargz(compressed_file: &str, target: &Path, log: &Logger) -> Result<(), Error> {
diff --git a/selenium-manager.spec b/selenium-manager.spec
index f280568..d0e840e 100644
--- a/selenium-manager.spec
+++ b/selenium-manager.spec
@@ -1,7 +1,7 @@
%global cargo_install_lib 0
Name: selenium-manager
-Version: 4.34.0
+Version: 4.45.0
Release: %autorelease
Summary: Automated driver and browser management for Selenium
# Full break down of the licenses is located in the LICENCE.dependencies file.
diff --git a/sources b/sources
index 5b1a7da..4ed7038 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (selenium-4.34.0.tar.gz) = 3dca27b544808322ba886135c660cda8bf0f19a627cc8e5aae497a51808fb2f19e39fa78c17faed07702d70d4cef839337b3af5486ffd8bcca9bd7f0127bf6bf
+SHA512 (selenium-4.45.0.tar.gz) = 943db9e790a2e9f52dcab9ea688bf805a9e6875a7eb43972f3c2b2eb454d2067eeb14204146dbc203b255d7228b18d9806a41711c8e37fa2e3d07a5b0bb96985
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-16 11:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-16 11:07 [rpms/selenium-manager] rawhide: Update to version 4.45.0 (rhbz#2376821) tjuhasz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox