(void) mktemp(tmpSpecFile);
#endif
- (void) isCompressed(arg, &res);
+ (void) rpmFileIsCompressed(arg, &res);
cmd = alloca(strlen(arg) + 50 + strlen(tmpSpecFile));
sprintf(cmd, "%s < '%s' | tar xOvf - Specfile 2>&1 > '%s'",
t = stpcpy(t, " -E");
/* XXX On non-build parse's, file cannot be stat'd or read */
- if (!spec->force && (isCompressed(urlfn, &compressed) || checkOwners(urlfn))) {
+ if (!spec->force && (rpmFileIsCompressed(urlfn, &compressed) || checkOwners(urlfn))) {
urlfn = _free(urlfn);
return NULL;
}
#endif
/* XXX On non-build parse's, file cannot be stat'd or read */
- if (!spec->force && (isCompressed(urlfn, &compressed) || checkOwners(urlfn))) {
+ if (!spec->force && (rpmFileIsCompressed(urlfn, &compressed) || checkOwners(urlfn))) {
urlfn = _free(urlfn);
return NULL;
}
for (be = b; (c = *be) && !isblank(c);)
be++;
*be++ = '\0';
- (void) isCompressed(b, &compressed);
+ (void) rpmFileIsCompressed(b, &compressed);
switch(compressed) {
default:
case COMPRESSED_NOT:
int rpmioMkpath(const char * path, mode_t mode, uid_t uid, gid_t gid);
/** \ingroup rpmfileutil
- * Return type of compression used in file.
- * @param file name of file
- * @retval compressed address of compression type
- * @return 0 on success, 1 on I/O error
- */
-int isCompressed (const char * file,
- rpmCompressedMagic * compressed);
-
-/** \ingroup rpmfileutil
* Canonicalize file path.
* @param path path to canonicalize (in-place)
* @return pointer to path
char * rpmEscapeSpaces(const char * s);
/** \ingroup rpmfileutil
+ * Return type of compression used in file.
+ * @param file name of file
+ * @retval compressed address of compression type
+ * @return 0 on success, 1 on I/O error
+ */
+int rpmFileIsCompressed (const char * file, rpmCompressedMagic * compressed);
+
+/** \ingroup rpmfileutil
* Check if path (string) ends with given suffix
* @param path (path) string
* @param suffix suffix string to check for