public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/selenium-manager] f44: Revert "Update to version 4.45.0 (rhbz#2376821)"
@ 2026-10-26 14:23 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-26 14:23 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/selenium-manager
Branch : f44
Commit : 240e0c021c5ba4c221f471a779f6be29cd17ac16
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-10-26T14:19:20+00:00
Stats : +103/-120 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/selenium-manager/c/240e0c021c5ba4c221f471a779f6be29cd17ac16?branch=f44
Log:
Revert "Update to version 4.45.0 (rhbz#2376821)"
This reverts commit 366f0890331c76bff7b56ab492213f1561d36e7a.
This was merged to F44 but never built, and now I’m not sure that it is
safe to do so.
---
diff --git a/.gitignore b/.gitignore
index b2fcb41..93bab36 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
/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 c847efb..8496b56 100644
--- a/0001-remove-unnecessary-dependencies.patch
+++ b/0001-remove-unnecessary-dependencies.patch
@@ -1,45 +1,40 @@
---- 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"
+--- 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"] }
+-directories = "6.0.0"
+directories = ">=5.0.1, <7.0.0"
- serde = { version = "1.0.228", features = ["derive"] }
- serde_json = "1.0.149"
- flate2 = "1.1.9"
+ serde = { version = "1.0.219", features = ["derive"] }
+ serde_json = "1.0.140"
+ flate2 = "1.1.1"
tar = "0.4.44"
-infer = "0.19.0"
exitcode = "1.1.2"
--toml = "1.0"
--bzip2 = "0.6.1"
+ toml = "0.8.22"
+-bzip2 = "0.5.2"
-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.102", default-features = false, features = ["backtrace", "std"] }
+ anyhow = { version = "1.0.98", default-features = false, features = ["backtrace", "std"] }
-apple-flat-package = "0.20.0"
--which = "8.0.2"
+-which = "7.0.3"
+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"] }
- [features]
- avoid_stats = []
+ [dev-dependencies]
+ assert_cmd = "2.0.17"
diff --git a/0001-remove-unsupported-function.patch b/0001-remove-unsupported-function.patch
index dea6ac9..51cee69 100644
--- a/0001-remove-unsupported-function.patch
+++ b/0001-remove-unsupported-function.patch
@@ -1,35 +1,46 @@
---- 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 @@
+diff --git a/files.rs b/files.rs.modded
+index 8dc208a..069164b 100644
+--- files.rs
++++ files.rs.modded
+@@ -17,13 +17,10 @@
use crate::config::OS;
use crate::config::OS::WINDOWS;
--use crate::{Command, Logger, MACOS, format_one_arg, run_shell_command};
-+use crate::{Command, Logger, run_shell_command};
- use anyhow::Error;
+-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 anyhow::Error;
-use apple_flat_package::PkgReader;
use bzip2::read::BzDecoder;
use directories::BaseDirs;
use flate2::read::GzDecoder;
-@@ -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;
+@@ -41,19 +38,6 @@ use zip::ZipArchive;
pub const PARSE_ERROR: &str = "Wrong browser/driver version";
-@@ -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>,
+ 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>,
) -> Result<(), Error> {
- let mut extension = match infer::get_from_path(compressed_file)? {
- Some(kind) => kind.extension(),
@@ -79,7 +90,7 @@
- } 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, volume.unwrap_or_default())?
+- uncompress_dmg(compressed_file, target, log, os, 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) {
@@ -100,9 +111,8 @@
- }
-
- 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!(
@@ -122,15 +132,22 @@
- move_folder_content(&core_str, target, log)?;
-
- 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 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_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)?)?;
@@ -161,20 +178,15 @@
- }
- }
- Ok(())
-+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(
+-}
+-
+-pub fn uncompress_dmg(
- compressed_file: &str,
- target: &Path,
- log: &Logger,
+- os: &str,
- volume: &str,
-+ _compressed_file: &str,
-+ _target: &Path,
-+ _log: &Logger,
-+ _volume: &str,
- ) -> Result<(), Error> {
+-) -> Result<(), Error> {
- let dmg_file_name = Path::new(compressed_file)
- .file_name()
- .unwrap_or_default()
@@ -183,47 +195,34 @@
- "Mounting {} and copying content to cache",
- dmg_file_name.to_str().unwrap_or_default()
- ));
-- let mut command = Command::new(
-- HDIUTIL_COMMAND,
-- vec![String::from("attach"), compressed_file.to_string()],
-- );
+- let mut command = Command::new_single(format_one_arg(HDIUTIL_ATTACH_COMMAND, compressed_file));
- log.trace(format!("Running command: {}", command.display()));
-- run_shell_command(command)?;
+- run_shell_command_by_os(os, command)?;
-
- fs::create_dir_all(target)?;
- let target_folder = path_to_string(target);
-- command = Command::new(
-- "cp",
-- vec![
-- String::from("-R"),
-- format!("/Volumes/{}/{}.app", volume, volume),
-- target_folder,
-- ],
-- );
+- command = Command::new_single(format_three_args(
+- CP_VOLUME_COMMAND,
+- volume,
+- volume,
+- &target_folder,
+- ));
- log.trace(format!("Running command: {}", command.display()));
-- run_shell_command(command)?;
+- run_shell_command_by_os(os, command)?;
-
-- command = Command::new(
-- HDIUTIL_COMMAND,
-- vec![String::from("detach"), format!("/Volumes/{}", volume)],
-- );
+- command = Command::new_single(format_one_arg(HDIUTIL_DETACH_COMMAND, volume));
- log.trace(format!("Running command: {}", command.display()));
-- run_shell_command(command)?;
+- run_shell_command_by_os(os, command)?;
-
- Ok(())
-+ Err(anyhow!("DMG archives are not supported in this build (macOS only)"))
- }
-
- pub fn uncompress_deb(
+-}
+-
+-pub fn uncompress_deb(
- compressed_file: &str,
- target: &Path,
- log: &Logger,
- label: &str,
-+ _compressed_file: &str,
-+ _target: &Path,
-+ _log: &Logger,
-+ _label: &str,
- ) -> Result<(), Error> {
+-) -> Result<(), Error> {
- let zip_parent = Path::new(compressed_file).parent().unwrap();
- log.trace(format!(
- "Extracting from {} to {}",
@@ -248,10 +247,9 @@
- move_folder_content(&opt_edge_str, target, log)?;
-
- Ok(())
-+ Err(anyhow!("DEB archives are not supported in this build"))
- }
-
--pub fn install_msi(msi_file: &str, log: &Logger, _os: &str) -> Result<(), Error> {
+-}
+-
+-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()
@@ -261,21 +259,12 @@
- msi_file_name.to_str().unwrap_or_default()
- ));
-
-- let command = Command::new(
-- "msiexec",
-- vec![
-- String::from("/i"),
-- msi_file.to_string(),
-- String::from("/qn"),
-- String::from("ALLOWDOWNGRADE=1"),
-- ],
-- );
+- let command = Command::new_single(format_one_arg(MSIEXEC_INSTALL_COMMAND, msi_file));
- log.trace(format!("Running command: {}", command.display()));
-- run_shell_command(command)?;
+- run_shell_command_by_os(os, command)?;
-
- Ok(())
-+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)"))
++ untargz(compressed_file, target, log)
}
pub fn untargz(compressed_file: &str, target: &Path, log: &Logger) -> Result<(), Error> {
diff --git a/selenium-manager.spec b/selenium-manager.spec
index d0e840e..d3a6f5b 100644
--- a/selenium-manager.spec
+++ b/selenium-manager.spec
@@ -1,8 +1,8 @@
%global cargo_install_lib 0
Name: selenium-manager
-Version: 4.45.0
-Release: %autorelease
+Version: 4.34.0
+Release: %autorelease -b 6
Summary: Automated driver and browser management for Selenium
# Full break down of the licenses is located in the LICENCE.dependencies file.
# Result of cargo_license_summary:
diff --git a/sources b/sources
index 4ed7038..5b1a7da 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (selenium-4.45.0.tar.gz) = 943db9e790a2e9f52dcab9ea688bf805a9e6875a7eb43972f3c2b2eb454d2067eeb14204146dbc203b255d7228b18d9806a41711c8e37fa2e3d07a5b0bb96985
+SHA512 (selenium-4.34.0.tar.gz) = 3dca27b544808322ba886135c660cda8bf0f19a627cc8e5aae497a51808fb2f19e39fa78c17faed07702d70d4cef839337b3af5486ffd8bcca9bd7f0127bf6bf
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-26 14:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-26 14:23 [rpms/selenium-manager] f44: Revert "Update to version 4.45.0 (rhbz#2376821)" Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox