Rename to helper.c

This commit is contained in:
Aoran Zeng
2025-10-28 22:29:57 +08:00
parent fd309e7300
commit fed349827c
6 changed files with 17 additions and 16 deletions

View File

@@ -54,7 +54,7 @@ bool
pl_ruby_remove_gem_source (const char *source)
{
char *cmd = NULL;
if (chef_is_url (source))
if (hp_is_url (source))
{
cmd = xy_2strcat ("gem sources -r ", source);
chsrc_run (cmd, RunOpt_Default);

View File

@@ -66,7 +66,7 @@ os_netbsd_setsrc (char *option)
char *vercmd = "cat /etc/os-release | grep \"VERSION=\" | grep -Po \"[8-9].[0-9]+\"";
char *version = xy_run (vercmd, 0);
char *url = xy_strcat (5, chef_ensure_trailing_slash (source.url), arch, "/", version, "/All");
char *url = xy_strcat (5, hp_ensure_trailing_slash (source.url), arch, "/", version, "/All");
chsrc_overwrite_file (url, "/usr/pkg/etc/pkgin/repositories.conf");
chsrc_conclude (&source);