[Rpm-maint] [rpm-software-management/rpm] Major cleanup of the rpmInstall() structures (PR #4073)
Panu Matilainen
notifications at github.com
Wed Feb 4 09:52:28 UTC 2026
@pmatilai commented on this pull request.
> +
+ switch (urlIsURL(fileURL)) {
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
+ case URL_IS_FTP:
+ if (rpmIsVerbose())
+ fprintf(stdout, _("Retrieving %s\n"), fileURL);
+
+ tfd = rpmMkTempFile(rpmtsRootDir(ts), &tfn);
+ if (tfn) {
+ Fclose(tfd);
+ rc = urlGetFile(fileURL, tfn);
+ fn = tfn;
+ }
+ if (rc)
+ rpmlog(RPMLOG_ERR, _("skipping %s - transfer failed\n"), fileURL);
Pushed a new version with this, BUT then realized why it was written the way it was - if temp file creation succeeds then we'll need to cleanup the file, regardless of whether *retrieval* succeeds. So this will need a bit more work.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4073#discussion_r2763136839
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4073/review/3750064293 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260204/1c13fa51/attachment-0001.htm>
More information about the Rpm-maint
mailing list