Skip to content

Commit 02481ba

Browse files
committed
Fix AUR4 URLPath (again); Fix #8
Temporary fix until the complete switch to AUR4
1 parent 8724261 commit 02481ba

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/aur.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,13 @@ const char *aur_get_str (void *p, unsigned char c)
727727
strlen (aur_pkg_get_urlpath (pkg)) +
728728
2 /* '/' separate url and filename */
729729
));
730-
strcpy (info, config.aur_url);
731-
strcat (info, aur_pkg_get_urlpath (pkg));
730+
// Small hack to fix AUR4 URLPath
731+
if (strstr (aur_pkg_get_urlpath(pkg), "https://") == NULL) {
732+
strcpy (info, config.aur_url);
733+
strcat (info, aur_pkg_get_urlpath (pkg));
734+
}
735+
else
736+
strcpy (info, aur_pkg_get_urlpath (pkg));
732737
free_info = 1;
733738
break;
734739
case 'U': info = (char *) aur_pkg_get_url (pkg); break;

0 commit comments

Comments
 (0)